Re: dd question, what am I doing wrong?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2009-12-04 at 14:07 -0800, Daniel B. Thurman wrote:
> >> What am I doing wrong here and how do I get around this?
> >>     
> > You have to resize Disk2 to 250Gb with resize2fs or parted.
> >   
> Ok, I used gparted to shrink the size of the partition and grow the
> partition again.  That did the trick.
> 
> I wonder if it would have been easier to just:
> 
> resize2fs /dev/sdb1

The whole approach is wrong IMHO. Unless the two partitions are the same
size there's no particular point in using dd for this. Much better to
create (mkfs) a new filesystem on the new partition, then use tar, or
rsync, or even "cp -r" to copy the contents. I doubt it's slower than dd
+resize, doesn't copy anything except file blocks that are actually in
use, and has the potential advantage of leaving you with a better layout
at the end. You can also take advantage of the copy to change filesystem
types, e.g. from ext3 to ext4.

poc

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux