Removing older kernels from Ubuntu Karmic

Hey I’m back again! This time I think I should talk about the Grub a little bit, (if you are thinking that I’m gonna tell you how to remove grub 2 and install the previous one its better if you stop reading this). What I’m gonna tell you is “How to clean the usual Grub menu”.

When we do the updates, for an instance if we take ubuntu there are updates almost every week and among those there are kernel updates like every other week, so what basically happens is that, the grub menu will get filled up like the one in the image below

Grub menu filled

So how can we clean this mess?
First, you have to open a terminal and type,
uname -r
This will show you the current kernel you are using, (i.e. 2.6.31-20-generic for me) or remember the name of the kernel at the top of the menu, (for the above image its 2.6.27-11-generic). Now you have to go to System–> Administration –> Synaptic Package Manager. From there, in the Quick Search, type linux-image and this will enlist all the kernels that are available and also, the ones marked in green are the ones that are currently installed (here I’m gonna remove 2.6.31-19-generic). Right click on the one you want to remove and click on “Mark for removal”. Then again search for linux-headers and again mark for removal.

linux-image search

Marked for removal

And finally Apply :D thats it !!

Warning!
Please remember to remove the ones you are not using only, and be careful to not to remove the current kernel that you are using because it’s possible to break ubuntu if you remove the wrong kernel.

The grub menu list will get updated automatically and you are free from old kernels.

Finally Free

I’ll meet you again with another post about the Grub till then
bye.

~~ Rusiru Boteju ~~

Advertisement

About Rusiru Boteju
A peculiar or otherwise odd person, especially one who is perceived to be overly obsessed with one or more things including those of intellectuality, computers, technology, etc.

5 Responses to Removing older kernels from Ubuntu Karmic

  1. Pingback: Restore Grub « Life and Tech

  2. Sorry for my bad english. Thank you so much for your good post. Your post helped me in my college assignment, If you can provide me more details please email me.

  3. Johndb says:

    Very shorts, simple and easy to understand, bet some more comments from your side would be great

  4. mode20100 says:

    A+ would read again

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.