Linux /boot: Out of Disk Space While Installing Package kernel-2.6.32-131.2.1.el6.x86_64

If you’re encountering an “out of disk space” error while installing the package kernel-2.6.32-131.2.1.el6.x86_64 in Linux, it means that the /boot partition does not have enough free space to accommodate the new kernel image. This can be resolved by removing some old, unused kernel images from the /boot partition.

Here’s how you can do this:

  1. Identify the currently running kernel version:
uname -r
  1. List all installed kernels:
rpm -q kernel
  1. Remove the old kernels that are no longer needed:
rpm -e kernel-<version>

Replace <version> with the version number of the kernel you want to remove. Make sure not to remove the currently running kernel or any kernels that are needed by other packages. (blazeair.com)

  1. Clean up the boot loader configuration files:
grubby --remove-kernel=/boot/vmlinuz-<version>

Replace <version> with the version number of the kernel you want to remove from the boot loader configuration.

  1. Finally, run the command to install the new kernel package:
yum install kernel-2.6.32-131.2.1.el6.x86_64

This should resolve the “out of disk space” error and allow you to install the new kernel.

Leave a Comment