Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 37120  / 3 Years ago, wed, november 3, 2021, 2:30:58

I would like to temporarily (until next boot) disable a kernel module.



How can I do this?


More From » kernel

 Answers
6

Use lsmod to find the name of a kernel module about that you are interested in temporarily disabling. After you've found the name, use this command to disable the module:



sudo modprobe -r <module_name>


However, this command will fail with an error message something like FATAL: Module <module_name> is in use if a process is using:




  • the <module_name>

  • a module about that <module_name> directly depends on

  • any module about that <module_name> - through the dependency tree - depends on indirectly.



You can use lsmod | grep <module_name> to obtain the names of the modules which are preventing you from temporarily disabling a certain module (these module names are listed in the last column).



More about:




[#30422] Thursday, November 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fulpu

Total Points: 116
Total Questions: 118
Total Answers: 104

Location: Solomon Islands
Member since Fri, Oct 8, 2021
3 Years ago
fulpu questions
Fri, Apr 1, 22, 08:36, 2 Years ago
Wed, Mar 16, 22, 15:25, 2 Years ago
Wed, Aug 24, 22, 22:59, 2 Years ago
Tue, Dec 20, 22, 22:33, 1 Year ago
;