DevHeads.net

no space left on /boot

Hi there,

after many years of dutiful service one of my remote boxes stops to accept updates.

It complains that there is no space on /boot

But I can not delete any of the old kernels as the following dialogs show

how can I clean up things?

robert

root@salome ~ # uname -r
4.4.0-22-generic

root@salome ~ # apt-get purge vmlinuz-4.4.0-81
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package vmlinuz-4.4.0-81
E: Couldn't find any package by glob 'vmlinuz-4.4.0-81'
E: Couldn't find any package by regex 'vmlinuz-4.4.0-81'

root@salome ~ # ls -l /boot/
total 488112
-rw-r--r-- 1 root root  1239612 Mai 13  2016 abi-4.4.0-22-generic
-rw-r--r-- 1 root root  1243479 Dez  2  2016 abi-4.4.0-53-generic
-rw-r--r-- 1 root root  1246311 Jun 14 14:24 abi-4.4.0-81-generic
-rw-r--r-- 1 root root  1246511 Jun 26 21:45 abi-4.4.0-83-generic
-rw-r--r-- 1 root root  1246670 Jul 18 17:00 abi-4.4.0-87-generic
-rw-r--r-- 1 root root  1246835 Aug  1 00:25 abi-4.4.0-89-generic
-rw-r--r-- 1 root root  1246835 Aug 10 13:02 abi-4.4.0-92-generic
-rw-r--r-- 1 root root  1247269 Aug 12 01:40 abi-4.4.0-93-generic
-rw-r--r-- 1 root root  1249161 Sep 12 19:59 abi-4.4.0-96-generic
-rw-r--r-- 1 root root  1249112 Sep 19 22:29 abi-4.4.0-97-generic
-rw-r--r-- 1 root root  1249237 Okt 10 18:19 abi-4.4.0-98-generic
-rw-r--r-- 1 root root   189520 Mai 13  2016 config-4.4.0-22-generic
-rw-r--r-- 1 root root   189877 Dez  2  2016 config-4.4.0-53-generic
-rw-r--r-- 1 root root   190356 Jun 14 14:24 config-4.4.0-81-generic
-rw-r--r-- 1 root root   190356 Jun 26 21:45 config-4.4.0-83-generic
-rw-r--r-- 1 root root   190356 Jul 18 17:00 config-4.4.0-87-generic
-rw-r--r-- 1 root root   190356 Aug  1 00:25 config-4.4.0-89-generic
-rw-r--r-- 1 root root   190356 Aug 10 13:02 config-4.4.0-92-generic
-rw-r--r-- 1 root root   190356 Aug 12 01:40 config-4.4.0-93-generic
-rw-r--r-- 1 root root   190517 Sep 12 19:59 config-4.4.0-96-generic
-rw-r--r-- 1 root root   190517 Sep 19 22:29 config-4.4.0-97-generic
-rw-r--r-- 1 root root   190517 Okt 10 18:19 config-4.4.0-98-generic
drwxr-xr-x 5 root root     1024 Nov 10 16:06 grub
-rw-r--r-- 1 root root 34995222 Sep  9 08:34 initrd.img-4.4.0-22-generic
-rw-r--r-- 1 root root 35525260 Sep  9 08:34 initrd.img-4.4.0-53-generic
-rw-r--r-- 1 root root  6479404 Sep  9 08:33 initrd.img-4.4.0-57-generic
-rw-r--r-- 1 root root 35522720 Sep  9 08:33 initrd.img-4.4.0-81-generic
-rw-r--r-- 1 root root 35524611 Sep  9 08:33 initrd.img-4.4.0-83-generic
-rw-r--r-- 1 root root 35522615 Sep  9 08:33 initrd.img-4.4.0-87-generic
-rw-r--r-- 1 root root 35529088 Sep  9 08:33 initrd.img-4.4.0-89-generic
-rw-r--r-- 1 root root 35530657 Sep  9 08:32 initrd.img-4.4.0-92-generic
-rw-r--r-- 1 root root 35535027 Sep  9 08:34 initrd.img-4.4.0-93-generic
-rw-r--r-- 1 root root 35530409 Sep 21 07:57 initrd.img-4.4.0-96-generic
-rw-r--r-- 1 root root 35611821 Okt 25 07:19 initrd.img-4.4.0-97-generic
drwx------ 2 root root    12288 Jul  7  2016 lost+found
-rw------- 1 root root  3855781 Mai 13  2016 System.map-4.4.0-22-generic
-rw------- 1 root root  3874377 Dez  2  2016 System.map-4.4.0-53-generic
-rw------- 1 root root  3883391 Jun 14 14:24 System.map-4.4.0-81-generic
-rw------- 1 root root  3883887 Jun 26 21:45 System.map-4.4.0-83-generic
-rw------- 1 root root  3884173 Jul 18 17:00 System.map-4.4.0-87-generic
-rw------- 1 root root  3884798 Aug  1 00:25 System.map-4.4.0-89-generic
-rw------- 1 root root  3884798 Aug 10 13:02 System.map-4.4.0-92-generic
-rw------- 1 root root  3885811 Aug 12 01:40 System.map-4.4.0-93-generic
-rw------- 1 root root  3886723 Sep 12 19:59 System.map-4.4.0-96-generic
-rw------- 1 root root  3886693 Sep 19 22:29 System.map-4.4.0-97-generic
-rw------- 1 root root  3887471 Okt 10 18:19 System.map-4.4.0-98-generic
-rw------- 1 root root  7015440 Mai 13  2016 vmlinuz-4.4.0-22-generic
-rw------- 1 root root  7065648 Dez  2  2016 vmlinuz-4.4.0-53-generic
-rw------- 1 root root  7092784 Jun 14 14:24 vmlinuz-4.4.0-81-generic
-rw------- 1 root root  7092720 Jun 26 21:45 vmlinuz-4.4.0-83-generic
-rw------- 1 root root  7095888 Jul 18 17:00 vmlinuz-4.4.0-87-generic
-rw------- 1 root root  7098096 Aug  1 00:25 vmlinuz-4.4.0-89-generic
-rw------- 1 root root  7098032 Aug 10 13:02 vmlinuz-4.4.0-92-generic
-rw------- 1 root root  7097296 Aug 12 01:40 vmlinuz-4.4.0-93-generic
-rw------- 1 root root  7101968 Sep 12 19:59 vmlinuz-4.4.0-96-generic
-rw------- 1 root root  7102864 Sep 19 22:29 vmlinuz-4.4.0-97-generic
-rw------- 1 root root  7103856 Okt 10 18:19 vmlinuz-4.4.0-98-generic

Comments

Re: no space left on /boot

By Liam Proven at 12/06/2017 - 04:06

On 6 December 2017 at 09:10, robert < ... at redcor dot ch> wrote:
Can you try

apt clean
apt purge

That might make some room? Ah, but mainly on / and /var not on /boot...

Then try

apt remove linux-image-4.4.0-22*

Re: no space left on /boot

By silver.bullet at 12/06/2017 - 03:33

On Wed, 6 Dec 2017 09:10:27 +0100, robert wrote:
The package names are linux-image-x.y.p-q-generic .