Notes module kernel Linux

How do I list loaded Linux module parameter values?

Source : http://serverfault.com/questions/62316/how-do-i-list-loaded-linux-module-parameter-values

cat /proc/modules | cut -f 1 -d " " | while read module; do \ echo "Module: $module"; \ if [ -d "/sys/module/$module/parameters" ]; then \ ls /sys/module/$module/parameters/ | while read parameter; do \ echo -n "Parameter: $parameter --> "; \ cat /sys/module/$module/parameters/$parameter; \ done; \ fi; \ echo; \ done

Systemd

systemctl status systemd-modules-load.service

Module Linux bootparam

Passer un argument à un module depuis le boot

nouveau.disable=yes

insmod - compatibility with the current running kernel - ignored "vermagic" check

modprobe --force-vermagic

Blacklister un module

module_blacklist=modname1,modname2,modname3
#module_to_blacklist.blacklist=yes modprobe.blacklist=ahci
modprobe -r module_name cat >/etc/modprobe.d/local-blacklist.conf <<EOF blacklist module_name install module_name /bin/false EOF

hwdetect - Unused modules

Source : https://wiki.archlinux.org/title/hwdetect

#!/bin/bash modules=($(awk '{print $1}' /proc/modules)) for hw in $(hwdetect --show-modules | awk -F: '{gsub("-","_"); print $2}'); do if ! grep -q "$hw" <(printf '%s\n' "${modules[@]}"); then printf '%s\n' "$hw"; fi done

Pb

fsck erreur end_request: I/O error, dev fd0, sector 0

end_request: I/O error, dev fd0, sector 0

source : https://askubuntu.com/questions/719058/blk-update-request-i-o-error-dev-fd0-sector-0

sudo rmmod floppy echo "blacklist floppy" |sudo tee /etc/modprobe.d/blacklist-floppy.conf sudo dpkg-reconfigure initramfs-tools

Autres

depmod -n | grep nouveau | egrep -v '^alias'

In distributions where systemd is available, systemd-modules-load.service loads kernel modules from static lists in these files:

/etc/modules-load.d/*.conf

/run/modules-load.d/*.conf

/usr/lib/modules-load.d/*.conf

Iptables

sudo tee /etc/modules-load.d/iptables.conf > /dev/null <<'EOF' ip6_tables ip6table_nat ip_tables iptable_nat EOF
sudo systemctl restart systemd-modules-load.service
lsmod | grep "ip.*table"