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