After a kernel update, you find the start-up menu populated with extra lines related to all the old kernel versions plus the current one. To manage the start-up manager and safely remove old kernels you have to manually operate on it.
First of all you have to double-check what is the current kernel version.
Open a Terminal and type: uname -r
The result will be something similar to: 2.6.32-35-generic
Then you will go to the boot directory through the command: cd /boot ls vmlinuz*
The next step will be to obtain more information about old kernel you have on our PC: ls vmlinuz*
Now in the Terminal you have results similar to these:
vmlinuz-2.6.32-21-generic vmlinuz-2.6.32-25-generic vmlinuz-2.6.32-35-generic
As last step you have to remove all the old version of the kernel using this command: sudo apt-get remove linux-image-X.X.XX-XX-generic
where “x” is the obsolete kernel version you want to purge. In my specific case the proper command line I used was:
sudo apt-get remove linux-image-2.6.32-21-generic linux-image-2.6.32-24-generic linux-image-2.6.32-25-generic linux-image-2.6.32-26-generic
Last but not least go to System –> Administration –> StartUp Manager (available for installation on Synaptics or on Ubuntu Software Center) and select your OS choice in the Default Operating System menu. That’s all!
QGRUBEditor is one of the most interesting system tool for Linux I have met during the last two months. For this reason I decided to post a review in our Linux Page (in Spanish). This System tool is simple to install, easier to use and the results are very enjoyable. In our tests, we were able to easily modify the GRUB boot loader without damaging our OS. QGRUBEditor has a special feature which allows you to backup (highly recommended) your actual GRUB configuration before starting playing with its tools. If something goes wrong you can restore your previous GRUB just clicking on the restore button. Last but not least, QGRUBEditor allows you to add a password to rise the security of your GRUB.