slakkie said: What you could do is creating a seperate grub parition so your system boots that grub and chainloads it to the other OS.
I advise you to have a Live CD ready, so you can perform all actions from the Live CD, or have it ready in case your machine doesn't want to boot (which could happen since we are messing with the bootloaders :)).
Create a small partition (/dev/sda1 in my case), make it 20MB or so, then do the following:
mkdir /mnt/bootdisk
sudo mount -t ext3 /dev/sda1 /mnt/bootdisk
grub-install --root-directory=/mnt/bootdisk sda1
(Details can be found here: http://www.gnu.org/software/grub/manual/html_node/Installing-GRUB-using-grub_002dinstall.html )
Change the menu.lst file in /mnt/bootdisk/boot/grub
sudo vi /mnt/bootdisk/boot/grub/menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
#
# Default chainloading for grub-legacy to other slices
#
# Debian is the default OS
default 1
timeout 10
#hiddenmenu
color cyan/blue black/blue
title Ubuntu /dev/sda2
root (hd0,1)
chainloader +1
title Debian /dev/sda3
root (hd0,2)
chainloader +1
title Misc /dev/sda5
root (hd0,4)
chainloader +1
My Debian box has grub2 and my Ubuntu has grub-legacy. This way I have one bootloader which always allows an OS to have whatever bootloader they need/want/require.
You would need to run some grub commands to install it propperly.. as described here: http://orgs.man.ac.uk/documentation/grub/grub_3.html#SEC9
sudo grub
# You are now in a grub shell
grub> root (hd0,0)
grub> find /boot/grub/stage1
(hd0,0) # /dev/sda1 - Grub boot partition
(hd0,1) # /dev/sda2 - Ubuntu
grub> setup (hd0)
grub> setup (hd0,0)
Now you should be booting with grub-legacy, and chainload to whatever OS is on the other disks..
Hope this helps! Been looking for this :lolflag:
I'm having a similar problem with Lucid and Karmic on my laptop. Prior to installing a grub2 version, I had 3 OSs on the one hard drive. Ubuntu 9.04 and 8.10 and Windows XP all booting and running happily. I then installed Karmic = 9.10 letting it install grub2 into the MBR. On re-start all the OSs were there but nothing would boot. Moving the selection bar caused a system total freeze as did allowing the timeout to boot 9.10. It showed a flashing text cursor in the top left corner for a couple of seconds then blank screen and total freeze.
I used the Alternate CD version for installing as I had found the Desktop CD refused to install the grub2 boot loader on either of my two main desktops although it would run as a Live CD. Now on the laptop the Live CD (Desktop) version won't boot - it produces the same system lockup as attempting to boot an installed version. So I'm not really sure if my problem actually belongs in this thread.
I reinstalled 9.04 to a spare partition replacing the MBR with a grub legacy loader. Now all OSs are found including 9.10 and all boot and run except 9.10 which gives the same system lockup as above. Replacing the menu entry for 9.10 with chainloader didn't help - I get the Error 13 message.
Now to my question (having detailled the problem) :- Does having a separate grub partition rather than using the MBR make the difference?