Click to See Complete Forum and Search --> : move /boot to another partition?


nearlythere
12-04-2002, 11:48 AM
Hello

Recently I decided to give Knoppix a go, so installed it (using knx-hdinstall) on top of my existing red hat system. Redhat had created 3 partitions for me:
hdb1 for /boot - 10ish megs
hdb2 for / - 4ish gigs
hdb3 for swap - 200ish megs

I left these partitions intact but screwed up somehow during the Knoppix installation and ended up with / and /boot both living on hdb2 and hdb1 left untouched.

Redhat installed grub into the MBR of hda (my windows drive) and that still points at hdb1, but booting from it causes a kernel panic presumably because it can't find the redhat kernel anymore. I can boot Knoppix ok with a boot floppy though.

How do I mount hdb1 and then move my existing /boot directory onto it? I've tried man mount but since hdb2 or hdb3 aren't in my /etc/fstab I suppose hdb1 shouldn't go in there either? Any advice or directions towards TFM would be appreciated.

mdwatts
12-04-2002, 07:46 PM
So Redhat no longer exists?

Boot into Knoppix using your bootdisk, edit /boot/grub/menu.lst or grub.conf (whatever Knoppix uses), make any necessary changes for the new distro to boot from hdb2 instead of hdb1 and then run

grub-install /dev/hda

(all as root)

OR

Leave the Redhat grub in the mbr as is, boot with the bootdisk, mount the hdb1 partition as rw, make the changes to the existing Grub config (as above) to boot Knoppix from the root and boot device of hdb2 and then set hdb1 as the active partition.

Follow???

If not, post the contents of both the Redhat and Knoppix Grub configs.