LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 08-02-2004, 08:12 AM   #1
brandor
LQ Newbie
 
Registered: Apr 2004
Posts: 29

Rep: Reputation: 15
How do I stop modules from loading on boot?


Just an easy question. Is there anyway in FC1 to stop modules from loading on boot? I have a desktop that occassionally freezes when the apm driver is trying to load.

I know that I can recompile the kernel to not include apm support, but I'm in a lazy mood today and just want to know if I can sidestep doing that.

The desktop is running the standard 2197 FC1 kernel and does not have the kernel sources installed.

Thanks for all the help.

B
 
Old 08-02-2004, 09:04 AM   #2
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
modprobe -r <modulename>
 
Old 08-02-2004, 09:09 AM   #3
brandor
LQ Newbie
 
Registered: Apr 2004
Posts: 29

Original Poster
Rep: Reputation: 15
Wouldn't that just remove the module from the kernel until I reboot the system?
 
Old 08-02-2004, 08:44 PM   #4
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Removing a module usually makes it stay gone. Try it. Its just a reboot.
 
Old 08-04-2004, 08:30 AM   #5
brandor
LQ Newbie
 
Registered: Apr 2004
Posts: 29

Original Poster
Rep: Reputation: 15
Newp. Did not work.

Maybe there is a "noapm" (that's not it, I tried) that I can pass at boot?

Something else?

Anyone?

Bueller?
 
Old 08-04-2004, 09:16 AM   #6
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Not sure of FC's file structure, but usually thise things are in /etc/rc.d and/or /etc/init.d You can usually remove from there. If FC has some kind of control panel and you can access it, you may be able to disable it with a GUI tool (maybe webmin too)
 
Old 08-04-2004, 09:30 AM   #7
brandor
LQ Newbie
 
Registered: Apr 2004
Posts: 29

Original Poster
Rep: Reputation: 15
I looked in /etc and /etc/sysconfig for a list of modules that were loaded at boot time and couldn't find anything. Just lists of aliases and no reference to the apm module.
 
Old 08-04-2004, 09:57 AM   #8
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Heh heh. Less work to compile a new kernel. LOL
 
Old 08-04-2004, 10:00 AM   #9
brandor
LQ Newbie
 
Registered: Apr 2004
Posts: 29

Original Poster
Rep: Reputation: 15
It's starting to look that way. I'll probably end up doing that. But, it irks me to know there HAS to be some way stop certain modules from loading at boot time.

Could it be that FC/Redhat is the only distro that doesn't have a list?
 
Old 08-04-2004, 10:25 AM   #10
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
That doesn't make much sense. The modules won't load without instruction. Gentoo has the list in /etc/init.d. Slackware 10 has it under /etc/rc.d. Debian has it under /etc/init.d and /etc/rcX.d/ has symlinks to the various services and modules under init.d

Perhaps this info will hemlp more. If you find a symlink to apmd, then you can delete it (I'd remember where that was, to ensure that you can replace it if necessary). Like I said, I don't use any RH products. It was the first one I tried (RH7.3, fresh off the mirror) and it locked so hard I got disgusted and installed Debian. Never found a reason to try RH/FC again (Gentoo is excellent and most crashless - I may have found a keeper)
 
Old 08-04-2004, 11:37 AM   #11
brandor
LQ Newbie
 
Registered: Apr 2004
Posts: 29

Original Poster
Rep: Reputation: 15
Well, you're thinking apmD. I'm not even running apmd on this machine. It's the apm module thats being loaded into the kernel at boot time that's causing the trouble.
 
Old 08-04-2004, 03:05 PM   #12
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Try looking in /lib/modules/2.x.x
 
Old 08-04-2004, 03:11 PM   #13
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Or /etc/modules and /etc/modules.conf
 
Old 08-04-2004, 05:34 PM   #14
jrittvo
Member
 
Registered: Apr 2004
Location: NJ, USA
Distribution: Fedora
Posts: 82

Rep: Reputation: 15
You could try a line in modprobe.conf:

alias apm off

I had an entry "alias ipv6 off" to kill the ipv6 stuff in the stock kernel until I just rebuilt it without it.
 
Old 08-05-2004, 08:16 AM   #15
brandor
LQ Newbie
 
Registered: Apr 2004
Posts: 29

Original Poster
Rep: Reputation: 15
That didn't work either. Thanks though. =/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to stop modules loading ionmich Suse/Novell 2 11-12-2005 10:02 PM
Stop loading the modules swmok Linux - Software 1 07-04-2005 04:36 AM
stop loading modules at startup..please help GSX Linux - Newbie 5 03-23-2005 10:19 AM
Need to stop KDE from auto-loading at boot. Zombie13 Mandriva 2 12-16-2004 05:56 PM
Stop modules from loading? devfreak Debian 6 07-02-2004 08:44 PM


All times are GMT -5. The time now is 02:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration