How To Remove Old Kernel In Ubuntu 10.04 Lucid Lynx And Update Grub2 Menu

When you update Ubuntu, not all obsolete packages and kernels are removed. Some will stay on your computer taking up spaces and not being used. Your Grub boot menu also have older OS Kernels listed. In this tutorial, I’ll show you how to remove old kernels and update your grub menu to only show your lived kernel.

 

Getting started:

 

To get started, first out your current kernel version. Go to Applications –> Terminal

 

ubuntu_remove_kernel

 

Type the below command to find out your lived running kernel. Take notes of the underlined line. It’s your lived kernel.

uname -r

ubuntu_remove_kernel_1

 

 

 

Next, press Alt-F2 on your keyboard, then type the commands below and click Run:

gksu synaptic

ubuntu_remove_kernel_2

 

 

 

Then type the first three dotted digits of your current kernel in the search box and look for the one that matches your lived kernel.

 

ubuntu_remove_kernel_3

 

Now scroll down and remove all kernel versions that are lower than your lived kernel version. You can tell by looking at the last digit.

 

ubuntu_remove_kernel_4

 

Right-click on the kernel and select ‘Mark for Complete Removal’

 

ubuntu_remove_kernel_5

 

Then click Apply

 

ubuntu_remove_kernel_6

 

 

After removing, go to the terminal and type the below commands to update grub2:

sudo update-grub2

ubuntu_remove_kernel_7

 

 

 

That’s all to it.

Enjoy and please come back soon.


Leave a Reply

blog comments powered by Disqus
Twitter Delicious Facebook Digg Stumbleupon Favorites More