Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-14-2004, 08:24 PM   #1
Registered: Apr 2004
Location: Ontario, Canada
Distribution: Ubuntu Hoary
Posts: 45

Rep: Reputation: 15
dynamically loading modules that don't

I have been having problems with my USB printer and card reader. Basically, if I reboot my computer, I must type "modprobe usbcore" and "modprobe uhci" followed by a healthy "dmesg | grep usb" to load the modules into the kernel.

How do I get this done automatically? What file do I have to edit to get these modules loaded at boot time?


Old 12-15-2004, 04:44 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
If you've compiled in the kernel's module autoloader support then the modules should be loaded when you first try to access the device.

If that doesn't work, you can always append these lines to your boot scripts; usually this is a file like rc.local in /etc/, /etc/rc.d/ or /etc/init.d.

Btw, the
dmesg | grep usb
command just tells you (the user) if the module was loaded or if it gave any error messages; you don't need to run this unless you have problems you want to debug.
/sbin/lsmod | grep usb
will tell you what modules you have loaded with usb in their names.


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 error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
modules are loading that shouldn't in my rc.modules thrice Slackware 3 05-11-2004 10:35 PM
loading modules w/o rc.modules e1000 Slackware 3 01-09-2004 02:57 AM
dynamically including C modules manjulap Programming 4 03-13-2002 03:00 AM
problem in dynamically loading the shared object sumit Programming 1 01-10-2002 03:15 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration