LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-29-2010, 06:21 PM   #1
Vilius
Member
 
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Rep: Reputation: 16
Blacklist kernel module (stop autoloading) ?


Hello,

Running Debian lenny.
I want Debian to stop from loading certain kernel module at startup. For now I tried adding "blacklist my_module" line in /etc/modprobe.d/blacklist file with no luck. Also I tried to add line above into some new file in /etc/modprobe.d directory - not working.

How do I blacklist kernel module in Debian lenny ?

thanks
Vilius

Last edited by Vilius; 08-29-2010 at 06:23 PM.
 
Old 08-29-2010, 09:58 PM   #2
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
It's been a while since I've used Debian, but adding the line "blacklist device-driver" in /etc/modprobe.d/blacklist should do the trick. What is it your trying to prevent from loading? Are you sure it's a kernel module? does it show in lsmod?
 
Old 08-29-2010, 11:29 PM   #3
Vilius
Member
 
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by bret381 View Post
It's been a while since I've used Debian, but adding the line "blacklist device-driver" in /etc/modprobe.d/blacklist should do the trick. What is it your trying to prevent from loading? Are you sure it's a kernel module? does it show in lsmod?
Yes I'm sure.
It shows in lsmod.
This is upper coment of Debian /etc/modprobe.d/blacklist:
Quote:
# This file lists modules which will not be loaded as the result of
# alias expansion, with the purpose of preventing the hotplug subsystem
# to load them. It does not affect autoloading of modules by the kernel.
# This file is provided by the udev package.
So looks like it does not affect autoloading of kernel modules ?
(I checked another system and /etc/modprobe.d/blacklist works in redhat)

V
 
Old 08-30-2010, 12:20 AM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
/etc/modprobe.d/blacklist.conf should work on Lenny.

You can also add it in the grub menu.lst.
 
Old 08-30-2010, 12:31 AM   #5
Vilius
Member
 
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Original Poster
Rep: Reputation: 16
Ok I found this:
http://blogs.koolwal.net/2009/10/11/...ing-in-debian/
And it works.

V
 
  


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
[SOLVED] Kernel module autoloading for configuration crosstalk Linux - Kernel 2 07-15-2010 10:00 AM
how to blacklist a usb-storage module jvmagic Linux - Desktop 1 05-08-2008 02:20 PM
stop audio cds autoloading jasongunnisthedevil Linux - Software 3 01-26-2006 06:06 AM
Autoloading module at boot artificialGekko Slackware 3 03-26-2005 05:05 AM
Autoloading a kernel module ernesto_cgf Linux - Software 2 09-01-2004 07:52 PM

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

All times are GMT -5. The time now is 03:00 PM.

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