LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-30-2003, 12:01 AM   #1
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Rep: Reputation: 15
how to mount the joystcik device automatically?


Hello,

I made a joystick work in RH 7.3. But each time i have to do the following steps when i reboot.

/sbin/modprobe usb-uhci
/sbin/modprobe usb-storage
mount -t usbdevfs none /proc/bus/usb

where should i put these lines in order to mount it automatically?

thanks...
 
Old 10-30-2003, 12:05 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
you could put those 3 lines in /etc/rc.d/rc.local

i don't know about usb stuff enough to suggest a way of doing it in /etc/fstab though. my guess is that that's probably a more correct way of mounting your joystick.
 
Old 10-30-2003, 12:21 AM   #3
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Original Poster
Rep: Reputation: 15
yes, i guessed so... but even i have the same doubt how to put this mount in /etc/fstab. I mean i need the syntax. Or will it work the same way if we put it in mtab? anyone else have idea abt this?
 
Old 10-30-2003, 12:29 AM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
well putting those three lines in rc.local will work. it might not be considered elegant as putting one line in fstab though.
 
Old 10-30-2003, 12:43 AM   #5
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Original Poster
Rep: Reputation: 15
yeah, it works fine. But i get these messages in the login prompt when i reboot. (runlevel is 3 in /etc/inittab)

usb.c: USB device 2 (vend/prod 0x46d/0xc285) is not claimed by any active driver.
usb_control/bulk_msg: timeout

Am i missing something?
 
Old 10-30-2003, 12:49 AM   #6
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
not sure. but even if you booted in run level 5, you'd get that message too, the gui login would just pop faster than you could read it. what happens if you just use the mount command without the modprobe lines?
 
Old 10-30-2003, 01:01 AM   #7
lpriyamb
Member
 
Registered: Feb 2003
Posts: 65

Original Poster
Rep: Reputation: 15
hmm... i am not getting any message but my joystick is not recogonised without modprobe lines. I also have 3 more lines in /etc/rc.d/rc.local. So, it looks like this....

touch /var/lock/subsys/local
/sbin/modprobe usb-uhci
/sbin/modprobe usb-storage
mount -t usbdevfs none /proc/bus/usb
modprobe joydev
modprobe iforce
modprobe analog

may be the error message is due to the last 3 lines?
 
Old 10-30-2003, 11:22 AM   #8
evil_Tak
Member
 
Registered: Oct 2003
Distribution: Debian/unstable
Posts: 85

Rep: Reputation: 15
A joystick is not a storage device, and you do not "mount" it. Therefore, you can't and shouldn't put a line in /etc/fstab for it. Also, you don't need to add the usb-storage module for a joystick. The lines that should be added to /etc/rc.d/rc.local are:
Code:
/sbin/modprobe usb-uhci
/sbin/modprobe joydev
You may need to add the iforce and analog lines too, but not for basic usb joystick functionality.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 05:02 PM
device icons created automatically after reboot mushmaster Linux - Newbie 2 08-14-2004 07:00 PM
device mount automatically caterboy Slackware 3 06-04-2004 09:01 PM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 07:45 AM
how can I mount this device: da0: <USB 2.0 Storage Device alkad_mzu *BSD 2 11-15-2003 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:25 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