![]() ![]() Start by listing all available kernels in /boot: In case you can no longer boot Ubuntu because the disk is full, follow the procedures below from the recovery mode (reboot your computer, hold the Shift (with BIOS), or Esc (with UEFI), key to get to the grub menu, then select recovery mode, and finally choose the "Drop to root shell prompt" option). This guide contains an example which you'll have to adapt for your current running kernel version and old, unused kernel versions. As a way to fix this you can manually remove the kernel images from /boot. When this happens you can't remove old, unused kernels using apt. In some situations you might notice that your /boot partition got full in the middle of a system update, getting an error when trying to use apt which says No space left on device. Solution 2: Free up space in /boot when the partition is full and apt is broken. You can see the kernel that's currently in use by running:Īnother common Debian / Ubuntu / Linux Mint problem (and solution) you might be interested in: How To Fix "Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)" Errors Or, to be more precarious, you could leave the the running and previous version installed, and only remove older kernels. If you want to use the old purge-old-kernels utility that was bundled with Byobu a while back (in newer versions it just points to apt autoremove), you can find it here.Īn alternative, easy to use way of removing old, unused kernels is to use Synaptic Package Manager to search for "linux-image" and "linux-headers", and remove all but the version you're currently using. Supposedly apt autoremove works correctly for some time, and even the purge-old-kernels utility now recommends using apt autoremove. You'll find various complicated commands online for removing old kernels, but I don't recommend using them as they may remove some unwanted stuff (see Andreas Jansson's comment on this answer for example). Linux-image-5.0.0-11-generic linux-modules-4.18.0-15-genericĠ upgraded, 0 newly installed, 5 to remove and 0 not upgraded.Īfter this operation, 334 MB disk space will be freed. If apt is working, you can usually remove old, unused kernels by running: Solution 1: Free up space in the /boot partition when apt is working This article explains how to free up space in the /boot partition on Ubuntu, Debian, Linux Mint, Pop!_OS, elementary OS, and other Debian or Ubuntu based Linux distributions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |