[NCLUG] hard disk copy
Gabriel L. Somlo
somlo at acns.colostate.edu
Fri Feb 14 23:12:37 MST 2003
I'd try dump and restore (dump.sourceforge.net):
mke2fs -j /dev/hdg1
mke2fs -j /dev/hdg2
mount /dev/hdg1 /tmp/foo
mount /dev/hdg2 /tmp/bar
cd /tmp/foo
dump 0f - /dev/hde1 | restore rf -
cd /tmp/bar
dump 0f - /dev/hde2 | restore rf -
Once you put the new disks in place, you need to boot your system from
a floppy, and install the bootloader (I don't know a
lot about grub, but with lilo all you'd have to do is run it:
/sbin/lilo). After this you should no longer need the floppy to boot.
dump.sourceforge.net has statically linked binaries for dump and
restore, which you could put on a second floppy if they don't fit on
your rescue image. Alternatively, you could use a CD to boot -- let me
know if you want mine, but there should be a lot of CD distros out
there that include dump and restore...
Hope this helps,
Gabriel
On Fri, Feb 14, 2003 at 09:40:06PM -0700, Daniel Herrington wrote:
> What's an easy way to copy my entire two partitions (/ and /boot) from
> one hard drive
> to another? In the past I've used "rsync -av ...", but I thought
> there's got to be an easier,
> more foolproof way. The last time I copied it the grub stuff never
> worked right. Maxtor
> has something called Max-Blast that will partition a new drive and copy
> the old drive's
> contents onto it, and it works great for Windows. I don't trust it for
> Linux partitions, and
> it only works if you have at least one Maxtor drive in your system. The
> two I've got in
> the system are an IBM and a WD.
>
> E.g.: Is there a floppy disk image that you can boot and tell it to copy
> /dev/hde1 to /dev/hdg1
> and /dev/hde2 to /dev/hdg2?
>
> Thanks,
> Daniel Herrington
>
>
> _______________________________________________
> NCLUG mailing list NCLUG at nclug.org
>
> To unsubscribe, subscribe, or modify your settings, go to:
> http://www.nclug.org/mailman/listinfo/nclug
--
-----------------------------------------------------------------------
Gabriel L. Somlo Academic Computing & Networking Services
Colorado State University Tel: (970)297-3707 Cell: (970)567-1017
601 Howes St., Room 612A Fax: (970)491-1958
Fort Collins, CO 80523-2028 e-mail: somlo at acns.colostate.edu
-----------------------------------------------------------------------
More information about the NCLUG
mailing list