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... |
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. |
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?
|
well putting those three lines in rc.local will work. it might not be considered elegant as putting one line in fstab though.
|
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? |
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?
|
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? |
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 |
All times are GMT -5. The time now is 08:26 PM. |