Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236815

Re: removing modules

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: removing modules
Date 2021-07-03 20:10 +0200
Message-ID <CwSfw-7Gv-3@gated-at.bofh.it> (permalink)
References (1 earlier) <CwQnn-6tT-1@gated-at.bofh.it> <CwQGJ-6Bk-3@gated-at.bofh.it> <CwRjs-74O-3@gated-at.bofh.it> <CwRt7-78x-5@gated-at.bofh.it> <CwSfw-7Gv-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

removing modules mick crane <mick.crane@gmail.com> - 2021-07-03 18:10 +0200
  Re: removing modules Reco <recoverym4n@enotuniq.net> - 2021-07-03 18:20 +0200
  Re: removing modules The Wanderer <wanderer@fastmail.fm> - 2021-07-03 18:30 +0200
    Re: removing modules The Wanderer <wanderer@fastmail.fm> - 2021-07-03 19:10 +0200
      Re: removing modules The Wanderer <wanderer@fastmail.fm> - 2021-07-03 19:40 +0200
      Re: removing modules The Wanderer <wanderer@fastmail.fm> - 2021-07-03 19:40 +0200
    Re: removing modules IL Ka <kazakevichilya@gmail.com> - 2021-07-03 19:10 +0200
      Re: removing modules Hans <hans.ullrich@loop.de> - 2021-07-03 20:10 +0200
        Re: removing modules Sven Hartge <sven@svenhartge.de> - 2021-07-03 20:50 +0200
    Re: removing modules Reco <recoverym4n@enotuniq.net> - 2021-07-03 19:10 +0200
    Re: removing modules Greg Wooledge <greg@wooledge.org> - 2021-07-03 19:20 +0200
      Re: removing modules Greg Wooledge <greg@wooledge.org> - 2021-07-03 20:10 +0200
        Re: removing modules Stefan Monnier <monnier@iro.umontreal.ca> - 2021-07-03 20:30 +0200
          Re: removing modules Stefan Monnier <monnier@iro.umontreal.ca> - 2021-07-03 22:40 +0200
          Re: removing modules David Wright <deblis@lionunicorn.co.uk> - 2021-07-04 17:30 +0200
      Re: removing modules Brian <ad44@cityscape.co.uk> - 2021-07-03 21:10 +0200
        Re: removing modules Tom Dial <tddial@comcast.net> - 2021-07-04 05:10 +0200
          Re: removing modules Brian <ad44@cityscape.co.uk> - 2021-07-04 11:10 +0200
            Re: removing modules Tixy <tixy@yxit.co.uk> - 2021-07-04 14:50 +0200
              Re: removing modules Brian <ad44@cityscape.co.uk> - 2021-07-04 20:50 +0200
                Re: removing modules Brad Rogers <brad@fineby.me.uk> - 2021-07-04 21:20 +0200
                Re: removing modules Brian <ad44@cityscape.co.uk> - 2021-07-04 22:20 +0200
                Re: removing modules David Wright <deblis@lionunicorn.co.uk> - 2021-07-05 07:00 +0200
                Re: removing modules Brian <ad44@cityscape.co.uk> - 2021-07-05 12:10 +0200
    Re: removing modules David Wright <deblis@lionunicorn.co.uk> - 2021-07-03 19:40 +0200
  Re: removing modules IL Ka <kazakevichilya@gmail.com> - 2021-07-03 18:30 +0200

csiph-web