[CentOS-RedHat] Linux /boot: Out of Disk Space While Installing Package kernel

Posted by cikul | Posted in Linux | Posted on 21-01-2013-05-2008

0

When updating Kernel using YUM, i got this error message :

Transaction Check Error:
  installing package kernel-2.6.32-379.14.1.lve1.1.9.9.el6.x86_64 needs 10MB on the /boot filesystem
Error Summary
-------------
Disk Requirements:
  At least 10MB more space needed on the /boot filesystem.

It means /boot partition is out of disk space. You need to verify this with the df command


root@server [/boot]# df -h
 Filesystem            Size  Used Avail Use% Mounted on
 /dev/sda6             4.0G  553M  3.2G  15% /
 tmpfs                 7.8G     0  7.8G   0% /dev/shm
 /dev/sda1              78M   53M   21M  73% /boot
 /dev/sda8             756G   72G  646G  10% /home
 /dev/sda7             3.0G   98M  2.8G   4% /tmp
 /dev/sda5              25G  7.3G   17G  32% /usr
 /dev/sda2              99G   11G   83G  12% /var
 /dev/sdb1             917G  190G  681G  22% /backup

you must have at least 40MB space on /boot partition to update the kernel. to reduce space in /boot partition, you can delete old kernel that not use by your system. to list all installed kernel you can use this command


[root@server boot]# rpm -qa | grep kernel
dracut-kernel-004-284.el6_3.1.noarch
kernel-firmware-2.6.32-279.19.1.el6.noarch
kernel-2.6.32-279.19.1.el6.x86_64
kernel-2.6.32-279.11.1.el6.x86_64
kernel-2.6.32-220.el6.x86_64
kernel-headers-2.6.32-279.19.1.el6.x86_64

Check kernel used by the system now, to prevent delete active kernel


root@server [/boot]# uname -a
Linux server 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux

From the result, the active kernel is 2.6.32-220.el6.x86_64, so you can delete another kernel (in this example kernel-2.6.32-279.11.1.el6.x86_64)


[root@server boot]# rpm -e kernel-2.6.32-279.11.1.el6.x86_64
root@server [/boot]# df -h

Now you can update your kernel

root@server [/boot]# yum -y update kernel
root@server [/boot]# yum -y update

Finally, reboot the system, enter:


root@server [/boot]# reboot

Share and Enjoy

Write a comment

*