Portal Home > Knowledgebase > Articles Database > /boot partition is nearly full
/boot partition is nearly full
Posted by anniesteephan, 07-11-2013, 10:43 PM |
Hi All,
Yesterday i get cpanel warning, /boot nearly full.
And i have removed old kernals from /boot but still using 57 M
kernel we are using is
Here is the list of files that are on my /boot partition:
what else can I delete?
Thanks,
Annie
HostOnNet.com
|
Posted by dcdan, 07-12-2013, 01:14 AM |
I am pretty sure you can safely delete those two initrd-2.6.32-379.22.*
Just in case, before deleting you can rename them & reboot the server. If it boots okay, then you can delete them.
|
Posted by MikeDVB, 07-12-2013, 01:37 AM |
I wouldn't recommend deleting files from /boot directly - use your package manager [yum for example on CentOS] to remove any kernels you no longer need.
|
Posted by dcdan, 07-12-2013, 01:48 AM |
MikeDVB
Looks like those files are remnants of old kernel packages, I do not think there is another way to remove them but to simply delete.
|
Posted by MikeDVB, 07-12-2013, 01:54 AM |
They should be cleaned up when the RPMs are removed unless it's some other distro with terrible package management.
At least, I've never had to manually clean out /boot on a server [ever].
|
Posted by RRWH, 07-12-2013, 02:26 AM |
Yes, I have found that it is fairly common for the initrd* files to be left lying around - and generally something that I clean up manually when they are.
OP -> how did you go about removing the old kernels? Just making sure that you took a sensible approach rather than just deleting.
|
Posted by BestServerSupport, 07-12-2013, 10:59 AM |
You can run following command via SSH and it will show you all kernels installed
rpm -qa |grep kernel:
Just keep two kernels to avoid unwanted issues and you can safely remove others to free up space of your boot partition.
You can use following command to remove kernel:
rpm -e kernel-version-number
|
Posted by RoseHosting, 07-12-2013, 11:58 AM |
To remove the old kernels:
To make this permanent, add the following line in the /etc/yum.conf
package-cleanup is a part of the yum-utils package.
|
Add to Favourites Print this Article
Also Read