Re: GRUB 2: A Guide for Users
Chainloading Grub Legacy menu.lst files in Grub 2 - A Practical Example
My system has two other *buntus installed. I want to access each ones menu.lst and not see all their individual bootable kernels (the default behavior in Grub 2). I have one HD. Kubuntu 9.04 is on the first partition and Ubuntu 9.04 is on the third partition. Both of these *buntus are using Grub Legacy. Kubuntu 9.10 is on the second partition using Grub 2.
Note: Grub 2 partition numbering begins with 1. There is no partition 0 using Grub 2.
Here is how it is accomplished.
1. Remove the execute bit from 30_os-prober
From a console, type:
2. Add the required entries to /etc/grub.d/40_custom
File must be edited as root. I added the following:
Save/close the file.
3. Type:
Done.
Tested - works.
Chainloading Grub Legacy menu.lst files in Grub 2 - A Practical Example
My system has two other *buntus installed. I want to access each ones menu.lst and not see all their individual bootable kernels (the default behavior in Grub 2). I have one HD. Kubuntu 9.04 is on the first partition and Ubuntu 9.04 is on the third partition. Both of these *buntus are using Grub Legacy. Kubuntu 9.10 is on the second partition using Grub 2.
Note: Grub 2 partition numbering begins with 1. There is no partition 0 using Grub 2.
Here is how it is accomplished.
1. Remove the execute bit from 30_os-prober
From a console, type:
Code:
sudo chmod -x /etc/grub.d/30_os-prober
File must be edited as root. I added the following:
menuentry "GNU/Linux Kubuntu 9.04" {
set root=(hd0,1)
chainloader +1
}
menuentry "GNU/Linux Ubuntu 9.04" {
set root=(hd0,3)
chainloader +1
}
set root=(hd0,1)
chainloader +1
}
menuentry "GNU/Linux Ubuntu 9.04" {
set root=(hd0,3)
chainloader +1
}
3. Type:
Code:
sudo update-grub
Tested - works.
Comment