tech:notes_module_kernel_linux
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| tech:notes_module_kernel_linux [2026/01/20 16:34] – Jean-Baptiste | tech:notes_module_kernel_linux [2026/01/20 16:43] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes module kernel Linux | ||
| + | |||
| + | ## How do I list loaded Linux module parameter values? | ||
| + | |||
| + | Source : http:// | ||
| + | |||
| + | ~~~bash | ||
| + | cat / | ||
| + | echo " | ||
| + | if [ -d "/ | ||
| + | ls / | ||
| + | echo -n " | ||
| + | cat / | ||
| + | done; \ | ||
| + | fi; \ | ||
| + | echo; \ | ||
| + | done | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Systemd | ||
| + | |||
| + | ~~~bash | ||
| + | systemctl status systemd-modules-load.service | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Module Linux bootparam | ||
| + | |||
| + | Passer un argument à un module depuis le boot | ||
| + | |||
| + | ~~~bash | ||
| + | nouveau.disable=yes | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ## insmod - compatibility with the current running kernel - ignored " | ||
| + | |||
| + | ~~~bash | ||
| + | modprobe --force-vermagic | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Blacklister un module | ||
| + | |||
| + | ~~~bash | ||
| + | module_blacklist=modname1, | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | # | ||
| + | modprobe.blacklist=ahci | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | modprobe -r module_name | ||
| + | cat >/ | ||
| + | blacklist module_name | ||
| + | install module_name /bin/false | ||
| + | EOF | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## hwdetect - Unused modules | ||
| + | |||
| + | Source : https:// | ||
| + | |||
| + | ~~~bash | ||
| + | #!/bin/bash | ||
| + | modules=($(awk ' | ||
| + | |||
| + | for hw in $(hwdetect --show-modules | awk -F: ' | ||
| + | if ! grep -q " | ||
| + | printf ' | ||
| + | fi | ||
| + | done | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Pb | ||
| + | |||
| + | fsck erreur end_request: | ||
| + | |||
| + | ~~~ | ||
| + | end_request: | ||
| + | ~~~ | ||
| + | |||
| + | source : https:// | ||
| + | |||
| + | ~~~bash | ||
| + | sudo rmmod floppy | ||
| + | echo " | ||
| + | sudo dpkg-reconfigure initramfs-tools | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| + | ~~~bash | ||
| + | depmod -n | grep nouveau | egrep -v ' | ||
| + | ~~~ | ||
| + | |||
| + | In distributions where systemd is available, systemd-modules-load.service loads kernel modules from static lists in these files: | ||
| + | |||
| + | * / | ||
| + | * / | ||
| + | * / | ||
| + | |||
| + | |||
| + | |||
| + | Iptables | ||
| + | |||
| + | ~~~bash | ||
| + | sudo tee / | ||
| + | ip6_tables | ||
| + | ip6table_nat | ||
| + | ip_tables | ||
| + | iptable_nat | ||
| + | EOF | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | sudo systemctl restart systemd-modules-load.service | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | lsmod | grep " | ||
| + | ~~~ | ||
| + | |||
