On Thu, 17 Nov 2005, Richard Fish wrote:

> 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 much for the rules in
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Flash-Memory-HOWTO.html#hotplug
...
> 
> 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.
> 
Did it. Upon reboot, I had /dev/external_hd and /dev/external_hd1, but
only /dev/plextor_memstick (i.e., no mountable /dev/plextor_memstick1).
I unplugged the stick and turned off the HD case. I plugged back the
stick. Now /dev/plextor_memstick and /dev/plextor_memstick1 exist, as
they should. I turned the case on. Well, no /dev/external_hd...

Moreover:
        $ systool  -vb scsi | grep vendor
            vendor              = "PLEXTOR "
        
No external disk...
        $ udevinfo -a -p $(udevinfo -q path -n /dev/sda)
        no record for 'sda' in database
        (...)
The same for sdb...

(There's something very wrong either with me or with udev. I'm ready to
accept the former, but I still remember when devfs went out, one year or
so ago, and my USB scanner stopped working.)

> -Richard
> 
Thanks again.

Jorge 
-- 
[email protected] mailing list

Reply via email to