Help - Search - Members - Calendar
Full Version: Removing old kernels from /boot folder
The Planet Forums > Operating Systems > Red Hat Linux
gertiebeth
There used to be a tutorial here (my bookmark is still RACKSHACK!) about how to correctly remove old kernels from the /boot folder to free up space. But I can't find it anymore. Can someone please post how to remove the excess files from the /boot folder? If I remember correctly, you can't just remove them but instead need to uninstall them...

Can someone help or point me in the right direction?
Tomy Durden
You can rm the kernels, and then edit the grub.conf to take the specific entries out. Just make sure you make a backup of the grub.conf before editing and that you don't remove your default, the original kernel installed on the machine, and maybe one of the first most previous kernel. This will ensure that, in the event of an issue, we have a working kernel to boot from.
James Erickson
The proper way of doing this would probably get a list of the kernels installed on the machine
CODE
rpm -q kernel
rpm -q kernel-smp

compare those entries to your current kernel:
CODE
uname -r

and remove any of the kernels that are older than what you are running
CODE
rpm -e kernel-name-here
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.