Re: need absolute location/device of usb flash disk

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

 



On Mittwoch, 5. August 2009, Joseph Mack NA3T wrote:
>
> 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?
>
have a look which other files assign GROUP of block devices, and move your 
rules to be after it.
Does your device have removable==1?
Why not match
SUBSYSTEM=="block", SUBSYSTEMS=="usb", KERNEL=="sd*", GROUP="plugdev"

So all sd* devices on usb bus get group set.

Matthias

--
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