Boot Drive running out of space?

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1.42
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

Hello.

I wonder if anyone can help me with this one…?

Every week for the past 4 years I do an “Update” and a Diagnostic from the webgui. Today I had a warning email from root with the following:

Storage /boot (on device / dev/sda1) has only 9.1 MiB (4%) space remaining (out of 213 MiB). Be careful.

Should I be concerned?. Never seen this before, so I’m not sure whats happening. Today there was a YNH update to 12.1.42 as well as a kernel update.

many thanks in advance

Dj

Share relevant logs or error messages

Storage /boot (on device / dev/sda1) has only 9.1 MiB (4%) space remaining (out of 213 MiB). Be careful.

I think i fixed the issue…

There have been a number of kernel updates recently so I ran:

dpkg --list | grep linux-image

to see what kernels I had… There were many…

Then I ran

sudo apt autoremove --purge

I ran Diagnostics again, and this time I get:

Storage /boot (on device /dev/sda1) still has 106 MiB (50%) space left (out of 213 MiB)!

with a green tick… Whew…

Dj

From time to time you can also run yunohost tools basic-space-cleanup

@otm33 Wow, thanks for that one…

I’m ok now with the original issue, but that ncdu / was fanstastic, all this time using this system, 6 years! and I never used it… Very very useful… Thank you!

Every day is a school day!

Dj

Glad it’s sorted. With a 213 MiB /boot this will probably creep back after a few more kernel updates, so it’s worth a quick dpkg -l | grep '^ii linux-image' after big upgrades and keeping only the running kernel plus one older fallback. If the linux-image-amd64 meta-package is installed, autoremove usually handles that itself; when it isn’t, old kernels can pile up silently. If it keeps happening every few months, a slightly larger /boot partition is the longer-term fix, though that’s more disruptive to arrange.

Yes indeed… All noted, and I’ve added a few scripts, including yours, to my arsenal of ‘cleaning products’, which I shall get out and with a feather duster on occasion. It’s one of those things that I’ve never bothered about. I do regular backups, updates, I diagnose and fix issues, where my abilities allow, and fix them as they arise, but regular cleaning is not something I’ve ever done, until now…

Many thanks for your help and support.

Dj