On Fri 12 Apr, Philip Hands wrote:
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.
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.
OK copied all. Lilo gives error message when trying to write to boot Fatal open /boot/boot.b no such file/directory I suspect that I copied the /boot entry to the root (or at least thats where the kernel files appeared on the new disk - I'm not sure that I made a mistake typing your commands though. So I copied files from root into the boot partition - ran lilo (now successful) and it now boots BUT Re-booting gives an error that it failed to find a swapfile signature. So how do I restore a signature? -- Alan Davies Head of Computing Birkenhead School