[plug] copy old hdd to new hdd

Craig Ringer craig at postnewspapers.com.au
Sat Nov 22 10:49:20 WST 2003


> or do I need to recreate the partition table on the new table and copy 
> each partition separately?
> dd if=/dev/hda of=/dev/hdc bs=512 count=1
> dd if=/dev/hda1 of=/dev/hdc1
> dd if=/dev/hda2 of=/dev/hdc2
> dd if=/dev/hda3 of=/dev/hdc3
> dd if=/dev/hda5 of=/dev/hdc5
> dd if=/dev/hda6 of=/dev/hdc6
> dd if=/dev/hda7 of=/dev/hdc7
> dd if=/dev/hda8 of=/dev/hdc8
> dd if=/dev/hda9 of=/dev/hdc9

The this approach much wiser unless the drives are totally identical. 
There was a lot of coverage of this a while ago, you should be able to 
find it in the archives.

Craig Ringer

_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug


More information about the plug mailing list