From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 17 Mar 2004 12:40:36 +0000 Subject: Re: What does /udev think its doing? Message-Id: <1079527236.2394.53.camel@pim> List-Id: References: <200403170848.i2H8m1Sg005927@orion.dwf.com> In-Reply-To: <200403170848.i2H8m1Sg005927@orion.dwf.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, 2004-03-17 at 09:48, reg@dwf.com wrote: > OK, Im confused, what does /udev think its doing here. > This is udev-021. > > the appropriate rule in udev.rules is > > BUS="scsi", SYSFS{vendor}="IC25N020", NAME{all_partitions}="usb_disk" > > The result of a ls -lai of /udev/usb is > > 449164 brw------- 1 root root 8, 2 Mar 17 01:17 /udev/usb_disk Please try: BUS="scsi", KERNEL="*[!0-9]", SYSFS{vendor}="IC25N020", NAME{all_partitions}="usb_disk" it will catch the main device only. It looks like your rule applies to all partitions and the result in the same name which is replaces the former with every match? If this doesn't work, please tell what you get with: BUS="scsi", SYSFS{vendor}="IC25N020", NAME{all_partitions}="usb_disk%n" thanks, Kay ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel