View Full Version : [ubuntu] Grub Screen

October 31st, 2008, 02:16 PM
As I have a dual boot when I start my computer I get the Grub screen which shows Vista and about half a dozen lines for Ubuntu. It appears that it shows the latest and old version of the Linux kernel.
Can anyone tell me how to remove all the old versions and have the grub screen show only one Ubuntu option.

October 31st, 2008, 04:17 PM
That's easy.

The file that controls the grub menu lives here: /boot/grub/menu.lst

ALT+F2 and type
gksu "gedit /boot/grub/menu.lst"

Navigate towards the end of the file, until you see

title <your grub menu item>
root <bla>
kernel <bla bla>
initrd <bla bla>
Now based on the text following "title" identify the menu items you don't need. Delete all the lines until the next "title" line. A maybe safer approach is to comment those lines, instead of deleting them. Prefix each line you want to comment with a #.


#title <Menu item you don't want>
#root <bla>
#kernel <bla bla>
#initrd <bla bla>

title <Menu item you want to keep>
root <bla>
kernel <bla bla>
initrd <bla bla>

November 1st, 2008, 12:06 AM
Thanks that looks much better