Re (2): /etc/udev/rules.d/10-local.rules

2014-11-03 Thread peter
From:   shawn wilson 
Date:   Sun, 2 Nov 2014 21:49:57 -0500
> Everything must match the same set.

https://wiki.archlinux.org/index.php/udev#Writing_udev_rules
under "Writing udev rules" states,
"A rule to match, can be composed by the attributes of the device 
and the attributes from one single parent device."

Assuming your "set" is an Archlinux "device", the inclusion of an attribute 
from the parent could be crucial.  If, for example, two devices have the 
same ATTR{size}, then ATTRS=={serial} should distinguish.

> Of course not - the rule is structured correctly and it could match for
> another device.

On one machine I had KERNEL=="mmcblk?" rather than "mmcblk?p1".
On another machine the number for ATTR{size} was wrong.

It works now.  Thanks for the reply,... Peter E.

-- 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
Tel +1 360 639 0202  http://carnot.yi.org/  Bcc: peter at easthope. ca


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/E1XlLVC-qR-RV@armada.invalid



Re: /etc/udev/rules.d/10-local.rules

2014-11-02 Thread shawn wilson
On Nov 2, 2014 6:03 PM,  wrote:
>
> Until recently
>
> # The black Kingston SDHC card.
> KERNEL=="mmcblk?p1", ATTR{size}=="7626752", SYMLINK+="BlackSDHC1", \
>  OWNER="peter", GROUP="users"
>
> in /etc/udev/rules.d/10-local.rules produced /dev/BlackSDHC1.
> Now that doesn't work although, if the part is labeled, it
> is automounted at /media/.
>

lsusb -v

Everything must match the same set.

> No error message appears with interactive "udevadm trigger".
> No error message is visible in /var/log/syslog.

Of course not - the rule is structured correctly and it could match for
another device.


/etc/udev/rules.d/10-local.rules

2014-11-02 Thread peter
Until recently

# The black Kingston SDHC card.
KERNEL=="mmcblk?p1", ATTR{size}=="7626752", SYMLINK+="BlackSDHC1", \
 OWNER="peter", GROUP="users"

in /etc/udev/rules.d/10-local.rules produced /dev/BlackSDHC1.
Now that doesn't work although, if the part is labeled, it 
is automounted at /media/.

No error message appears with interactive "udevadm trigger".
No error message is visible in /var/log/syslog.

Ideas?  Thanks,  ... Peter E.

-- 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
Tel +1 360 639 0202  http://carnot.yi.org/  Bcc: peter at easthope. ca


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/E1Xl30T-00020t-Az@armada.invalid