LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-28-2003, 09:42 PM   #1
dave37
Member
 
Registered: Sep 2003
Location: Ottawa, Canada
Distribution: Ubuntu Dapper
Posts: 70

Rep: Reputation: 16
usb modules not loading


None of my connected usb devices function any more. I didn't notice when it started, but using USBViewer, it tells me that proc/bus/usb/devices doesn't exist, and sure enough it doesn't. If I check modules.conf I see no mention of USB. How do I get the relevant usb modules to load at boot?

Thank you!
 
Old 12-29-2003, 01:15 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Have you changed anything recently? Or did they just dissappear for no reason? Have you tried to manually load the modules at all? If so, any errors or do they load?
 
Old 12-29-2003, 06:38 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sounds like my last few days.... i'd guess that you're not mounting the usb file system in the first place:

mount -t usbdevfs none /proc/bus/usb
 
Old 12-29-2003, 10:19 AM   #4
dave37
Member
 
Registered: Sep 2003
Location: Ottawa, Canada
Distribution: Ubuntu Dapper
Posts: 70

Original Poster
Rep: Reputation: 16
I tried the mount instruction provided above, and get a mount point error. I have found that my usb modules are not loading automatically. By doing a /sbin/modprobe usbcore and /sbin/modprobe/ usb-uhci my usb ports come to life, and the mount of usbdevfs works, as well I can now see all of my usb devices in usbviewer. Now, how do I get those modules to load on reboot?

Thanks

Last edited by dave37; 12-29-2003 at 10:53 AM.
 
Old 12-29-2003, 02:00 PM   #5
Darktyco
Member
 
Registered: Aug 2003
Location: michigan
Distribution: slackware
Posts: 59

Rep: Reputation: 15
None of my USB devices work either, however I can modprobe all the correct modules and also perform that mount command without error. Why is this? Another strange thing is that the red light on the bottom of the USB mouse is off (it only turns on for a brief instant when being plugged in). I've been working on this problem for a while and I have absolutely no idea what is going on, anyone have any tips?

dave37: Put the modprobe commands you want executed on startup into your /etc/rc.d/rc.modules file
 
Old 12-29-2003, 04:14 PM   #6
dave37
Member
 
Registered: Sep 2003
Location: Ottawa, Canada
Distribution: Ubuntu Dapper
Posts: 70

Original Poster
Rep: Reputation: 16
Got it working! As advised, created a startup script and placed it in /etc/rc.d/init.d named usbstart and another in /etc/rc.d/rc5.d named S07usbstart (startup link) and it works fine.
Below is the content of the script in case it is helpful to anyone else

#!/bin/bash

# USB start, workaround for usb modules not loading automatically at boot
# place one copy in /etc/rc.d/init.d and name it usbstart and one in
#/etc/rc.d/rc5.d named S07usbstart
# ensure that the files in both have full r/w permissions in order to execute
# you can do this with chmod 755 S99usbstart and chmod 775 usbstart from each of
#the directories where you placed the files.
# Note the above /etc/rc5/d refers to run level 5. If you have a different run
#level then change the 5 to whatever your current run level is.
# provided with no restrictions, modify as you wish, no warranty implied nor is
#the author responsible for any problems caused by use of this script.


# loading usbcore

/sbin/modprobe usbcore

#loading usb-uhci

/sbin/modprobe usb-uhci

#loading human interface device

/sbin/modprobe hid

#mounting usbdevfs filesystem

mount -t usbdevfs none proc/bus/usb


#Done!

Named one usbstart and stored it in /etc/rc.d/init.d and chmod 755 usbstart to
have the correct file permissions.

Put a copy and renamed it to S07usbstart in /etc/rc.d/rc5.d Also chmod 755
this one for correct file permissions. The S07 means start service seventh.
This ensures that the usb subsystem is loaded before any devices which may need
it.

Last edited by dave37; 12-29-2003 at 06:24 PM.
 
Old 12-31-2003, 03:16 AM   #7
TigerLeo
LQ Newbie
 
Registered: Dec 2003
Posts: 3

Rep: Reputation: 0
Sorry for this post.

Last edited by TigerLeo; 12-31-2003 at 03:29 AM.
 
  


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 On
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 usb modules - maybe edigital Linux - General 3 02-18-2004 06:20 PM
usb mpio - issues loading usb modules edigital Linux - Software 0 02-16-2004 10:00 PM
loading modules w/o rc.modules e1000 Slackware 3 01-09-2004 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:16 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
Open Source Consulting | Domain Registration