2

I try to update kernel on my CentOS 7 but the yum say there is no space enough on /boot although /boot have 343 MB as show below:

Filesystem Size Used Avail Use% Mounted on

/dev/sda2 477M 105M 343M 24% /boot

Here the error that I got:

Transaction check error:

installing package kernel-3.10.0-123.9.2.el7.x86_64 needs 30MB on the
/boot filesystem

That's weird.

  • Can you add full output of du -h? – kirill-a Jan 15 '15 at 8:42
  • @kirill-a What do you want it for? – thsecmaniac Jan 16 '15 at 9:25
  • There may be not enough memory for Yum update on tmpfs or your / mount but he can display incorrect message about /boot. – kirill-a Jan 16 '15 at 20:48
0

Did you try rebooting the system, and then trying installing the kernel update again? If that doesn't work, this could be a bug unless it actually requires 373 MB to install the kernel.

yum install yum-utils<br>
package-cleanup --oldkernels --count=2

Second command of package-cleanup would leave latest 2 kernels in the server.

It says 30 more MB space for installation of the kernel.

| improve this answer | |
  • @Michiel I have only one kernel,3.10 version – thsecmaniac Jan 16 '15 at 9:30
0

Isn't /boot mounted readonly, by chance? If so,

mount -o rw,remount /boot &&
yum update kernel &&
mount -o ro,remount /boot

(note: I'm rarely seen at centos hosts being an ALT Linux developer so YMMV)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.