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


Groups > linux.debian.user > #236809

Re: removing modules

From IL Ka <kazakevichilya@gmail.com>
Newsgroups linux.debian.user
Subject Re: removing modules
Date 2021-07-03 19:10 +0200
Message-ID <CwRjs-74O-7@gated-at.bofh.it> (permalink)
References <CwQnn-6tT-3@gated-at.bofh.it> <CwQnn-6tT-1@gated-at.bofh.it> <CwQGJ-6Bk-3@gated-at.bofh.it> <CwRjs-74O-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

>
>
> There is for example "dell_smm_hwmon" followed "0" which you'd think was
> to be used by software for monitoring the PC hardware.
>

You have this device (SMM BIOS), so ``udev`` loaded this module.

It creates `` /sys/class/hwmon/hwmon..`` for hardware monitoring.
Remove this module, and this file will disappear.

Do you need this file? We do not know, it is up to you to decide if you
want to monitor the fan and temperature of your laptop or not
https://www.kernel.org/doc/html/latest/hwmon/dell-smm-hwmon.html


I was thinking then to remove the unwanted modules to make the kernels
> smaller.
>
I don't think it will make a real difference unless you have 16MB of RAM




> There is for example a few filesystem modules like msdos which would be
> needed if I wanted to mount an msdos filesystem.
>
Yes.

Almost any code that runs in kernel module may be installed as module:
there are netfilter modules, hardware drivers, bpf filter etc


> Seem to remember "insmod" a module if and when needed.
>
Use ``modprobe``: it loads module dependencies


>
> If remove modules from kernel are the gone or are they still on disk and
> could be put back ?
>
They are in
/lib/modules/$(uname -r)

"remove" module means unload it from the memory, not remove it from the disk



>

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