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

Re: Udev and storage devices

On Wednesday 28 December 2005 11:45, Jacob S wrote:
> Howdy list,
> I just installed udev on a Debian Sarge box. Everything's working
> great, but now I'm trying to write some rules for a digital camera and
> a usb memory stick. I created a file named 010_local.rules
> in /etc/udev/rules.d that contains the following:
> # Olympus D390 digital camera
> BUS="scsi", SYSFS{vendor}="OLYMPUS ", KERNEL="sd*", NAME="%k",
> SYMLINK="camera%n"
> # PNY Attache usb key
> BUS="usb", SYSFS{product}="USB Flash Memory", KERNEL="sd*", NAME="%k",
> SYMLINK="usb_key%n"
> However, it is symlinking both devices to /dev/camera, instead of
> /dev/camera and /dev/usb_key. I've copied the output from udevinfo below
> for each device. Can anyone see what I'm doing wrong?

Whenever I see things like this, I first try to reverse the order...then maybe 
take out the _ in the usb_key, change the things around to make them more 
alike, etc...

Reply to: