How to fix an error “At least xMB more space needed on the /boot filesystem. “

Transaction check error:
installing package kernel-3.10.0-693.11.1.el7.x86_64 needs 232KB on the /boot filesystem

Error Summary
————-
Disk Requirements:
At least 1MB more space needed on the /boot filesystem

When this error has been coming we first check the free space in /boot partition

[root@localhost ~]# df -kh
Filesystem            Size           Used            Avail              Use%                 Mounted on
/dev/sda3               18G           7.2G             11G                  41%                            /
devtmpfs               348M         0                   348M               0%                             /dev   
tmpfs                      363M         0                  363M                0%                             /dev/shm
tmpfs                      363M        15M              348M                5%                             /run
tmpfs                      363M         0                   363M                0%                             /sys/fs/cgroup
/dev/sda1               297M         267M            31M                 90%                            /boot
tmpfs                      73M           12K              73M                   1%                             /run/user/42
tmpfs                       73M          0                    73M                  0%                             /run/user/0

/boot partition is 90 % full. Now you check installed kernel 

[root@localhost ~]# rpm -qa | grep kernel

kernel-devel-3.10.0-514.6.1.el7.x86_64
kernel-3.10.0-693.5.2.el7.x86_64
kernel-devel-3.10.0-514.16.1.el7.x86_64
kernel-tools-3.10.0-693.5.2.el7.x86_64
kernel-headers-3.10.0-693.5.2.el7.x86_64
kernel-devel-3.10.0-514.2.2.el7.x86_64
kernel-3.10.0-514.10.2.el7.x86_64
kernel-tools-libs-3.10.0-693.5.2.el7.x86_64
kernel-3.10.0-514.2.2.el7.x86_64
kernel-3.10.0-514.16.1.el7.x86_64
abrt-addon-kerneloops-2.1.11-48.el7.centos.x86_64
kernel-devel-3.10.0-693.5.2.el7.x86_64
kernel-devel-3.10.0-514.10.2.el7.x86_64
[root@localhost ~]#

Display current kernel running on the machine use the following command

[root@localhost ~]# uname -r
3.10.0-693.5.2.el7.x86_64

So remove the 2 oldest kernel

[root@localhost ~]# rpm -e kernel-3.10.0-514.2.2.el7.x86_64

[root@localhost ~]# rpm -e kernel-3.10.0-514.16.1.el7.x86_64

Check the free space in /boot partition

[root@localhost ~]# df -kh
Filesystem            Size           Used            Avail              Use%                 Mounted on
/dev/sda3               18G           7.2G             11G                  41%                            /
devtmpfs               348M         0                   348M               0%                             /dev   
tmpfs                      363M         0                  363M                0%                             /dev/shm
tmpfs                      363M        15M              348M                5%                             /run
tmpfs                      363M         0                   363M                0%                             /sys/fs/cgroup
/dev/sda1               297M         164M            133M                56%                            /boot
tmpfs                      73M           12K              73M                   1%                             /run/user/42
tmpfs                       73M          0                    73M                  0%                             /run/user/0

As you can see freed space more  from required amount of space. So now you can update kernel freely with “yum -y update kernel “command.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s