Migrating drives (quack quack)

Ben Pfaff pfaffben@msu.edu
12 Nov 2000 15:38:32 -0500


Mike Szumlinski <szumlins@pilot.msu.edu> writes:

> I just got a 40 gig drive for my linux server that is going to replace 2 
> one gig drives that currently run it...my question is this: Does anyone 
> know an easy way to move everything from those drives to the new drive 
> without losing permissions/LILO/or anything else (fstab info) and without 
> having to do an assload of reconfig? I guess I could just reinstall the 
> distro on the new drive but it would be a pain to get all of my files and 
> packages moved over.

"cp -a /mnt1 /mnt2" or "(cd /mnt1; tar cf .) | (cd /mnt2; tar xfp
-)" should do it.