SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-09-09 22:03:04

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

[Solved]How to actually disable modules from loading at boot

Hey guys!  I just have a quick question...
I have a few modules installed ("needed" for other programs) which I'd like to prevent from loading at boot.  These include the various lirc modules and the ppdev modules.  How would I go about doing this?  I tried creating a new file called user-blacklist.conf in /etc/modprobe.d but it had absolutely no effect.

Thanks in advance!

- Chaanakya

Last edited by chaanakya (2011-09-11 16:48:41)


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

Help fund CrunchBang, donate to the project!

#2 2011-09-09 22:51:21

GuruX
#! Die Hard
Registered: 2009-01-18
Posts: 527

Re: [Solved]How to actually disable modules from loading at boot

Try editing /etc/modprobe.d/blacklist.conf instead. You should have it already. Syntax is

blacklist modulename

Offline

#3 2011-09-11 15:48:26

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: [Solved]How to actually disable modules from loading at boot

Unfortunately, I tried that first before starting a whole new conf file and that didn't work either tongue


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

#4 2011-09-11 16:28:54

GuruX
#! Die Hard
Registered: 2009-01-18
Posts: 527

Re: [Solved]How to actually disable modules from loading at boot

The blacklist.conf should work. Perhaps something wrong with syntax or permissions or module names?

Offline

#5 2011-09-11 16:36:40

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: [Solved]How to actually disable modules from loading at boot

See http://wiki.debian.org/KernelModuleBlac … 8module%29

Last edited by xaos52 (2011-09-11 16:37:27)

Offline

#6 2011-09-11 16:44:18

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: [Solved]How to actually disable modules from loading at boot

While using /etc/modprobe.d/blacklist.conf is the preferred way of doing things, any file in that directory should work in theory, as long as you use the syntax

blacklist modulename

for example to blacklist my broadcom networking card I use

blacklist b43

Offline

#7 2011-09-11 16:48:26

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: [Solved]How to actually disable modules from loading at boot

Never mind...I figured out what the problem was.  Some modules were still being loaded because they were needed by other modules which are not blacklisted.  Marking thread solved.  For posterity: Don't use blacklist.conf - it is not the preferred way of doing things (see xaos52's link).  Use another file (like user-blacklist.conf) - it can be named anything as long as it ends with .conf.  Also, make sure you blacklist everything which depends on that module - otherwise that module will be loaded! tongue


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo