Dave Phillips <dlphilp(a)bright.net> writes:
I'm trying to figure out how to write a
grub.conf that will allow a
choice between booting into Planet C's RH 8 or RH 9.
I'm not a grub expert, so I hope I don't spread misinformation...
First of all make sure you do edit the right grub.conf.
Here's what I know about the drive structure:
For RH8:
/dev/hda1 /boot
/dev/hda2 /
/dev/hda3 /swap
For RH9:
/dev/hda5 /boot
/dev/hda6 /
/dev/hda7 /swap
So, how do I indicate the choices ? Here's what I'm
thinking about for an edited grub.conf :
default=0
timeout=10
splashimage=(hd0,4)/grub/splash.xpm.gz
### RH9
title Red Hat Linux (2.4.26-1.ll.rh90.ccrma)
kernel (hd0,4)/vmlinuz-2.4.26-1.ll.rh90.ccrma ro root=LABEL=/1 hdc=ide-scsi
initrd /initrd-2.4.26-1.ll.rh90.ccrma.img
I do not understand your 'root=LABEL=/1' I would have tried it like this:
title Red Hat Linux (2.4.26-1.ll.rh90.ccrma)
kernel (hd0,4)/vmlinuz-2.4.26-1.ll.rh90.ccrma root=/dev/hda6
initrd (hd0,4)/initrd-2.4.26-1.ll.rh90.ccrma.img
This assumes that vmlinuz and initrd are on /dev/hda5.
Btw, when the RH8 partition is mounted from RH9 (mount
/dev/hda1
/mnt/rh8) we discovered that /mnt/rh8/etc/grub.conf is a broken link.
I don't think that you really want 'mount /dev/hda1 /mnt/rh8' as your
RH8 is not on /dev/hda1 but /dev/hda2. So you did mount '/boot' on
/mnt/rh8 which has no '/etc' directory...
BTW If you'd mount /dev/hda2 on /mnt/rh8 it's /boot wouldn't be mounted
either, as you have it on a separate partition.
BTW You could use the same swap partition for both systems.
HTH,
Robert Epprecht