LinuxQuestions.org
Help answer threads with 0 replies.
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 01-04-2005, 07:23 AM   #1
kpg
LQ Newbie
 
Registered: Feb 2004
Location: Pune, India
Distribution: Slackware 9.1
Posts: 15

Rep: Reputation: 0
Stopping modules from loading at boot time


Hi!

What do I do if I want to block certain modules, viz. i810_rng, hw_random and pci_ehp from loading at boot time? I'm using Debian Sarge with the default 2.4.27 kernel. Also, if I install debian with the linux26 option, the kernel gives an error with mount after the base installation is over and the machine reboots.

Kaustubh
 
Old 01-04-2005, 07:53 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,

i will answer the first question.
in *slackware*, the file is called
Code:
/etc/rc.d/rc.modules
i suppose there must be something similiar in Debian.
if not, try a grep to 'modprobe'. that is the command the load the modules.

regards

slackie1000
 
Old 01-04-2005, 09:52 AM   #3
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
are you using hotplug?
 
Old 01-06-2005, 07:03 AM   #4
kpg
LQ Newbie
 
Registered: Feb 2004
Location: Pune, India
Distribution: Slackware 9.1
Posts: 15

Original Poster
Rep: Reputation: 0
I know how to do it in slack. The problem is that slack uses bsd-style init scripts, while debian is sysv, which is a lot more complicated.

Yes, I'm using hotplug.

Kaustubh
 
Old 01-06-2005, 07:35 AM   #5
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
Ok you can either blacklist in hotplug those modules (there is a file for that somewhere) or like I did, get rid of hotplug and enter yourself the modules you want in /etc/modules. Mine has those modules:

psmouse
8139too
nvidia
snd-pcm-oss
snd-via82xx
ohci-hcd
ehci-hcd
uhci-hcd

you can enable disable hotplug with sysv-rc-conf, if you don't have it, just apt-get it. Note that debian uses rc2 by default.
 
Old 01-06-2005, 08:11 AM   #6
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
To disable modules loading automatically by hotplug, you need to add the module name to /etc/hotplug/blacklist Debian uses hotplug by default and adding the module name to the blacklist file is the easiest way to stop problematic modules from loading.
 
Old 01-06-2005, 08:19 AM   #7
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Check out "man discover.conf" to find out how to prevent discover from loading specific modules.

Last edited by Dead Parrot; 01-06-2005 at 08:21 AM.
 
Old 01-06-2005, 09:50 AM   #8
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 229

Rep: Reputation: 32
Quote:
Originally posted by slackie1000
in *slackware*, the file is called
Code:
/etc/rc.d/rc.modules
i suppose there must be something similiar in Debian.
The file is located at /etc/modules on a Debian system
 
Old 01-07-2005, 07:44 AM   #9
kpg
LQ Newbie
 
Registered: Feb 2004
Location: Pune, India
Distribution: Slackware 9.1
Posts: 15

Original Poster
Rep: Reputation: 0
My /etc/modules only has ide-cd and ide-detect listed. However, I have yet to try disabling discover.
Will my USB thumb drive work if I stop hotplug?

Kaustubh
 
Old 01-07-2005, 08:03 AM   #10
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
The modules listed in /etc/modules are those that need to be LOADED at boot time. The modules in /etc/hotplug/blacklist are those that you DON'T want loaded by hotplug. There is no need to get rid of hotplug, just put i810_rng, hw_random and pci_ehp in the file /etc/hotplug/blacklist. You shouldn't need to do anything to discover either.

I had similar errors in loading hw_random on my laptop. I added hw_random to /etc/hotplug/blacklist and I have had no more problems.
 
  


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
automatically modules loading at booting time ourlinuxid Linux - General 1 01-12-2005 05:31 PM
Loading modules at boot time Musikolo Linux - Software 3 07-18-2004 11:29 AM
loading modules at boot Davidian1024 Linux From Scratch 3 06-25-2004 12:19 AM
Loading modules at boot time dancar Linux - Newbie 6 02-28-2004 06:00 PM
Loading modules at boot-time chrisk5527 Linux - General 5 01-12-2003 11:43 PM

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

All times are GMT -5. The time now is 03:04 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