Recently I have installed Ubuntu 9.10 - the Karmic Koala - released in October 2009 .I upgraded using update manager many times. So each time I update it is adding one menu in boot screen like recovery mode. I have windows OS also. Right now in booting time it is listing around 10 bootmenu's. Windows OS goes to last line of the menu . How can I clear all the boot menu's except windows and ubuntu latest vesion?
Go into the synaptic package manager, and scroll down until you find linux-image-*
You can safely remove them all, except the one you booted from. (You can find that out by running 'uname -r' from the command line.
Also running 'sudo apt-get autoremove --purge' from the command line may detect the 'old' ones and automatically remove them.
If you're feeling especially adventurous, you could edit the source of the Grub bootmenu at
and delete the menu entries you don't need.
You will have to deliberately ignore the message at the top of the file which says
You'll need to be root, and the the danger of making the system unbootable is high.
Make a copy of the file, eg grub.cfg0,
Study grub.cfg carefully, and make sure you understand what you're deleting before you do it. If you're NOT confident, don't do it.
The section relating to Memory Test is as follows in my Ubuntu 9.10
When update-grub is run, whether by you or by a kernel package installation, it generates /boot/grub/grub.cfg by running, in order, the executable scripts in /etc/grub.d. If you want to change your boot menu order, just change the order of the scripts in /etc/grub.d.
If you want your Windows boot entry first, run this to have that boot entry generated before the Linux kernel entries are generated (in the
Once you're done, run
The Memtest86 boot entries are created by the /etc/grub.d scripts
# unset executable bit for grub menu configuration script sudo chmod -x /etc/grub.d/*memtest86*
The chmod disables the Memtest86 boot entries, and running
To undo that change, simply add the executable bit back to the script, and re-run update-grub.
# reset sudo chmod +x /etc/grub.d/*memtest86*