| Fedora This forum is for the discussion of the Fedora Project. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-02-2004, 08:12 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2004
Posts: 29
Rep:
|
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
|
|
|
|
08-02-2004, 09:04 AM
|
#2
|
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
modprobe -r <modulename>
|
|
|
|
08-02-2004, 09:09 AM
|
#3
|
|
LQ Newbie
Registered: Apr 2004
Posts: 29
Original Poster
Rep:
|
Wouldn't that just remove the module from the kernel until I reboot the system?
|
|
|
|
08-02-2004, 08:44 PM
|
#4
|
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
Removing a module usually makes it stay gone. Try it. Its just a reboot.
|
|
|
|
08-04-2004, 08:30 AM
|
#5
|
|
LQ Newbie
Registered: Apr 2004
Posts: 29
Original Poster
Rep:
|
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?
|
|
|
|
08-04-2004, 09:16 AM
|
#6
|
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
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)
|
|
|
|
08-04-2004, 09:30 AM
|
#7
|
|
LQ Newbie
Registered: Apr 2004
Posts: 29
Original Poster
Rep:
|
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.
|
|
|
|
08-04-2004, 09:57 AM
|
#8
|
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
Heh heh. Less work to compile a new kernel. LOL
|
|
|
|
08-04-2004, 10:00 AM
|
#9
|
|
LQ Newbie
Registered: Apr 2004
Posts: 29
Original Poster
Rep:
|
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?
|
|
|
|
08-04-2004, 10:25 AM
|
#10
|
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
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  )
|
|
|
|
08-04-2004, 11:37 AM
|
#11
|
|
LQ Newbie
Registered: Apr 2004
Posts: 29
Original Poster
Rep:
|
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.
|
|
|
|
08-04-2004, 03:05 PM
|
#12
|
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
Try looking in /lib/modules/2.x.x
|
|
|
|
08-04-2004, 03:11 PM
|
#13
|
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep: 
|
Or /etc/modules and /etc/modules.conf
|
|
|
|
08-04-2004, 05:34 PM
|
#14
|
|
Member
Registered: Apr 2004
Location: NJ, USA
Distribution: Fedora
Posts: 82
Rep:
|
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.
|
|
|
|
08-05-2004, 08:16 AM
|
#15
|
|
LQ Newbie
Registered: Apr 2004
Posts: 29
Original Poster
Rep:
|
That didn't work either. Thanks though. =/
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:31 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|