You are not logged in.

#1 2009-01-07 04:22:08

beast123
Member
Registered: 2008-09-11
Posts: 20

blacklisting modules

Hello,

I am playing around with the kernel in a vm. Currently, it hangs for about 10-15 seconds on Loading Udev during boot. I want to prevent udev from loading any sound modules (of which it loads 9) since I don't need sound on the vm. My modules array is

MODULES=(mii pcnet32 vboxadd !pcspkr !snd !soundcore)

but it loads all three of those. Here is what hwdetect --show-modules shows under sound after a couple reboots:

SOUND: pcspkr snd-mixer-oss snd-pcm-oss snd-page-alloc snd-pcm snd-timer snd snd-pcsp soundcore

Offline

#2 2009-01-07 04:40:43

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: blacklisting modules

try lsmod instead. IIRC hwdetect shows the modules you might need, not the ones that are loaded.

Offline

#3 2009-01-07 05:18:44

beast123
Member
Registered: 2008-09-11
Posts: 20

Re: blacklisting modules

yes you are right. lsmod shows the modules are no longer loaded.

ANother question, though. I am looking through lsmod and wondering what some of these modules do. I've tried googling some of them but there usually isn't a clear answer. how do you know what a module does?

Offline

#4 2009-01-07 07:44:59

initbox
Member
Registered: 2008-09-27
Posts: 172

Re: blacklisting modules

beast123 wrote:

yes you are right. lsmod shows the modules are no longer loaded.

ANother question, though. I am looking through lsmod and wondering what some of these modules do. I've tried googling some of them but there usually isn't a clear answer. how do you know what a module does?

modinfo.

Offline

#5 2009-01-07 13:39:27

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: blacklisting modules

You might also want to add !snd_pcsp to your MODULES array.  This will also cause the pc speaker to be active if you don't.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

Board footer

Powered by FluxBB