4

I am getting Low Disk Space on /boot/ in CentOS 7. I got this error since I recently did yum update.

The df command shows 100% usage on boot folder.

Following are the snapshots.

Low Disk Space on "boot" error

disk usage report

4
  • I don't understand, is superuser a group inside stack overflow ?
    – spandan pradhan
    Jul 14, 2016 at 9:57
  • @spandanpradhan Can you show us the output of ls -l /boot ?
    – clhy
    Jul 14, 2016 at 13:12
  • @pun: following is the output of command ls -l /boot ls -l /boot output Jul 14, 2016 at 14:08
  • @spandanpradhan Consider marking the current top-voted answer as a solution.
    – user115145
    Sep 13, 2017 at 10:16

2 Answers 2

9

As answered by @strandraeber above your /boot/ is full due to old kernels

One way to fix this would be deleting old kernels.

You can do that by installing yum-utils and running command as shown

package-cleanup --oldkernels --count=1

This will delete all old kernels except for latest one. You can play with the numbers too.

Another option for you is to resize boot partition.

Edit: Adding another point which I learned from this post that is to relocate your /boot/ partition as well.

1
  • Keep at least two kernels. Chances are your latest kernel wasn't successfully installed due to lack of space. Mar 11, 2018 at 10:11
1

There are probably old and unused kernel images residing in /boot. According to this post https://unix.stackexchange.com/a/83420/176600 you can remove them with yum autoremove.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .