PDA

View Full Version : [ubuntu] safely deleting old kernel files



frank002
December 1st, 2010, 01:21 AM
Hello:
I am using Ubuntu 10.04 and have so far updated to the latest kernel 2.6.32-26. I like to keep at least the last two so I also have 2.6.32-25. I have already deleted 2.6.32-21 and 2.6.32-24 using Synaptic. When I go to
/boot, I see remnants of the kernels I have deleted. There are files such as abi-2.6.32-21-generic, config-2.6.32-24-generic, initrd.img-2.6.32-21-generic, vmlinuz-2.6.32-24-generic. I was wondering if I could safely delete all of these?

Thank You

JOHNNYG713
December 1st, 2010, 01:37 AM
In terminal, sudo update-grub

nhasian
December 1st, 2010, 01:40 AM
you can also get the latest linux kernel from:

http://kernel.ubuntu.com/~kernel-ppa/mainline/

Liverbones
December 1st, 2010, 01:41 AM
You certainly should be able to with no problems. I don't see how those could possibly affect the newer kernels, but to be perfectly honest, I'm no expert when it comes to Linux kernels. I just know from personally deleting such files that I've never experienced problems.

Edit: Also forgot to mention... by default, Synaptic tends to leave many configuration files behind for the packages that you remove, which may very well be why you still have those files from older kernels.

frank002
December 1st, 2010, 02:15 AM
Went ahead and deleted the files and everything is ok so far. Thanks four quick replies.

Liverbones
December 1st, 2010, 02:20 AM
No problem. :) Some of us are bored at work, I'm sure. (That couldn't possibly be self-referential.) :P