LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to mount the joystcik device automatically? (https://www.linuxquestions.org/questions/linux-software-2/how-to-mount-the-joystcik-device-automatically-110227/)

lpriyamb 10-30-2003 12:01 AM

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...

megaspaz 10-30-2003 12:05 AM

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.

lpriyamb 10-30-2003 12:21 AM

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?

megaspaz 10-30-2003 12:29 AM

well putting those three lines in rc.local will work. it might not be considered elegant as putting one line in fstab though.

lpriyamb 10-30-2003 12:43 AM

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?

megaspaz 10-30-2003 12:49 AM

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?

lpriyamb 10-30-2003 01:01 AM

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?

evil_Tak 10-30-2003 11:22 AM

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.


All times are GMT -5. The time now is 08:26 PM.