Duplicating a harddrive

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: EricJohnsonej@netasm.com
Date:  
Subject: Duplicating a harddrive
On Sat, 19 Feb 2000, Joel Dudley wrote:
: Norton ghost is awesome, then, if you fu%@k up your drive you just ghost
: away.

I'm sure it is. What does that have to do with backup in Linux?

: - Joel
: ----- Original Message -----
: From: The Wolf <>
: To: PLUG <>
: Sent: Saturday, February 19, 2000 3:45 PM
: Subject: Duplicating a harddrive
:
:
: > Hi
: >
: > I have finally managed to get my whole system setup to
: > a point I like it. Now I am thinking of backing it up
: > how can I duplicate a drive or what other methods
: > can I implement to be able to back it up??
: >
: > The Wolf

Presuming your newly installed drive is /dev/hda, and your dup drive
is /dev/hdc; and presuming you have partitioned /dev/hdc the same as
/dev/hda; and presuming your mount points are / and /usr; and presuming
you have dump installed; you can:

# init 1
[ stuff happens ]
# mkdir /tmp/hdc1
# mount /dev/hdc1 /tmp/hdc1
# dump -0 -f - /dev/hda1 | (cd /tmp/hdc1; restore -x -f -)
# umount /dev/hdc1
# mkdir /tmp/hdc3
# mount /dev/hdc3 /tmp/hdc3
# dump -0 -f - /dev/hda3 | (cd /tmp/hdc3; restore -x -f -)
# umount /dev/hdc3
# exit (or halt and remove your dup drive, or whatever)

Install boot blocks on your dup drive and you're set.

If you just want an image file (ala Ghost, which you can almost emulate,
per partition, at least) by changing the dump command to:

# dump -0 -f - /dev/hda1 > /tmp/hdc1/hda1.img
# dump -0 -f - /dev/hda3 > /tmp/hdc3/hda3.img

and then copying the image files somewhere "safe".

You can also use tar and cpio and ...
---
Eric Johnson () (http://netasm.com/ej/) 602 996-9682 (w)
net.assembly (http://netasm.com/) () 602 538-5982 (m)
12629 North Tatum Boulevard #191, Phoenix, Arizona 85032