Deleting old kernels?
| Important: The following is a text only archive! For full features; Go to Deleting old kernels? |
posted by voter
Hi... never had this issue before, so any advice would be appreciated.
I have a server with Red Hat ES and take care of most issues through
WHM/cPanel... Just was checking things out and saw that the /boot partition
is 66% full now.
/boot (/dev/hda1), 46M total, 29M used, 15M available, 66% full
Are there things I can remove? A script I can run to optimize this?
I have been doing the recent kernel updates through WHM, and assume this
may be related.
Also... I didn't set up the partition sizes on this server, but isn't 46M
kinda small for boot? Is there anything I can do for that?
Thanks!
posted by 2Guns
46M for /boot is a good size..
First of all, I would suggest keeping at least 2 kernels on your system at
all times. The basic cover my arse rule of thumb.
If you really want to remove them, you will need to do the following as
root:
1. Edit grub.conf, remove the lines assoc. with that kernel. You can find
grub.conf in /etc/
2. Search for which kernels are installed. rpm -q kernel
3. Delete the specific kernel. rpm -e kernel (example: rpm -e
kernel-2.6.9-1.667)
Reboot if desired. Any of the hard core Linux people correct me if I am
wrong, there are several ways to delete a kernel from your system, this is
probably the easiest for new users.