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 1Eckf7-000568-M6 for garchives@archives.gentoo.org; Thu, 17 Nov 2005 14:22:54 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jAHELRuL026128; Thu, 17 Nov 2005 14:21:27 GMT Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jAHEE4Dp030124 for ; Thu, 17 Nov 2005 14:14:05 GMT Received: by wproxy.gmail.com with SMTP id i28so400207wra for ; Thu, 17 Nov 2005 06:14:04 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tnvhv//L+v7qE23G08dDNMS56Z2nOqFL1jYGG9/x2uEvGoQmPDaWQKERLMPo8XW1ExBH97GPue0jZgvoeYhcF7qyvpTkievOA1z8EIvaZhUAmMBCBXyRqQ6+mMmvNT+QnY9sats7/2dc7wUEbaSoIw5uZqHKQd/Hg4+Ij4UkZyQ= Received: by 10.54.100.2 with SMTP id x2mr6460779wrb; Thu, 17 Nov 2005 06:14:04 -0800 (PST) Received: by 10.54.126.13 with HTTP; Thu, 17 Nov 2005 06:14:04 -0800 (PST) Message-ID: <7573e9640511170614q4129191cv27de7f4def6b1e85@mail.gmail.com> Date: Thu, 17 Nov 2005 07:14:04 -0700 From: Richard Fish Sender: richard.j.fish@gmail.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] confused udev? In-Reply-To: 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=ISO-8859-1 Content-Disposition: inline References: <200511171049.14493.ext-dirk.heinrichs@nokia.com> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id jAHEE4Dp030124 X-Archives-Salt: 7a441b1a-bf50-4b16-8663-69b0d6cf1bad X-Archives-Hash: 74c571b92b4f42700d2428fb0fff8c28 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 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 -- gentoo-user@gentoo.org mailing list