On Saturday 19 June 2004 00:26, Trey Sizemore wrote:
I installed SUSE 9.1 on my desktop machine as the sole OS with lilo as the boot manager on the MBR. I then installed Fedora Core 2 on some free space on the same drive and put grub on the MBR (effectively overwriting the original lilo.
Ok, nothing wrong with that, to boot SuSE you need an extra description in menu.lst.
I have an FC2 entry in grub, but no entry for SUSE, so I currently can't boot into SUSE. The / partition for SUSE is /dev/hda1 (FC2's / is on /dev/hda8). I want to add an entry for SUSE to grub.conf in FC2 so I can boot. I thought I understood the syntax, but it will not work with the following in my /etc/grub.conf file:
[root@localhost trey]# cat /etc/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You do not have a /boot partition. This means that # all kernel and initrd paths are relative to /, eg. # root (hd0,7) # kernel /boot/vmlinuz-version ro root=/dev/hda8 # initrd /boot/initrd-version.img #boot=/dev/hda default=1 timeout=10 splashimage=(hd0,7)/boot/grub/splash.xpm.gz title Fedora Core (2.6.6-1.435) root (hd0,7) kernel /boot/vmlinuz-2.6.6-1.435 ro root=LABEL=/1 rhgb quiet initrd /boot/initrd-2.6.6-1.435.img title Fedora Core (2.6.5-1.358) root (hd0,7) kernel /boot/vmlinuz-2.6.5-1.358 ro root=LABEL=/1 rhgb quiet initrd /boot/initrd-2.6.5-1.358.img title SUSE 9.1 root (hd0,0) kernel /boot/vmlinuz-2.6.4-54.5-default chainloader +1
either: A) use 'chainloader +1' and remove kernel ... This means there is a bootloader in the 1st sector of (hd0,0) or: B) use kernel ... initrd ... and remove chainloader ... This means current GRUB is the bootloader. I think: - root (hd*.*) is the partition containing /boot - kernel is relative to the partition containing /boot ------- Example 1: - 1 single root partition at hda6 = (hd0,5): kernel (hd0,5)/boot/vmlinuz root=/dev/hda6 initrd (hd0,5)/boot/initrd-2.6.5-1.358.img Example 2: - 1 boot partition at hda6 = (hd0,5) 1 root partition at hda7 = (hd0,5) kernel (hd0,5)/vmlinuz root=/dev/hda6 initrd (hd0,5)/initrd Example 3: - use SuSE 9.1's menu.lst file: title SuSE 9.1 # A) /boot partition same as / partition: root (hdX,Y) configfile (hdX,Y)/root/grub/menu.lst # B) /boot partition differs from / partition: #root (hdX,Z) #configfile (hdX,Z)/grub/menu.lst Example 4: - Once booted in SuSE, use YaST to put GRUB on the 1st sector of the root (or /boot) partition root (hdX,Y) chainloader +1 Perhaps Example 3 is a nice start. Cheers, Leen