Originally Posted by SlowCoder
I'm running FC5. I want to back up my entire hard drive. Can I use dd to do this? Can I do it while the partitions are mounted?
Would something like 'dd if=/dev/hda of=/dev/hdb' work to get this done?
I've not tried it while the hd's are mounted, but I have a feeling it won't work.... worth a try, I suppose.
You have the syntax correct, but you might want to add a block size argument to speed things up. I typically use the size of the disk buffer, i.e.
dd if=/dev/hda of=/dev/hdb bs=8M
Note that if there are bad sectors on the write-to drive, this may fail.
If you don't need the partition table, you may be better off rsyncing each partition individually... or even cp -pur