On Sun, 2006-08-20 at 09:28 -0700, Robert Lewis wrote:
Does anyone have a script or iron clad step-by-step instructions how one can move their current installation from a smaller hard drive (80-GB in my case) to a larger hard drive (160-GB)?
I do this all the time. 1. Put both discs in the machine, (say 80gb = hda and 160 = hdb), and boot off a live CD 2. Use fdisk to partition the new disc. 3. Make mount points for all partitions, mount them, and then copy your stuff accross. More or less like this: # mount /dev/hda1 /hda1 # mount /dev/hdb1 /hdb1 then, one of two ways: # cd /hda1 # cp -av * /hdb1/ or # cd /hda1 # tar cfpv /hdb1/hdb1.tar.bz2 * # cd /hdb1 # tar xfjv hdb1.tar.bz2 On both I've gotten errors like "can't copy special file something or another" - usually a socket or something, but these usually get created by the relevant software. And of course, you still have your old disc as a perfect working backup. Hans