how to enable/disable automatically insert modules?

Aart Koelewijn aart at
Sat Feb 20 14:41:03 UTC 2010

On Sat, 20 Feb 2010 14:22:43 +0800, vichy wrote:

> Dear all:
> I want to trace kernel driver in Ubuntu, one by one module. but the
> system will automatically insert B module if I insert A module. I guess
> there is a file which record the module dependence that make this
> happen.
> how could I turn it off/on by hand?
> Yours,
> vichy

the programm depmod calculates the dependencies of the modules. One of 
the files it writes is /lib/modules/[kernelversion]/modules.dep

I don't know a way you could turn the automatic loading of modules off, 
but in the map /etc/modprobe.d there are some files which give you some 
control over the modules that will or will not be loaded.

If you could turn the loading of modules completely off, I doubt your box 
would be able to boot, off course depending on the modules you have 
already baked straight into your kernel.


More information about the ubuntu-users mailing list