Score:0

How to clear room in /boot on Rsapberry Pi 4 running Ubuntu Server 20.04

ru flag

I have a Raspberry Pi 4 running Ubuntu Server 20.04 with:

root@pi4-4gb:/# du -sh /boot
246M    /boot
root@pi4-4gb:/# ll /boot/
total 126035
drwxr-xr-x  4 root root     4096 Aug 20 21:49 ./
drwxr-xr-x 20 root root     4096 Aug 20 21:43 ../
-rw-r--r--  1 root root   220324 Jul 10  2020 config-5.4.0-1015-raspi
-rw-r--r--  1 root root   219341 Jul 15 01:56 config-5.4.0-1041-raspi
-rw-r--r--  1 root root   219341 Jul 29 17:30 config-5.4.0-1042-raspi
lrwxrwxrwx  1 root root       43 Aug 20 21:49 dtb -> dtbs/5.4.0-1042-raspi/./bcm2711-rpi-4-b.dtb
lrwxrwxrwx  1 root root       43 Aug 20 21:11 dtb-5.4.0-1015-raspi -> dtbs/5.4.0-1015-raspi/./bcm2711-rpi-4-b.dtb
lrwxrwxrwx  1 root root       43 Aug 20 21:10 dtb-5.4.0-1041-raspi -> dtbs/5.4.0-1041-raspi/./bcm2711-rpi-4-b.dtb
lrwxrwxrwx  1 root root       43 Aug 20 21:49 dtb-5.4.0-1042-raspi -> dtbs/5.4.0-1042-raspi/./bcm2711-rpi-4-b.dtb
drwxr-xr-x 21 root root     4096 Aug 19 06:05 dtbs/
drwxr-xr-x  3 root root    10752 Jan  1  1970 firmware/
lrwxrwxrwx  1 root root       27 Aug 19 06:04 initrd.img -> initrd.img-5.4.0-1042-raspi
-rw-r--r--  1 root root 29950118 Aug 20 21:11 initrd.img-5.4.0-1015-raspi
-rw-r--r--  1 root root 30355964 Aug 20 21:10 initrd.img-5.4.0-1041-raspi
-rw-r--r--  1 root root 30359495 Aug 20 21:39 initrd.img-5.4.0-1042-raspi
lrwxrwxrwx  1 root root       27 Aug 19 06:04 initrd.img.old -> initrd.img-5.4.0-1041-raspi
-rw-------  1 root root  4160456 Jul 10  2020 System.map-5.4.0-1015-raspi
-rw-------  1 root root  4167408 Jul 15 01:56 System.map-5.4.0-1041-raspi
-rw-------  1 root root  4167480 Jul 29 17:30 System.map-5.4.0-1042-raspi
lrwxrwxrwx  1 root root       24 Aug 19 06:04 vmlinuz -> vmlinuz-5.4.0-1042-raspi
-rw-------  1 root root  8390521 Jul 10  2020 vmlinuz-5.4.0-1015-raspi
-rw-------  1 root root  8401730 Jul 15 01:56 vmlinuz-5.4.0-1041-raspi
-rw-------  1 root root  8400065 Jul 29 17:30 vmlinuz-5.4.0-1042-raspi
lrwxrwxrwx  1 root root       24 Aug 19 06:04 vmlinuz.old -> vmlinuz-5.4.0-1041-raspi
root@pi4-4gb:/# uname -r
5.4.0-1015-raspi

Every now and then when I run updates, I get errors. I think this is happening because by /boot directory runs out of space.

I'm not sure why I'm still on kernel 5.4.0-1015-raspi, have ask this in another question.

How can I clear space in by /boot directory?

user535733 avatar
cn flag
Under most circumstances, your Ubuntu system will clearly tell you if lack of space in /boot is the problem. To begin using a different (newer), simply reboot. If the reboot does not get you to a newer kernel, then reboot again and select the newer kernel at GRUB.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.