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

Re: 1:1 mirror for an entire hd



on Thu, May 23, 2002, Petro (petro@auctionwatch.com) wrote:
> On Wed, May 22, 2002 at 07:29:11PM -0700, Angus D Madden wrote:
> > 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).
> 
>     Rsync be your best bet if you can determine the correct syntax. It's
>     what system imager uses to basically do the same thing. 

For a copy of an existing system to a virgin disk, the overhead of
generating a file list is unnecessary.  The tar solution is probably the
faster operation.

Not that rsync doesn't have its uses, and rocks hard at them.

Peace.

-- 
Karsten M. Self <kmself@ix.netcom.com>        http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
   Moderator, Free Software Law Discussion mailing list:
     http://lists.alt.org/mailman/listinfo/fsl-discuss/

Attachment: pgpfXH8dXdMvr.pgp
Description: PGP signature


Reply to: