Disable recovery modes in secondary partitions
Hi all,
I'm using Ubuntu 10.10 on a computer that has a hard disk with four partitions that look like this:
/dev/sda1 - Linux
/dev/sda2 - FAT32
/dev/sda3 - Linux
/dev/sda4 - Linux swap / Solaris
In /dev/sda1 I have the 32 bit version of Ubuntu, and in /dev/sda3 I have the 64 bit version.
My problem is that I want to disable all the recovery entries of the grub2's menu, but I can't because the option GRUB_DISABLE_
### BEGIN /etc/grub.
menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set e1865cdb-...
linux /boot/vmlinuz-
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
menuentry "Ubuntu, with Linux 2.6.35-25-generic (on /dev/sda1)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 09c06bbd-...
linux /boot/vmlinuz-
initrd /boot/initrd.
}
menuentry "Ubuntu, with Linux 2.6.35-25-generic (recovery mode) (on /dev/sda1)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 09c06bbd-...
linux /boot/vmlinuz-
initrd /boot/initrd.
}
So, my question is: how can I disable in a "elegant manner" those recovery menuentries? I know I could modify the "/etc/grub.
Thanks in advance.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu grub2 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Juan Carlos Chak for more information if necessary.