Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
414
rated 0 times [  414] [ 0]  / answers: 1 / hits: 483495  / 1 Year ago, wed, december 14, 2022, 5:29:36

I have 200 MB assigned for the /boot partition. Whenever I try to update the kernel, I receive an error message that basically states /boot is full.



What can I do to cleanup /boot and remove/backup the older kernels?


More From » kernel

 Answers
3

Command line method:


First check your kernel version, so you won't delete the in-use kernel image, running:


uname -r

Now run this command for a list of installed kernels:


dpkg --list 'linux-image*' | grep ^ii

and delete the kernels you don't want/need anymore by running this:


sudo apt-get remove linux-image-VERSION

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


When you're done removing the older kernels, you can run this to remove ever packages you won't need anymore:


sudo apt-get autoremove

And finally you can run this to update grub kernel list:


sudo update-grub

[#29437] Friday, December 16, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ndaavi

Total Points: 169
Total Questions: 116
Total Answers: 113

Location: Falkland Islands
Member since Wed, Dec 23, 2020
3 Years ago
;