using dd to backup entire hard drive

Craig White plug-discuss@lists.plug.phoenix.az.us
Thu, 30 Jan 2003 10:13:12 -0700


I want to back up a linux hard drive completely.

If the hard drive I want to back up is hda and I want to 'clone' the hard drive 
to hdb, how would I issue the command?

dd bs=4k /dev/hda /dev/hdb

I want everything, including the mbr to be copied. Is there anything that I 
need to worry about if the target hard drive is larger than the source hard 
drive? Will the partitions be the same size and the extra space on the target 
left unpartitioned?

Thanks,

Craig



-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/