Remove Unused Grub2 Entries

I had to reinstall my Linux Mint 9 Isadora after messing with a new copy of Windows XP. Once the whole thing was complete. I ended up with two extra kernel versions that weren’t really installed but were still listed in the boot menu. I ignored it for the longest time until I asked myself today.

    How do I remove unwanted Grub2 entries?
    What happens if the entries are there but the kernel is not actually installed in Synaptic?

I looked around the web and found that most sites say the same thing. I did not want to manually edit the Grub2 configuration file because that would still leave the headers in my system. And I’m a bit OC when it comes to my toys. So I played around with it a bit and found a simple solution.

1) Find out the current kernel version by opening the Terminal and running: uname -r
2) Take note of the result. This command gave me “2.6.32-25-generic”.
3) Open Synaptic and then search for the 4 digits. For example, “2.6.32”.
4) Install the “ghost” kernel versions : Check the “Mark for Installation” box and hit “Apply”.
5) Opened terminal and run: sudo update-grub2
6) Uninstall the kernel versions : Check the “Mark for Complete Removal” box and hit “Apply”.
7) Go back to the Terminal and ran: sudo update-grub2

Linux Mint 9 Isadora is based on Linux Ubuntu 10.04 Lucid Lynx. I am pretty sure that the same set of instructions can be used for it too. Using these steps, I’ve removed everything from the Grub2 menu except the two latest kernel versions, the Memtest and the Windows entry. I hope this works for anyone else with the same issue.

Advertisements

One thought on “Remove Unused Grub2 Entries

  1. I could not distinguish ‘ghost’ versions from what was on the screen.
    Two versions had a greyed out ‘!
    , but could not be installed.
    I do not know what you mean by ghost versions.
    sudo update grub2
    yielded command not found.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s