LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Blacklist kernel module (stop autoloading) ? (http://www.linuxquestions.org/questions/debian-26/blacklist-kernel-module-stop-autoloading-829199/)

Vilius 08-29-2010 07:21 PM

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

bret381 08-29-2010 10:58 PM

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?

Vilius 08-30-2010 12:29 AM

Quote:

Originally Posted by bret381 (Post 4081886)
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

craigevil 08-30-2010 01:20 AM

/etc/modprobe.d/blacklist.conf should work on Lenny.

You can also add it in the grub menu.lst.

Vilius 08-30-2010 01:31 AM

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

V


All times are GMT -5. The time now is 11:32 PM.