[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 1:1 mirror for an entire hd



Karsten M. Self, Mon, May 20, 2002 at 02:09:32AM -0700: 
> on Mon, May 20, 2002, R. Lockhart (richrlo@mts.net) wrote:
> > I need to transfer all my data, os, partitions, formatting, to a new
> > hard drive. I got a lemon hd (still perfect electronicly but making
> > ugly noises). A replacement is on the way from the manufacturer but
> > I'm not sure about the best way to mirror a-b.
> 
> 
>    $ mkdir /mnt/oldhd
>    $ mkdri /mnt/newhd
>    $ mount /dev/hda /mnt/oldhd
>    $ mount /dev/hdb /mnt/newhd
>    $ cd /mnt/oldhd
>    $ tar cvf - . | ( cd /mnt/newhd; tar xf - )
> 
> (rsync, or cp -padR are other alternatives).
> 

Also, you'll need to install a new boot block (MBR) or the new disk
won't boot.  The LILO mini-howto explains how to do that:

http://www.tldp.org/HOWTO/mini/LILO-4.html

You can use fdisk -l /dev/hda to get the parition table of the old disk.

g



-- 
Brought to you by Debian 3.0
Linux took 2.4.16 #1 SMP Sat Jan 5 12:52:24 EST 2002 i686 unknown

Attachment: pgpKzd8McUb0t.pgp
Description: PGP signature


Reply to: