At 01:40 PM 06/29/01, David Paik wrote:
>Whats the easiest and safest way to move a linux install from a 6 gig drive
>to a 20 gig drive enlarging the / and /home dirs and making it bootable?

Maybe not the easiest, but safe and my personal favorite:  Do a fresh 
install on the new drive, using a newer release of course, and use tar or 
cpio, or simply "cp -a" to copy your old /home to it's new one and any 
config files you can't live with out to a backup location (you may not want 
to just cp configs from older wares).  Heck, if you are going to retire the 
6 gig drive, you may want to cp the rest of the drive to a backup directory 
on the new one, in case you need something later, it can always be removed 
at a later date.  Othewise leave it intact and just leave it mounted some 
place on the new drive.

If you have a large user database you can take the old /etc/passwd group 
and shadow files, remove the lines up to your first "real" user or group, 
probably user 501 if an MDK7-8 install and just cat the remaining lines to 
the new files ( "cat /old/etc/passwd>>/etc/passwd" don't forget the 
two >>'s for append to instead of replace).  Make sure to change 
/etc/shadow back to 0400 when done.

Try doing that in Windoze. :)

Scott.


Reply via email to