Re: rsync or dd to clone a hard drive?

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

 



Hi all.

--- On Wed, 10/6/10, Maxime Alarie <malarie@xxxxxxxxxxxxx> wrote:
> I know rsync will resync where it left off if I encounter a
> problem, what about dd?  Do I  absolutely have to creat an image before > cloning? 
> Ex: dd if=/dev/sda of=sda.img   or I can use dd if=/dev/sda of=/dev/sdb? 

If the target disk is the same size as the source, use
"dd if=/dev/sda of=/dev/sdb", with device names changed as appropriate.

If they aren't the same size, and the source disk is partitioned, you
might want to create partitions of the appropriate size on the target
disk, and the use dd against the partitions, i.e.,
"dd if=/dev/sda1 of=/dev/sdb1", for each partition.

Another option is to take the target disk, parition it if/as desired,
do any LVM set-up desired, newfs and mount the partition/volume, and then
copy from the file-system level with something like
"tar -cf - /source | (cd /target;tar -xpvf - )"

If the file systems don't have a lot of data in them, moving via tar can
be faster.  On the other hand, if the disk has multiple partitions with
multiple operating systems on them, dd'ing the disk may be a lot easier.

--------------

Lets Go Canes!



      
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux