Re: rsync or dd to clone a hard drive?

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

 



--- On Wed, 10/6/10, Maxime Alarie <malarie@xxxxxxxxxxxxx> wrote:

> I have never used dd to clone a hard disk.  
>
> I use rsync for a lot ofÂmy backups, and I was wondering
> what would be the best tool to clone a disk. I donât want 3rd
> party software also. ÂI want built in command line tools. 
>
> 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?

I would use dd to clone (or back up) an entire hard drive.  Easier.  You can even pipe it through gzip to get a compressed image file.

No, I don't think dd has the capability to automatically start where it left off if it's stopped.  Although, doing it manually seems possible, but I've never done it.

Either dd option above will work for cloning.  The first if you need to clone to drives on different machines.  The other, if the drive being cloned and the target are in the same machine.  Just be sure that the target drive is as large or larger than the source one.  In the latter case, you'll end up with empty space on the target drive.  You can either use a partition editor like gparted to expand the partitions to fill the space, or add new partitions, or leave it unpartitioned.

Also, the drives, either source or target, for safety, should not be in use.  If the source drive is the System, better to boot the machine with a LiveCD leaving both source and target drives unmounted.  This is the way I do it, if I'm cloning the System drive.  Although, I guess, if you set it to read-only during the cloning that should be okay.

B 
-- 
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