LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-22-2004, 12:44 PM   #1
dancar
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Rep: Reputation: 0
Loading modules at boot time


How do I load a module at boot time?
The problem is that at boot, only lp and parport is being loaded, bu not parport_pc. So I have to load it everytime I want to use a printer.
I edited rc.modules and uncomented the lines about parallel port, but didn't work. The strange thing is even lp and parport were comented, so I don't think rc.modules have anything to do with loading the modules.
I'm using Slackware 9.1 and just compiled kernel 2.6.3.
All three modules are inserted as M on the kernel.
 
Old 02-22-2004, 01:24 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
The modules you mention as being loaded
are hotplug-detected... parport_pc isn't.

To have it loaded, edit your
/etc/rc.d/rc.modules
and add a line
/sbin/modprobe parport_pc

(preferably somewhere close to the other parport entry :})


Cheers,
Tink
 
Old 02-22-2004, 02:00 PM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
After my system is booted, lsmod doesn't show lp, parport, or parport_pc. But, then, when I try to print a page (e.g. lpr testpage), all three modules get automatically loaded. So, if your case is similar to mine, maybe there's no need to uncomment those lines in rc.modules.
 
Old 02-28-2004, 10:22 AM   #4
dcarter25
LQ Newbie
 
Registered: Dec 2003
Posts: 8

Rep: Reputation: 0
This is the exact question I was looking for an answer to.

I am wanting to load the module sonypi on boot up. Currently I am loading it manually through the console after logining into linux with su -.

I have searched for the file rc.modules, but have been unable to find it. I am running Fedora core 1.

Can I simply make the file rc.modules and place it in the /etc/rc.d/ directory, and if does it need to referenced in any other boot scripts? Or is there another way to have modules load on boot in Fedora?

Cheers
 
Old 02-28-2004, 10:39 AM   #5
dcarter25
LQ Newbie
 
Registered: Dec 2003
Posts: 8

Rep: Reputation: 0
So I created the rc.modules with only the line:

/sbin/modprobe sonypi

I put it in the directory:

/etc/rc.d/

with a link placed in:

/etc/

I rebooted the system and it didn't load the module. I not really sure where to go from here with it.
 
Old 02-28-2004, 12:29 PM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
I don't think Fedora uses the rc.modules. I think the appropriate place in Fedora is modules.conf or something like that, but I'm not sure.
 
Old 02-28-2004, 07:00 PM   #7
dcarter25
LQ Newbie
 
Registered: Dec 2003
Posts: 8

Rep: Reputation: 0
Your right Fedora doesn't use rc.modules, and i couldn't figure out the modules.conf. However I read in the 'Fedora' forum that I could use the rc.local file which is in /etc/rc.d/. It works I'm just not sure if this is the best way of making it work.

thanks for the reply 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
Loading modules at boot paddyjoy Linux - Newbie 2 06-27-2005 10:23 PM
automatically modules loading at booting time ourlinuxid Linux - General 1 01-12-2005 06:31 PM
Stopping modules from loading at boot time kpg Debian 9 01-07-2005 09:03 AM
Loading modules at boot time Musikolo Linux - Software 3 07-18-2004 12:29 PM
Loading modules at boot-time chrisk5527 Linux - General 5 01-13-2003 12:43 AM


All times are GMT -5. The time now is 03:49 PM.

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