Deleting older Ubuntu linux kernel images

Asked by Jonathon Mitchell

I'm new to Ubuntu and have been using it for a very short time (about one month). However, in this short time I have received two OS updates and now have three Ubuntu options on my boot menu. I was wondering how I could delete these (as I said I'm new and haven't been able to fully explore everything Ubuntu has to offer). My boot options are as follows:
Ubuntu, with linux 2.6.32-23 generic
Ubuntu, with linux 2.6.32-23 (recovery mode)
Ubuntu, with linux 2.6.32-22 generic
Ubuntu, with linux 2.6.32-22 (recovery mode)
Ubuntu, with linux 2.6.32-21 generic
Ubuntu, with linux 2.6.32-21 (recovery mode)
MemTest +86
Windows XP

I would like to get rid of the older versions of Ubuntu, but as I said I don't really know that much about Ubuntu and would like to know the full steps required to getting rid of these older versions. Thanks in advance for your help

Question information

English Edit question
Ubuntu Edit question
No assignee Edit question
Solved by:
Artemy Vysotsky
Last query:
Last reply:
Revision history for this message
shababhsiddique (shababhsiddique) said :

you have to type sudo gedit /boot/grub/menu.lst

just follow

Revision history for this message
Rajinder Sandhu (sandy744) said :

no what reply given above is wrong...follow the following steps...
open synaptic package manager by system>administration>synaptic package manager
type linux-image in the search box.... it will display all linux images installed, now you need to select each image for removal ...keep the latest rest all you can mark for removal (right click on the selected image and click mark for removal)
now type in the terminal
sudo update-grub

that should fix the issue.

Revision history for this message
Best Artemy Vysotsky (artemyv) said :

It is recommended to keep 2 last kernel versions. Earlier versions could be removed.

I prefer to use Synaptic Package Manger for this task (you can use your proffered application)

In Synaptic you'll do the following:

Choose Status tab and click on "Installed" packages

To remove kernel 2.6.32-21 copy this string into the "Quick search" filter box

In the list of filtered packages you'll see linux-image-2.6.32-21-generic

Right click on it and select - "Mark for complete removal"

Then - apply your changes. This should remove the selected kernel version as well as clear the corresponding entries in your grub menu

Revision history for this message
Jonathon Mitchell (mitchell-jonathon) said :

Thanks Artemy Vysotsky, that solved my question.

Revision history for this message
shababhsiddique (shababhsiddique) said :

i dont understand what you say.... maybe you are right

DId he meant to remove the kernel ?? or he just asked to cleanup the boot screen?? my link was to cleanup the GRUB list. not the kernel..

Revision history for this message
Jonathon Mitchell (mitchell-jonathon) said :

It was the boot screen, I apologize if I wasn't clear enough. But I thank you all for your help