Thread: dd command
View Single Post
Old 02-19-2004, 03:46 AM   #1
PU
 
Posts: n/a
dd command

Hi all,

I previously used to command:
dd if=/dev/hda1 of=/mnt/hdb1/safecopy

It finishes successfully so I assume I have a backup of my /dev/hda1
partition.

Using the following line:
ls /mnt/hdb1
and I see the file safecopy.

My question:
If hda crashes, do I merely replace the hdd, configure the drive similar the
crashed drive and issue something like:
dd if=/mnt//hdb1/safecopy of=/dev/hda1
to restore?

Am I better off having a duplicate copy of hda1 e.g.
dd if=/dev/hda1 of=/dev/hdb1
Then if I have a hda crash, I plug in hdb as hda and install a new hdd as
hdb and just make a copy of it again.

I googled, and although there is a lot of material regarding the above, I
cannot seem to find a straight forward answer.
Any answers appreciated.

Regards
Leigh

cc to leejen666@hotmail.com



  Reply With Quote
Sponsored Links