Re: need absolute location/device of usb flash disk

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

 



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. The
/dev/disk/by-path/ links are longer for good reason.

> There's rules about GROUP in one of my files (50-...)
>
> KERNEL=="sd*[!0-9]", ATTR{removable}=="1", GROUP="plugdev"
> KERNEL=="sd*[0-9]", ATTRS{removable}=="1", GROUP="plugdev"
>
> I can't use these rules to apply a GROUP to flash disks in the usb ports of
> interest, but not to flash disks in the other port. Any ideas on assigning
> the GROUP?

A later rule sets GROUP=, and overwrites it, I guess. GROUP:= might work.

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

[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