Subject: Re: copying fs
To: Matthias Scheler <tron@lyssa.owl.de>
From: Tom T. Thai <tomthai@future.net>
List: port-i386
Date: 03/30/1998 02:15:32
On 29 Mar 1998, Matthias Scheler wrote:

> In article <Pine.NEB.3.96.980329081732.16147A-100000@dream.future.net>,
> 	"Tom T. Thai" <tomthai@future.net> writes:
> > I need to move everything from the old one to the new one.
> 
> cd /new
> dump u0f - / | restore rf -
> rm restoresymtable
> cd /new/usr
> dump u0f - /usr | restore rf -
> rm restoresymtable

thanks for your response.  I was up 'til 8AM and was too tired so I
resorted to:

0. Wait 'til the next day for the HD to cool.  SCSI reported lots of
medium errors when it got hot.. it's four or five years old.. so it must
be getting tired.

1. use sysinst from 1.3 boot disk to disklabel the new HD (more stories on
doing "disklabel -r /sd2" later)

2. created partitions of a, e, and f (ie. /, /usr, /var) just like the
original drive.

3. while in the utilities/shell menu of sysinst I mounted the old HD (ie.
mount /dev/sd0a /mnt && mount /dev/sd0e /mnt/usr && mount /dev/sd0f
/mnt/var).  Then I mounted the new HD (mount /dev/sd2a /mnt2 && mount
/dev/sd2e /mnt2/usr && mount /dev/sd2f /mnt2/var)

4. then I tar the old HD to the new one while preserving all privileges:
cd /mnt2
tar -cf - -C /mnt ./ | tar -xvpf -

That all worked pretty well.  I suspect dump would work faster???

 > 
> And so on.
> 
> -- 
> Matthias Scheler                                http://home.owl.de/~tron/
> 


..............          ....................................
Thomas T. Thai          Infomedia Interactive Communications
tom@iic.net             TEL 612.376.9090 * FAX 612.376.9087