On 11/17/05, Jorge Almeida <[EMAIL PROTECTED]> wrote:
>         $ cat /etc/udev/rules.d/40-my.rules
>         BUS="scsi", SYSFS{vendor}="PLEXTOR ", SYSFS_model="PlexFlash-2*", 
> NAME="plextor_memstick%n"
>         BUS="scsi", SYSFS{vendor}="Maxtor 6 ", SYSFS_model="L250R0*", 
> NAME="external_hd%n"

>     SYSFS{model}=="L250R0          "
>     SYSFS{queue_depth}=="1"
>     SYSFS{queue_type}=="none"
>     SYSFS{rev}=="BAH4"
>     SYSFS{scsi_level}=="3"
>     SYSFS{state}=="running"
>     SYSFS{timeout}=="30"
>     SYSFS{type}=="0"
>     SYSFS{vendor}=="Maxtor 6"

Here is a problem...you have an extra space in your vendor string, so
the first rule will not match.

Also, you should be using "==" in your rules, not "=", and
SYSFS{model}, not SYSFS_model.    I think these latter issues are the
reason the plextor rule is matching, because from the udev man page,
"=" does not test for equality, it assigns a value to a key.

So first, cut-n-paste the vendor and model strings from this output
into your rule, and change all of the "=" to "==" (except for the NAME
setting).  Then try setting udev_log=7 in /etc/udev/udev.conf, and
watch /var/log/messages when you plug in the drive.

-Richard

-- 
[email protected] mailing list

Reply via email to