LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Mounting USB Devices--Controlling the dev file (https://www.linuxquestions.org/questions/linux-hardware-18/mounting-usb-devices-controlling-the-dev-file-155067/)

lawrencegoodman 03-08-2004 02:03 PM

Mounting USB Devices--Controlling the dev file
 
I have several USB Devices which I plug in and out of my computer all the time. Most of the time, the USB Pen gets read as dev/sda1, but every now and then it changes to /dev/sdb1. I have no idea why this happens and would like to set my system (KDE 3.2, Suse 8.2) so that it always mounts at /dev/sda1.

This is the line from /etc/fstab:
/dev/sda1 /media/usbpen vfat rw,noauto,users,exec,uid=lawrencegoodman 0 0

But this also appears, via the hotplug function in my fastab:
/dev/sdb1 /media/sdb1 auto noauto,user,exec 0 0 #HOTPLUG B3Fu.wuzu9Ml73n0


Is there a way of getting the hotplug feature to turn off just for the USB Pen device?

Thanks for thhe help.
Lawrence

kilgoretrout 03-08-2004 04:57 PM

It's a limitation of devfs which controls usb assignment in linux. The first usb storage device will be assigned /dev/sdax and will hold onto that even if you disconnect the device so the second device you plug in is assigned to /dev/sdbx even if the first device is disconnected at the time. The only way to get rid of it is to reboot or to use the automount feature which keeps track of these things for you.


All times are GMT -5. The time now is 09:27 AM.