Temporarily removing Kernel modules.

For whatever reason you may want to temporarily remove a kernel module. This can be done super easily with the following set of commands & doesn’t take very long..

  1. Start by opening up a new terminal window & running lsmod to list all the modules that are currently loaded….

  2. Next run modinfo modulenamehere to view the details of a module….

    Replace “modulenamehere” with the actual name of the module..

  3. Finally run rmmod modulenamehere to remove the module….

    Note that you’ll only see output in the terminal if something goes wrong..

If you don’t see any output from that last command, then everything has worked correctly & you have just successfully removed a kernel module temporarily.

To insert the module back into the kernel you can either run insmod modulenamehere or reboot your system.

Related posts

Alternative Linux kernels.

There are several alternative Linux kernels available for different purposes and use cases. Here’s a list of some popular alternative…

Linux zen kernel....

The Linux zen kernel is a kernel replacement built using the best configuration and kernel sources for use on everyday…