What is the analogy used to describe Kernel Modules?
Kernel modules are analogous to car components, enhancing functionality as needed.
What command is used to manually insert a kernel module without handling dependencies?
insmod
What is the main disadvantage of using the insmod command?
It does not handle module dependencies.
In the insmod example, what does $(uname -r) do?
It ensures compatibility by using the version of the currently running kernel.
What command is a higher-level tool that automatically manages module dependencies?
modprobe
Which command requires the full path to the module file (e.g., .ko)?
insmod
Which command only requires the module name?
modprobe
What modprobe flag is used to load multiple modules at once?
-a
What modprobe flag safely removes a module and its dependencies?
-r
What modprobe flag is used to force-load a module, bypassing version checks?
-f
What modprobe flag performs a dry run to show what would happen without actually loading or removing?
-n
What modprobe flag enables verbose output for detailed information?
-v
What is the command to remove a kernel module?
rmmod
What is the main caution when using the rmmod command?
It does not check for dependencies; removal may fail if the module is in use.
In the troubleshooting example, what does modprobe -r wifi_driver && modprobe -v wifi_driver do?
It removes the wifi_driver module and then reloads it with verbose output, which is useful for error monitoring.
If rmmod usb_storage fails, what are two potential reasons?