LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-09-2006, 11:30 AM   #1
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
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?
 
Old 11-10-2006, 04:58 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
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.
 
Old 11-10-2006, 05:01 AM   #3
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Original Poster
Rep: Reputation: 47
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.
 
Old 11-10-2006, 02:10 PM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
?Odd bug. modprobe.blacklist~ behaves as modprobe.blacklist arubin Slackware 1 11-05-2006 07:08 PM
Line 7 in /etc/fstab is bad!!! Please Help da_xlnc Linux - General 9 07-20-2006 06:03 AM
Bad DN starting slapd mago Linux - Networking 1 11-13-2005 02:19 PM
Ignoring bad checksums (!) antares Linux - Software 2 08-21-2004 05:33 AM
ignoring the "non-portable whitespace encountered at line " warning Jake13 Linux - Software 3 08-18-2004 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration