Edit: check the next post to see how to build this menu automatically.
My tweak of the Grub2 menu is the following, and makes the menu look like this:
Code:
Ubuntu Karmic
Windows Vista
=============== Other non-standard options ===============
Ubuntu, Linux 2.6.31-14-generic
Ubuntu, Linux 2.6.31-14-generic (recovery mode)
Memory test (memtest86+)
Memory test (memtest86+, serial console 115200)
Windows Vista (loader) (on /dev/sda1)
Windows Vista (loader) (on /dev/sda2)
What I have done is:
1 - Copy the /etc/grub.d/40_custom to /etc/grub.d/06_custom
(by being 06 it will be loaded before 10_linux and your custom
options will appear at the top).
2 - Edit the 06_custom file created adding the menu entries
you want, copying exactly the content of the
/boot/grub/grub.cfg file. You can copy exactly the entry from the grub.cfg file and change the title of the menuentry alone. My 06_custom file looks like this, then:
Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Ubuntu Karmic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set aecf5a37-4292-4545-9f7c-0dad8d118263
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=aecf5a37-4292-4545-9f7c-0dad8d118263 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Windows Vista" {
insmod ntfs
set root=(hd0,2)
search --no-floppy --fs-uuid --set 3056cb7d56cb4278
chainloader +1
}
menuentry "=========== Other non-standard options ==============" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set aecf5a37-4292-4545-9f7c-0dad8d118263
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=aecf5a37-4292-4545-9f7c-0dad8d118263 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
Note that the third entry is exactly identical to first, and I use it only as a separator. I don't know how to put an empty entry for that.
Ideally the first "Ubuntu Karmic" entry should be something more intelligent that updates automatically when a new kernel is found. I don't know how to do that yet.
Edit: after changing the files you need to run update-grub, of course.
Bookmarks