1 |
Martin Jürgens wrote: |
2 |
|
3 |
> Hi everyone, |
4 |
> |
5 |
> I'm having some trouble with the following udev rule for my dvdrw drive: |
6 |
> |
7 |
> KERNEL=="hdc", NAME="hdc", GROUP="dvdrw", MODE="0660" |
8 |
> |
9 |
> I placed it in /etc/udev/rules.d/10-udev.rules and applied it using |
10 |
> udevstart.The result is the following device node: |
11 |
> |
12 |
> brw-rw---- 1 root root 22, 0 3. Nov 16:46 /dev/hdc |
13 |
|
14 |
|
15 |
Well besides the fact I'm using udev-071, I don't have a group "dvdrw", |
16 |
so I used a group that I do have. I added this at the beginning of my |
17 |
10-udev.rules: |
18 |
|
19 |
KERNEL=="hdb", NAME="fooey", GROUP="rpc", MODE="0660" |
20 |
|
21 |
This gave me /dev/fooey, but with the wrong group (was "cdrom"). I |
22 |
found I had to comment out the following 2 lines from 50-udev.rules to |
23 |
get it to work correctly: |
24 |
|
25 |
# all block devices |
26 |
#SUBSYSTEM=="block", GROUP="disk" |
27 |
... |
28 |
#ENV{ID_CDROM}=="?*", SYMLINK+="cdrom%e", GROUP="cdrom" |
29 |
|
30 |
With that, I got the correct group. |
31 |
|
32 |
So it seems that SUBSYSTEM or ENV rules that appear later can override |
33 |
the group that you specify. This should help you track down the problem. |
34 |
|
35 |
However, you might want to try udev-071, followed by an etc-update (be |
36 |
sure to accept any changes to 50-udev.rules). My DVD+/-RW device ends |
37 |
up in group "cdrom" automatically, so you would only need to add the |
38 |
appropriate users to that group. |
39 |
|
40 |
HTH, |
41 |
-Richard |
42 |
|
43 |
-- |
44 |
gentoo-user@g.o mailing list |