![](https://seccdn.libravatar.org/avatar/41ed85ec60b719fa1654d12375dd9bd6.jpg?s=120&d=mm&r=g)
On Fri, 2005-03-18 at 09:03 -0600, Joe Morris (NTM) wrote:
Patrick Shanahan wrote:
* Randall R Schulz <rschulz@sonic.net> [03-17-05 17:33]:
I know the device name it uses on any given mount. But it's not stable. It depends on the order in which USB mass storage devices are mounted.
I want a solution that is not susceptible to this dependency.
Looks like Joe Morris (NTM) has provided an answer to your problem today in this list I didn't reply to his message because IIRC he uses 9.1 and I am not sure it will work with the udev of 9.1, but it does work with udev in 9.2. An example from mine is for a lexar jumpdrive. First, I created a file in /etc/udev/rules.d/ called 10-udev.rules (so it is not over written by an upgrade). It is: BUS="usb", SYSFS{serial}="33000000817000041501", KERNEL="sd?1", NAME="%k", SYMLINK="jumpdrive"
this produces a link to which ever sd device it gets, but is specific to this particular jumpdrive. Then I created a directory /media/jumpdrive. I also added to fstab:
/dev/jumpdrive /media/jumpdrive vfat noauto,user,rw,sync 0 0
I could have used subfs, but decided I wanted to manually mount and unmount (I'm still a bit old school and can understand the safety of that better). Then, I created a device icon (.desktop) file on my desktop called Lexar Jumpdrive, choosing rw and mountpoint (of which it reads fstab and gives you the choices) /media/jumpdrive. It works great for me in 9.2, hope it still works in 9.1.
-- Joe Morris
Thanks for the info Joe. Even though I am not the one looking for this info I find it -very- informative. Sure makes it a lot easier to understand when an example, like this one, is included. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 * Only reply to the list please* "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge