From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1Ecmbt-0001gK-6r for garchives@archives.gentoo.org; Thu, 17 Nov 2005 16:27:41 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jAHGQKXV028708; Thu, 17 Nov 2005 16:26:20 GMT Received: from cubo.math.ist.utl.pt (cubo.math.ist.utl.pt [193.136.196.1]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jAHGJcF9026307 for ; Thu, 17 Nov 2005 16:19:39 GMT Received: from weber.math.ist.utl.pt (weber.math.ist.utl.pt [193.136.196.172]) by cubo.math.ist.utl.pt (8.13.1/8.13.1) with ESMTP id jAHGJcdY007229 for ; Thu, 17 Nov 2005 16:19:38 GMT Received: from weber.math.ist.utl.pt (localhost.localdomain [127.0.0.1]) by weber.math.ist.utl.pt (8.13.1/8.13.1) with ESMTP id jAHGJc5F008108 for ; Thu, 17 Nov 2005 16:19:38 GMT Received: from localhost (jalmeida@localhost) by weber.math.ist.utl.pt (8.13.1/8.13.1/Submit) with ESMTP id jAHGJcTf008105 for ; Thu, 17 Nov 2005 16:19:38 GMT X-Authentication-Warning: weber.math.ist.utl.pt: jalmeida owned process doing -bs Date: Thu, 17 Nov 2005 16:19:38 +0000 (WET) From: Jorge Almeida To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] confused udev? In-Reply-To: <7573e9640511170614q4129191cv27de7f4def6b1e85@mail.gmail.com> Message-ID: References: <200511171049.14493.ext-dirk.heinrichs@nokia.com> <7573e9640511170614q4129191cv27de7f4def6b1e85@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archives-Salt: 1ac93ffc-caf1-4ce3-8a29-f4d156879c4f X-Archives-Hash: 52a9b46e404789638faf425bd50fb0eb On Thu, 17 Nov 2005, Richard Fish wrote: > On 11/17/05, Jorge Almeida 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