Jump to content

Configure Grub for Triple Boot


Recommended Posts

I am currently having some issues with Grub. I am trying to triple-boot Win XP, FC5 and Mandriva 2006, all from one HDD. I initially installed Win XP, then installed Mandriva. Mandriva overwrote the MBR with Grub, which worked satisfactorily. I then installed FC5, and told it to install its own Grub bootloader. Unfortunately it now boots up into Windows and Fedora quite happily, but when I try to boot into Mandriva it keeps on coming up with Kernel Panic messages. I have tried various alterations of grub.conf with no success.

 

This is the contents of my grub.conf file in Fedora:

 

# 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,2)

# kernel /boot/vmlinuz-version ro root=/dev/hda3

# initrd /boot/initrd-version.img

#boot=/dev/hda

default=2

timeout=5

splashimage=(hd0,2)/boot/grub/splash.xpm.gz

hiddenmenu

title Fedora Core (2.6.16-1.2122_FC5)

root (hd0,2)

kernel /boot/vmlinuz-2.6.16-1.2122_FC5 ro root=LABEL=/ rhgb quiet

initrd /boot/initrd-2.6.16-1.2122_FC5.img

title Fedora Core (2.6.15-1.2054_FC5)

root (hd0,2)

kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet

initrd /boot/initrd-2.6.15-1.2054_FC5.img

title Mandriva 2006

root (hd0,4)

kernel (hd0,4)/boot/vmlinuz-2.6.12-22mdk-i686-up-4GB

initrd (hd0,4)/boot/initrd-2.6.12-22mdk-i686-up-4GB.img

title Windows XP

rootnoverify (hd0,0)

chainloader +1

 

 

If anyone can offer me any help I would be extremely grateful, as I would much rather have Mandriva available then XP! :P

 

Many thanks in Advance.

Link to comment
Share on other sites

kernel (hd0,4)/boot/vmlinuz-2.6.12-22mdk-i686-up-4GB

initrd (hd0,4)/boot/initrd-2.6.12-22mdk-i686-up-4GB.img

 

Try changing that to

 

kernel (hd0,4)/boot/vmlinuz-2.6.12-22mdk-i686-up-4GB ro root=/dev/hda5

initrd (hd0,4)/boot/initrd-2.6.12-22mdk-i686-up-4GB.img

 

Simplest would be keeping a small ( ~ 32MB ) common /boot partition, formatted as ext2, but now it's quite a bit of work to do that...

Link to comment
Share on other sites

If you have only one Kernel installed for Mandriva, then

 

title linux

kernel (hd0,4)/vmlinuz root=/dev/hda5 resume=/dev/hda?? splash=silent vga=788

initrd (hd0,4)/initrd.img

 

should be enough. Replace the /dev/hda?? with the entry for your /swap, of course (/dev/hda2?).

Link to comment
Share on other sites

If you have only one Kernel installed for Mandriva, then

 

title linux

kernel (hd0,4)/vmlinuz root=/dev/hda5 resume=/dev/hda?? splash=silent vga=788

initrd (hd0,4)/initrd.img

 

should be enough. Replace the /dev/hda?? with the entry for your /swap, of course (/dev/hda2?).

 

Many thanks, altho I have a couple of kernels I only use one, so this option worked.

 

Scarecrow, you mention that it is possible to create a small /boot partition, just how difficult is this. Are there any instructions on the web anywhere telling me how to do this, as I may give it a try at some point. I have a funny feeling it may make life easier in the long term. :P

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...