I have compiled a kernel with some modules, for example the ath9k for my wireless card. I don't have anything in the autoload configuration (i.e my file /etc/modules.autoload.d/kernel-2.6 is empty). However, lsmod still shows that the module has been loaded. I also notice that when I compile filesystem support as modules (reiserfs, jfs, xfs etc.) they also get autoloaded.

Who is doing this? Can and should I disable it? I am using Gentoo.



Udev loads modules automatically depending on what kind of hardware it finds. You can "blacklist" modules in order to stop them being autoloaded as described in the Gentoo udev guide.

  • so, why did the reiserfs, jfs and xfs get loaded too? I don't have any of those? – phunehehe Sep 30 '10 at 11:16
  • I suppose udev loads those as well to be able to mount (external) harddrives. I'm not on a Gentoo box right now, but you could just try adding the filesystem drivers to the blacklist for modules and see if they stay unloaded. – tante Sep 30 '10 at 11:42
  • 2
    They could also have been loaded by initrd's linuxrc script. – Riccardo Murri Sep 30 '10 at 12:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.