public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jorge Almeida <jalmeida@math.ist.utl.pt>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] confused udev?
Date: Thu, 17 Nov 2005 16:19:38 +0000 (WET)	[thread overview]
Message-ID: <Pine.LNX.4.63.0511171547410.7664@weber.math.ist.utl.pt> (raw)
In-Reply-To: <7573e9640511170614q4129191cv27de7f4def6b1e85@mail.gmail.com>

On Thu, 17 Nov 2005, Richard Fish wrote:

> On 11/17/05, Jorge Almeida <jalmeida@math.ist.utl.pt> 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 
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2005-11-17 16:27 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-17  9:26 [gentoo-user] confused udev? Jorge Almeida
2005-11-17  9:49 ` Dirk Heinrichs
2005-11-17 12:43   ` Jorge Almeida
2005-11-17 13:54     ` Dirk Heinrichs
2005-11-17 14:14       ` Jorge Almeida
2005-11-18 10:21         ` Dirk Heinrichs
2005-11-18 10:29           ` Neil Bothwick
2005-11-18 10:40             ` Dirk Heinrichs
2005-11-18 10:31           ` Jorge Almeida
2005-11-20  2:21             ` Richard Fish
2005-11-20 11:21               ` Jorge Almeida
2005-11-21 15:18                 ` Richard Fish
2005-11-22 11:46                   ` Jorge Almeida
2005-11-23  4:10                     ` Richard Fish
2005-11-23  9:32                       ` Jorge Almeida
2005-11-23 15:07                         ` Richard Fish
2005-11-23 21:13                           ` Jorge Almeida
2005-11-17 14:14     ` Richard Fish
2005-11-17 16:19       ` Jorge Almeida [this message]
2005-11-17 17:11         ` Richard Fish
2005-11-17 17:47           ` Jorge Almeida
2005-11-17 18:14             ` Richard Fish
2005-11-17 18:23               ` Jorge Almeida
2005-11-17 20:15                 ` Richard Fish
2005-11-17 20:49                   ` Jorge Almeida
2005-11-17 21:11                     ` Richard Fish
2005-11-17 22:04                       ` Jorge Almeida
2005-11-17 23:57                         ` Richard Fish
2005-11-18  8:33                           ` Jorge Almeida
2005-11-18  7:03                       ` Dirk Heinrichs
2005-11-18  6:56         ` Dirk Heinrichs
2005-11-18  8:36           ` Jorge Almeida

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.63.0511171547410.7664@weber.math.ist.utl.pt \
    --to=jalmeida@math.ist.utl.pt \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox