Clean up Ubuntu old grub boot menu after upgrades

This post was written by admin on July 7, 2009
Posted Under: General

Ubuntu always adds new items into the grub without removing the old ones after upgrades.If you have this problem and want to clean up old entries from your grub menu,this tutorial may helps.

Edit the file /boot/grub/menu.lst by following command in terminal:

sudo gedit /boot/grub/menu.lst

Find out the line which says “#howmany=all”,change it to “#howmany=1″.Close and save the file.Next time grub menu boots up,the newest kernel lines will be shown.

snapshot121

If you just want to deleteĀ  the one entry in grub menu,also in the above file find the section start as “## End Default Options##”,find out the part and delete it.

snapshot120

Related posts:

  1. Boot up ubuntu directly without loading grub menu
  2. Change the Grub menu timeout in ubuntu
  3. Add Windows into grub menu after install Ubuntu
  4. Decorate Grub 2 boot loader using BURG
  5. How to restore Grub 2 after reinstalling Windows XP/Vista/Win7

    Tags:

    Reader Comments

    ubuntu 10.04

    I’ve tried sudo gedit /boot/grub/menu.lst

    but it opens an empty file in gedit and not in the terminal. I want to delete an old option after upgrade

    [Reply]

    #1 
    Written By Ron on August 15th, 2011 @ 8:21 am

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address