Ubuntu /boot/ filling up, old kernels issue help

Don
Joined
21 Oct 2002
Posts
46,753
Location
Parts Unknown
Hi,


I have a Ubuntu 18.04.3 LTS install (which has been upgraded from around 12.04. /boot/ keeps filling up and shows old kernels

dpkg -l | grep linux-image

Shows..

1lp6xcv.png

How do I go about fixing this? I assume I need to take out the grub entries, then remove the files.

Cheers
 

Attachments

  • upload_2019-10-10_14-47-31.png
    upload_2019-10-10_14-47-31.png
    124.5 KB · Views: 1
Don
OP
Joined
21 Oct 2002
Posts
46,753
Location
Parts Unknown
Was going around in circles.

Ended up just doing this.

I found that it is far easier to abandon the small partition and move /boot to the root. This also prevents any out of space issues in the future.

First move your data from the boot partition to root (run as sudo -s):

cp -a /boot /boot2
umount /boot
rmdir /boot
mv /boot2 /boot

Remove (or comment) the /boot entry in /etc/fstab:

vim /etc/fstab

Update grub and make sure everything is correct:

update-grub

apt should now be able to upgrade without problems.

This leaves an unused 200mb partition (which you could use for something else if you find it worth the trouble).
 
Back
Top Bottom