Removing Extra Ubuntu Entries in GRUB
by Aleksandar Micovic
If you’ve used Ubuntu through any kernel updates, you’ll know that each major update will place not one, but two entries for booting from GRUB. A normal boot, and a safe mode. If you receive three updates, that’s a total of six new entries. Not to mention that if you’re dual booting like me, you’ll have even more. I’ve been putting it off for a while, mostly because I didn’t care for the solution. But, I was bored today and I decided to look it up. I’m glad I did. It’s a lot easier than I thought.
sudo vim /boot/grub/menu.lst
That’s it. Then just comment out the entries (they span multiple lines, and are near the end of the file). If you don’t like vim, or working through the terminal then run the command below to edit the file in gedit.
gksu gedit /boot/grub/menu.lst
Once you have the file open, just comment out the entries by placing a “#” before every line in the entry. You may be tempted to delete some of the entries, but really, why would you want to do that? Commenting them out solves the problem, and if something does go wrong with your current kernel, you can always uncomment an Ubuntu entry that doesn’t have the problem.
A commented entry looks like this.
#title Ubuntu 9.04, kernel 2.6.28-11-generic
#uuid b511d0d6-7d11-4909-bf5e-9764fce42f96
#kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=b511d0d6-7d11-4909-bf5e-9764fce42f96 ro quiet splash
#initrd /boot/initrd.img-2.6.28-11-generic
#quiet
Hope this helps.