View Full Version : [ubuntu] [SOLVED] Safe to uninstall old kernels?

Fernanddo Saenz
December 1st, 2008, 04:02 AM
I have a Dell Vostro 1000 laptop running 8.04 (dual boot with XP). My grub menu has grown a bit long now, since it has all kernels since 2.6.24-16, including -18, -19, -21 and now runs 2.6.24-22. Question is: Can I safely uninstall everything related to kernels -16, -18, -19 without thrashing anything? I'd like to keep just the previous kernel, besides the current. Counting the linux-headers, generic kernel, restricted modules, etc., they're taking up 515MB. I'd like to clean up a bit since I have only 40GB for Ubuntu

December 1st, 2008, 04:04 AM
...indeed it is safe, as long as you need not boot to the old ones.

December 1st, 2008, 06:16 AM
You can uninstall the old ones using synaptic. Next, clean up grub

gksudo gedit /boot/grub/menu.lst

edit kernel options line:

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=1


sudo update-grub

The old entries should be gone.