I've done this a number of times. I like to use knoppix. I partition and format the new drive, and then for any non-swap partitions I mount them on each drive and do:
cp -avx /mnt/old/* /mnt/new/* Works like a charm. Don't forget to run lilo on the new drive. Michael -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Gitlin Sent: Friday, September 26, 2003 7:44 PM To: [EMAIL PROTECTED] Subject: [TriLUG] Replacing Hard Drive Hey Eveyone, So I've given up on my problematic hard drive... Almost every morning when I check my server it's dead, complaining of IDE errors. I've replaced everything else but the motherboard, and I've even switched IDE channels on the motherboard. So I've decided to replace my hard drive (30 gigs) with a 21 gig drive I have. My question is, after hooking the new drive up and formating it... what's next? I can't just use `cp -R` to copy my existing linux install over to the new drive, right? I mean, won't all my /dev entries be lost? I can't use dd because the drives are different sizes! And I can't tar my entire disk because I have about 2o gigs of stuff on there now... where would I put the tar file? (Unless I can do `tar -c / | tar -x /tmp/newsystem` ?) How can I get my linux installation off my current drive and onto the new drive? DO I have to copy /etc and /var and just... reinstall? I hope not... Is there another way? Thanks guys. -Josh -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
