Linux – How to prevent useless kernel-modules from loading

kernel-moduleslinuxlinux-kernel

Our Ubuntu-servers all seem to have various unused kernel-modules loaded wasting RAM and, in the case of jfs for example, running a bunch of useless processes (jfsCommit).

I can use rmmod to get rid of them at runtime, but I wonder, what causes them to load in the first place.

Ideally, I'd be able to remove the module-binaries too.

Best Answer

If the modules in question are built into the kernel, the only way is recompiling the kernel.

If they are separate modules, you can blacklist them.

Add

blacklist module_name

to the file

/etc/modprobe.d/blacklist.conf

(needs restart)

Related Topic