Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using Angstrom distribution on my Overo board, and I have a little problem. Sometimes kernel modules that are used to handle my camera are loaded at boot time, sometimes not.

I am wondering, is there some file where there are modules listed that should be loaded at boot time? Or is there some other way that the system knows what modules to load?

Anyway, I wanted to make Linux don't load those modules automatically so I always know that I need to load them up manually.

Also I wanted to disable automatic loading of a module that is used for wireless because it takes few seconds for this module to set up and most of the time I am not using wireless net on my board.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

I think you are searching the "blacklist" function. From ArchWiki:

Blacklisting, in the context of kernel modules, is a mechanism to prevent the kernel module from loading. This could be useful if, for example, the associated hardware is not needed, or if loading that module causes problems: for instance there may be two kernel modules that try to control the same piece of hardware, and loading them together would result in a conflict.

[...]

Create a .conf file inside /etc/modprobe.d/ and append a line for each module you want to blacklist, using the blacklist keyword. If for example you want to prevent the pcspkr module from loading:

> /etc/modprobe.d/nobeep.conf
> 
> # Do not load the pcspkr module on boot 
> blacklist pcspkr
share|improve this answer
    
Thanks, I will try this today and tell you how it went. –  Andna Sep 25 '12 at 8:14
    
I searched the net, it seems that Angstrom has a different way of handling those things. In etc I have modules,modules.conf files and modutils directory. –  Andna Sep 25 '12 at 16:31
    
Ok, i googled the manpage of modules.conf. please try "alias <MODULE-NAME> off" in /etc/modules.conf –  rmweiss Sep 25 '12 at 17:24
    
It seems it worked, thanks. –  Andna Sep 25 '12 at 17:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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