Guidance on Cleaning Boot Partition

beeman1221

Member
Mar 10, 2014
6
0
1
cPanel Access Level
Root Administrator
Hello!

My /boot partition is at 83% full and I've googled all the boot threads but I'm not 100% sure on how to tell which kernel packages are safe to remove. Hoping someone could help.

From reading other help threads, this is what I've understood so far, please correct me if I'm wrong :)

First I need to do the below command to find the kernel I'm using

#uname -a

Output
Code:
Linux s1.****.com 2.6.32-358.11.1.el6.x86_64 #1 SMP Wed Jun 12 03:34:52 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
then to list installed kernel packages

# rpm -q kernel kernel-smp

Output:
Code:
kernel-2.6.32-358.el6.x86_64
kernel-2.6.32-358.6.2.el6.x86_64
kernel-2.6.32-358.11.1.el6.x86_64
package kernel-smp is not installed
So from the above info does it mean it is safe to remove the following kernel packages?

Code:
kernel-2.6.32-358.el6.x86_64
kernel-2.6.32-358.6.2.el6.x86_64
Command to remove packages is

Code:
yum remove kernel-x.xxx.exx.xx
Is this correct?

I read from another thread that I should have at least two kernel packages installed so I should only remove one from above?

What is "package kernel-smp is not installed"?

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
It is safe to remove the old kernel related files from the /boot partition to another location in order to make some free space.
Moving them to another partition is no different than removing them (except you have them for backup purposes). Thus, the same answer applies. See this post:

Clean Boot Partition

Thank you.