Re: removing modules
On Sat, Jul 03, 2021 at 06:49:35PM +0100, mick crane wrote:
> root@pumpkin:/boot# df -h /boot
> Filesystem Size Used Avail Use% Mounted on
> /dev/sdb1 236M 159M 65M 71% /boot
This is the real issue. This file system is simply too small if you
plan to keep more than 2 kernels at a time.
> root@pumpkin:/boot# ls -la
> total 148944
> drwxr-xr-x 4 root root 1024 Jul 3 16:53 .
> drwxr-xr-x 20 root root 4096 Jul 3 16:45 ..
> -rw-r--r-- 1 root root 236065 Apr 9 19:17 config-5.10.0-6-amd64
> -rw-r--r-- 1 root root 236188 May 28 09:31 config-5.10.0-7-amd64
> drwxr-xr-x 5 root root 1024 Jul 3 16:45 grub
> -rw-r--r-- 1 root root 68868137 Jul 1 16:17 initrd.img-5.10.0-6-amd64
> -rw-r--r-- 1 root root 68909875 Jul 3 16:53 initrd.img-5.10.0-7-amd64
> drwx------ 2 root root 12288 Nov 21 2020 lost+found
> -rw-r--r-- 1 root root 83 Apr 9 19:17 System.map-5.10.0-6-amd64
> -rw-r--r-- 1 root root 83 May 28 09:31 System.map-5.10.0-7-amd64
> -rw-r--r-- 1 root root 6824192 Apr 9 19:17 vmlinuz-5.10.0-6-amd64
> -rw-r--r-- 1 root root 6818304 May 28 09:31 vmlinuz-5.10.0-7-amd64
As long as you stick to two kernels, you should be OK for a while, at
least until kernel packages increase dramatically in size, as they tend
to do over time.
One thing I'll note is that your initrd* files are twice as big as mine.
-rw-r--r-- 1 root root 30924690 Jan 29 17:34 initrd.img-4.19.0-13-amd64
-rw-r--r-- 1 root root 33151811 May 13 07:19 initrd.img-5.10.0-6-amd64
-rw-r--r-- 1 root root 33165977 Jun 28 07:08 initrd.img-5.10.0-7-amd64
Maybe someone who understands this part of Debian can help you figure
out why your initrd* files are so big, and what you should do about
it. (Is it an nvidia thing, I wonder? I have motherboard Intel graphics.)
Apart from that, if you're not able to increase the size of your /boot
file system (tricky at best), my suggestion would be to remove your
oldest kernel by hand any time you're about to install a new kernel
(one with a new ABI number, like -8-amd64 -9-amd64 and so on). Freeing
up that space in advance should prevent problems.
Reply to: