On Tue, 22 May 2001 23:04:49 -0500 ktb <[EMAIL PROTECTED]> wrote: > Put both drives in and create your partitions on hdb with fdisk or > cfdisk. > Create your file systems with "mkfs.ext2 -c" and "mkswap -c" > Mount /dev/hdb1 and copy / on hda over with "cp -ax" > Swap the drives and replace. > > See the howto at - > http://www.linuxdoc.org/HOWTO/mini/Hard-Disk-Upgrade/index.html
The Hard-Disk-Upgrade is indeed a very useful document. I would add something to what Renai has written - remember that when you come to reboot your system with the new drive there will be nothing in the master boot record so you will need a floppy boot disk. I have a dos-formatted bootable floppy containing loadlin and an autoexec.bat which reads: loadlin vmlinuz root=/dev/hda2 ro I like loadlin for bootable floppies because it is so easy to simply change the /dev/hda2 bit to point to any partition. If you don't have DOS on your machine you can even boot with another DOS floppy (like disk one of a DOS install set), run Edit and change the partition reference. There is no messing with LILO. All you need to do is create a bootable DOS floppy, copy loadlin and your current kernel onto it and create autoexec.bat as above. That's it. Once you have managed to boot your new Linux partition you can, of course, re-run LILO and you are back in business. -- Phillip Deackes Using Progeny Debian Linux