Clean Up Ubuntu Grub Boot Menu After Upgrades

One of the things in Ubuntu that has always driven me crazy is the addition of new items into the grub menu without removing the old entries that likely don’t even work anymore. I’m sure most experienced Ubuntu users already know how to do this, but here’s the method anyway.

Important: If you’re using a newer version of Ubuntu with grub 2 (like Ubuntu 9.10 or later), you’ll need to read about how to clean up the New boot menu instead.

I just installed this box recently, and then did an upgrade…. already there are 7 items in the menu.

clean-up-ubuntu-grub-boot-menu-after-upgrades photo 1

To remove these entries, we’ll need to edit the file /boot/grub/menu.lst. You can do this by using Alt+F2 and then typing in the following command:

gksu gedit /boot/grub/menu.lst

clean-up-ubuntu-grub-boot-menu-after-upgrades photo 2

Now that we’ve got the file open, scroll down to the bottom of the file where it says “End Default Options”, and you’ll find all the menu entries for the various kernels in here. You can just select and delete the ones you don’t want.

clean-up-ubuntu-grub-boot-menu-after-upgrades photo 3

Save the file, and then the next time you boot up you’ll see a much nicer set of options.

clean-up-ubuntu-grub-boot-menu-after-upgrades photo 4

I’m guessing it would also be prudent to clean up the other unused kernel files that are sitting out there… I’m sure there’s some automated tool to do that, but I’ve not taken the time to figure it out yet.

More stories

Change SSH Welcome Banner on Ubuntu

Every time I connect to my Ubuntu development server through my ssh client, I receive the same message and I’m getting tired of seeing it, so I decided to change the message to something else.

The How-To Geek Vista Sidebar Gadget

A number of people have written in asking about a Vista Sidebar gadget for our latest articles feed. I finally got some time today, so I’ve thrown one together that isn’t exactly feature-rich, but does get the job done.

Make Monday Not Suck: Opera

This will liven up your week a bit.  You may be thinking… “oh another web browser … big deal”.  Well, Opera has a lot of interesting features to play with.  Right now I don’t see it replacing Firefox by any means, but it is a fun toy none the less.  The people in the opening install screen are

Manage the Reading Pane In Outlook 2007

Throughout my years of working IT I have come across some very unique user setups in Outlook.  Some users will tweak every thing to the point it is barely useable, at least if you’re not familiar with how they set it up.  If you need to use a co workers computer or a “spare’ while you’re waiting on

Sending Polls in Outlook 2007

Collecting responses from a group of people is something very common in an office environment. Whether you are trying to ask what type of pizza to order for a meeting, or taking a vote on who’s going to quit next, what you need is a poll.

Create the Ultimate Firefox Web Development Profile

When properly configured, Firefox can become the ultimate web development tool, giving you direct access to the page you are working on so you can style your page in real-time, debug javascript or even edit the html.

Disable Explorer Breadcrumbs in Windows Vista

Dozens of people have written in and expressed their hatred of the new breadcrumb feature in Windows Vista’s Explorer address bar, and especially because you simply can’t turn it off… until now.

Make Windows User Interface Run Snappy

Most of you who are running Vista should know by now that Microsoft introduced major updates for Vista.  For a full detailed summary of what is included read The Geek wrote a great article reviewing the updates.  One of the updates includes better Vista Aero performance with NVIDIA graphics cards.