Low Disk Space on "boot"

I got “The volume “boot” has only 0 bytes disk space remaining” as I tried to update my L5.

I guess I’d have to remove old Kernels so I listed the /boot directory

purism@pureos:~$ ls -l /boot
total 404629
-rw-r--r-- 1 root root  4860327 Nov 29 09:31 System.map-5.13.0-1-librem5
-rw-r--r-- 1 root root  4900200 Dec 20 17:34 System.map-5.15.0-1-librem5
-rw-r--r-- 1 root root  4941859 Jan 25 12:27 System.map-5.16.0-1-librem5
-rw-r--r-- 1 root root     2328 Jan 31 11:57 boot.scr
-rw-r--r-- 1 root root     2328 Jan 13 21:58 boot.scr.bak
-rw-r--r-- 1 root root   185839 Nov 29 09:31 config-5.13.0-1-librem5
-rw-r--r-- 1 root root   186356 Dec 20 17:34 config-5.15.0-1-librem5
-rw-r--r-- 1 root root   187855 Jan 25 12:27 config-5.16.0-1-librem5
lrwxrwxrwx 1 root root       53 Jan 31 11:57 dtb -> dtbs/5.16.0-1-librem5/freescale/imx8mq-librem5-r4.dtb
lrwxrwxrwx 1 root root       53 Dec 30 22:59 dtb-5.13.0-1-librem5 -> dtbs/5.13.0-1-librem5/freescale/imx8mq-librem5-r4.dtb
lrwxrwxrwx 1 root root       53 Jan 13 21:57 dtb-5.15.0-1-librem5 -> dtbs/5.15.0-1-librem5/freescale/imx8mq-librem5-r4.dtb
lrwxrwxrwx 1 root root       53 Jan 31 11:57 dtb-5.16.0-1-librem5 -> dtbs/5.16.0-1-librem5/freescale/imx8mq-librem5-r4.dtb
drwxr-xr-x 5 root root     1024 Jan 31 11:57 dtbs
drwxr-xr-x 2 root root     1024 Jul 13  2021 grub
-rw-r--r-- 1 root root 64449150 Jan 31 11:57 initrd.img
-rw-r--r-- 1 root root 64354646 Dec 30 22:59 initrd.img-5.13.0-1-librem5
-rw-r--r-- 1 root root 64435578 Jan 13 21:57 initrd.img-5.15.0-1-librem5
-rw-r--r-- 1 root root 64449150 Jan 31 11:57 initrd.img-5.16.0-1-librem5
-rw-r--r-- 1 root root 64435578 Jan 13 21:58 initrd.img.bak
drwx------ 2 root root    12288 Sep 11 07:31 lost+found
-rw-r--r-- 1 root root 24610824 Jan 31 11:57 vmlinuz
-rw-r--r-- 1 root root  8678429 Nov 29 09:31 vmlinuz-5.13.0-1-librem5
-rw-r--r-- 1 root root  8762699 Dec 20 17:34 vmlinuz-5.15.0-1-librem5
-rw-r--r-- 1 root root  8814719 Jan 25 12:27 vmlinuz-5.16.0-1-librem5
-rw-r--r-- 1 root root 24424456 Jan 13 21:57 vmlinuz.bak

currently running kernel release

purism@pureos:~$ uname -r
5.16.0-1-librem5

I guess in order the remove all but the currently running Kernel release, I’d run this
$ sudo rm /boot/*-5.13.0-{14,15}-*

correct?

If so, I would later continue with the cleanup using
$ sudo dpkg --configure -a
$ sudo apt install -f
$ sudo apt autoremove
$ sudo apt upgrade

In hope someone went trough this before and can help me.

If you search the forum, you will see that they have.

1 Like

I have before but cant find a thread about L5.

1 Like

Fair enough, though I imagine the process is the same since it’s all pureos.

1 Like

if so, then you could easily tell me if my toughts in OP are the right way to continue.

I could if I used pureos. You’re gonna have to do the legwork on this one.

Or take a look at this proposal of mine and execute:

3 Likes

This is already explained:

Source of osk-sdl package, that includes few more details (yet missing current Librem 5 upgrade related and important explanation, as above provided), is here.

1 Like

I got the same thing just now about two years later. Funny, I thought upgrades took care of the old stuff.

Anyway solution above.

I came back here because when typing the subject line, the subject line bot said “Your topic is similar to”.