[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: devfs -> udev, user mounting etc



On Tue, Sep 07, 2004 at 01:30:23PM +0200, Chris Searle wrote:

> 
> The other question is rights - how to set up user/groups on /dev and
> how to get devices to turn up at the same place so that they can be
> added to /etc/fstab with "user" option so I don't have to keep
> switching to root to mount/read the cards. If I plug/unplug the reader
> a couple of times it works it's way up thru /dev/scsi/host1,
> /dev/scsi/host2, /dev/scsi/host3, /dev/scsi/host4 etc.
> 

You can use the symlink parameter to have a consistent device name to mount
to. Here's the contents of my /etc/udev/rules.d/local.rules 

BUS="usb", SYSFS{product}="JUMPDRIVE", NAME="%k", symlink="jumpdrive"
BUS="usb", SYSFS{product}="JUMPDRIVE PRO", NAME="%k", symlink="jumpdrive_pro"
BUS="usb", SYSFS{product}="JumpDrive Trio", NAME="%k",symlink="jumpdrive_trio"
BUS="usb", SYSFS{product}="USB SmartMedia", NAME="%k", symlink="smartmedia"
BUS="usb", SYSFS{product}="ARCHOS USB2.0 (P4a)",NAME="%k", symlink="jukebox"
BUS="usb", SYSFS{product}="C2Z,D520Z,C220Z", NAME="%k", symlink="camera"
BUS="usb", SYSFS{product}="Palm Handheld", NAME="%k", symlink="pilot"

I use autofs to mount these, but the symlinks should work with fstab just as
well.

dt

-- 
Dave Thayer           | WARNING: Persons denying the existence of 
Denver, Colorado USA  | robots may be robots themselves.
dave@thayer-boyle.com | 



Reply to: