dd if=/dev/hda of=/dev/hdb
Assuming the hard drive to read is on IDE1 as master and hard drive to write is on IDE1 as slave. Get any linux rescue CD, or any live demo CD, or any install CD (stop the installer and run that command once you booted from the CD)
command explaination:
dd -> direct byte to byte copy (same as rawrite).
if -> Device to be readed
of -> Device to write to.
hda -> IDE1 Master
hdb -> IDE1 Slave
hdc -> IDE2 Master
hdd -> IDE2 Slave
In case you are using SCSI disks then replace hd... with:
sda -> SCSI1
sdb -> SCSI2
sdc -> SCSI3 ... etc...
Hope this helps you
|