Wednesday, November 02, 2011

Chainloading GRUB 2 from GRUB

I installed PCLinuxOS on my laptop (more on that some other time - I was impressed). Among the other OSes on there is Debian Squeeze. The problem is that Debian Squeeze uses Grub 2, while PCLinuxOS uses Grub.

After some fruitless searches and guesses as to what to do (Grub knowledge doesn't help much with Grub 2) I decided to check the Arch Wiki. As usual, the answer was there. Add the following entry to /boot/grub/menu.lst in PCLinuxOS:

title Debian
root (hd0,4)
kernel /boot/grub/core.img

where root (hd0,4) tells Grub that Debian is installed on /dev/sda5.

No comments: