On Fri, 2002-04-12 at 16:08, Alan Davies wrote:
*********Should the following lines be ....hdcX - ? rathern than hda?
Yes, they certainly should be hdc -- oops. Good job mke2fs would complain about the hda ones being mounted, eh?
mke2fs /dev/hda1 mke2fs /dev/hda2 mkswap /dev/hda5 mke2fs /dev/hda6 mount /dev/hda2 /mnt cd / cp -avx . /mnt mount /dev/hda1 /mnt/boot cd /boot cp -avx . /mnt/boot mount /dev/hda6 /mnt/home cd /home cp -avx . /mnt/home
so now you've coppied everything, but it's not bootable.
The easy option is to make yourself a boot floppy (with mkboot on Debian, not sure if SuSe has that), shut down, pull the old drive out, and plug the new on in it's place, boot off the floppy, log in and run LILO (or GRUB, or whatever) to reinstall the boot block. You may need to install the MBR onto the start of the disk, if you've got LILO on /dev/hda1, say (on Debian, you do that with install-mbr, otherwise you need to get the MBR package, and dd it onto you hard disk --- probably easier to simply put LILO on /dev/hda)
Reboot and your done.
Of course, I always forget the boot disk, and have to do the:
rescue root=/dev/hda2
thing off an install disk, and hope the file systems are supported on that kernel.
If you hate floppies with a vengence, you need to put:
disk=/dev/hdc bios=0x80
in /mnt/etc/lilo.conf when you've just done the disk copy, before rebooting, and then run:
lilo -r /mnt
and if you get no complaints, you've got a good chance of a clean reboot (but I'd still make a floppy ;-)
Have fun.
Cheers, Phil.
At what stage can you remove old drive and move new drive to the other IDE channel?
Any time after you've copied all the partitions. Probably after you've created a boot floppy, or after you've managed to get the lilo -r /mnt to make encouraging noises, depending on your chosen route. Even if you cock up both the lilo and the boot floppy, a rescue disk, and speifying "Linux root=/dev/hda" at the boot prompt will probably sort you out, and if not you can always start from scratch with te old disk, so it's not something to get too stressed about (as long as you can avoid dropping the old disk while doing all this ;-)
Will it boot after moving - or does it 'know' that it was hdc?
If you do the "disk=/dev/hdc bios=0x80" thing, it tells lilo to use the first disk's bios number (0x80) on the disk regardless of it being currently located at hdc, so once it's moved it will try to boot off of itself (now hda, aka 0x80), rather than /dev/hdc (aka 0x82). Hm, that's a clear as mud, is it not? Oh well, try reading it again a few times ;-) Cheers, Phil. -- Say no to software patents! http://petition.eurolinux.org/ |)| Philip Hands [+44 (0)20 8530 9560] http://www.hands.com/ |-| HANDS.COM Ltd. http://www.uk.debian.org/ |(| 10 Onslow Gardens, South Woodford, London E18 1NE ENGLAND