table of contents
MODPROBE(8) | modprobe | MODPROBE(8) |
NAME¶
modprobe - Add and remove modules from the Linux Kernel
SYNOPSIS¶
modprobe [-v] [-V]
[-C config-file] [-n] [-i] [-q]
[-b] [modulename]
[module parameters...]
modprobe [-r] [-v] [-n] [-i] [modulename...]
modprobe [-c]
modprobe [--dump-modversions] [filename]
DESCRIPTION¶
modprobe intelligently adds or removes a module from the Linux kernel: note that for convenience, there is no difference between _ and - in module names (automatic underscore conversion is performed). modprobe looks in the module directory /usr/lib/`uname -r` for all the modules and other files, except for the optional configuration files (see modprobe.d(5)). modprobe will also use module options specified on the kernel command line in the form of <module>.<option> and blacklists in the form of modprobe.blacklist=<module>.
Note that unlike in 2.4 series Linux kernels (which are not supported by this tool) this version of modprobe does not do anything to the module itself: the work of resolving symbols and understanding parameters is done inside the kernel. So module failure is sometimes accompanied by a kernel message: see dmesg(8).
modprobe expects an up-to-date modules.dep.bin file as generated by the corresponding depmod utility shipped along with modprobe (see depmod(8)). This file lists what other modules each module needs (if any), and modprobe uses this to add or remove these dependencies automatically.
If any arguments are given after the modulename, they are passed to the kernel (in addition to any options listed in the configuration file).
When loading modules, modulename can also be a path to the module. If the path is relative, it must explicitly start with "./". Note that this may fail when using a path to a module with dependencies not matching the installed depmod database.
OPTIONS¶
-a --all
-b --use-blacklist
-C directory --config directory
This option is passed through install or remove commands to other modprobe commands in the MODPROBE_OPTIONS environment variable.
-c --showconfig
--dump-modversions
-d --dirname
--first-time
--force-vermagic
This applies to any modules inserted: both the module (or alias) on the command line and any modules on which it depends.
--force-modversion
This applies to any modules inserted: both the module (or alias) on the command line and any modules on which it depends.
-f --force
This applies to any modules inserted: both the module (or alias) on the command line and any modules on which it depends.
-i --ignore-install --ignore-remove
-n --dry-run --show
-q --quiet
-R --resolve-alias
-r --remove
There is usually no reason to remove modules, but some buggy modules require it. Your distribution kernel may not have been built to support removal of modules at all.
-w TIMEOUT_MSEC --wait TIMEOUT_MSEC
-S version --set-version version
--show-depends
-s --syslog
This option is passed through install or remove commands to other modprobe commands in the MODPROBE_OPTIONS environment variable.
-V --version
-v --verbose
This option is passed through install or remove commands to other modprobe commands in the MODPROBE_OPTIONS environment variable.
ENVIRONMENT¶
The MODPROBE_OPTIONS environment variable can also be used to pass command line arguments to modprobe. The format is intentionally left undocumented, since the use by third-party tools and scripts is discouraged.
The environment variable originates with the implementation of the install rules.
COPYRIGHT¶
This manual page originally Copyright 2002, Rusty Russell, IBM Corporation.
SEE ALSO¶
modprobe.d(5), insmod(8), rmmod(8), lsmod(8), modinfo(8), depmod(8)
AUTHORS¶
Numerous contributions have come from the linux-modules mailing list <linux-modules@vger.kernel.org> and Github. If you have a clone of kmod.git itself, the output of git-shortlog(1) and git-blame(1) can show you the authors for specific parts of the project.
Lucas De Marchi <lucas.de.marchi@gmail.com> is the current maintainer of the project.
2024-08-13 | kmod |