LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   ignoring bad line starting with 'blacklist' (https://www.linuxquestions.org/questions/debian-26/ignoring-bad-line-starting-with-blacklist-500092/)

uselpa 11-09-2006 11:30 AM

ignoring bad line starting with 'blacklist'
 
Debian 3.1 w/kernel 2.6.8-3-k7.
I am trying to prevent the module 'pcspkr' from loading. I created a file /etc/modprobe.d/blacklist and added the line
Code:

blacklist pcspkr
Now, on every modprobe, I get the message
Code:

WARNING: /etc/modprobe.d/blacklist line 1: ignoring bad line starting with 'blacklist'
How can I prevent a module from loading?

raskin 11-10-2006 04:58 AM

Do you need only this? Find modules in /etc/ (I have it in /etc/sysconfig/modules), find module there and prepend '#' before it:

Code:

# pcspkr
It will stop it from loading, if it isn't used by anything. To find out it, run /sbin/lsmod. It will print, what other modules should be commented. If you change module set rarely, it is suitable.

uselpa 11-10-2006 05:01 AM

But that doesn't prevent it from loading when needed. I really want to blacklist it so it doesn't get automatically loaded after the startup.

raskin 11-10-2006 02:10 PM

Sorry.. pcspkr is PC Screamer? Rename module file. I would delete. Also it is an idea to remove all times it's mentioned in /lib/modules/2.6.8-3-k7/modules.dep

Or just add
Code:

alias pcspkr off
in /lib/modules/2.6.8-3-k7/modules.alias


All times are GMT -5. The time now is 02:13 AM.