Re: need absolute location/device of usb flash disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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

what should I be looking for in the output of udevinfo?

Thanks Joe

--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!
--
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

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux