On Wed, Aug 5, 2009 at 22:26, Joseph Mack NA3T<jmack@xxxxxxxx> wrote: > On Wed, 5 Aug 2009, Kay Sievers wrote: > >> On Wed, Aug 5, 2009 at 17:56, Joseph Mack NA3T<jmack@xxxxxxxx> wrote: >> >>> KERNELS=="4-3:1.0", SUBSYSTEM=="block", NAME="flashL%n" >>> >>> which work fine. I've now labeled all my ports by location. >> >> It's not fine. You just match on a rather random USB enumeration. > > thanks. > >> The /dev/disk/by-path/ links are longer for good reason. > > Here's the /dev/disk/by-path with the flash disk inserted > > pci-0000:00:14.2-usb-0:4:1.0-scsi-0:0:0:0 -> ../../pny > pci-0000:00:14.2-usb-0:4:1.0-scsi-0:0:0:0-part1 -> ../../pny1 > pci-0000:00:14.2-usb-0:4:1.0-scsi-0:0:0:0-part4 -> ../../pny4 Do not rename any kernel device name, just add symlinks if needed. Random stuff breaks if you do that. > For this port I've used in my rule > > KERNELS=="2-4:1.0" > > Looking at the output of > > udevinfo -a -p /block/sda/sda1 > > I don't see anything matching the links in /dev/disk/by-path Sure not, because it can't work that way. > what should I be looking for in the output of udevinfo? Nothing, just use the plain links which are already created. The needed logic is _not_ contained in udevinfo or the kernel name. Kay -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html