/boot 100 % full in linux

If your /boot partition is 100% full in Linux, it means that the partition is running out of space and you may not be able to install new kernels or packages. Here are some steps you can take to resolve this issue:

  1. Remove old kernels: Old kernels take up space in the /boot partition. You can check the list of installed kernels using the command dpkg --list | grep linux-image. Then, remove the old kernels that are no longer needed using the command sudo apt-get remove <kernel-package-name>.
  2. Clear the package cache: The package cache can take up a lot of space in the /boot partition. You can clear the package cache using the command sudo apt-get clean.
  3. Increase the size of /boot: If the above steps do not resolve the issue, you may need to increase the size of the /boot partition. This can be done by shrinking another partition and allocating the free space to the /boot partition using a partitioning tool like GParted.
  4. Move /boot to a separate partition: If you have multiple partitions on your system, you can move the /boot partition to a separate partition with more space. This can be done by creating a new partition and copying the contents of /boot to the new partition.

After resolving the issue, it is recommended to keep the /boot partition clean by removing old kernels regularly and keeping enough free space for new kernels and packages.

First check the kernel version, that which kernel image, running:

uname -r
Now list of installed kernels:

dpkg –list ‘linux-image*’ | grep ^ii


Now delete the kernels don’t want/need anymore

sudo apt-get remove linux-image-VERSION


Replace VERSION with the version of the kernel you want to remove.

When done removing the older kernels, now we have to remove ever packages that is not needed anymore:

sudo apt-get autoremove
And finally can run this to update grub kernel :

sudo update-grub

Thankyou for visiting please comments if you face any issue in this regard

Leave a Reply

Your email address will not be published. Required fields are marked *

Verified by MonsterInsights