Gentoo Archives: gentoo-user

From: Dirk Heinrichs <dirk.heinrichs.ext@×××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] perm link
Date: Tue, 05 Jun 2007 13:55:55
Message-Id: 200706051543.26157.dirk.heinrichs.ext@nsn.com
1 Am Dienstag, 5. Juni 2007 schrieb ext Alan McKinnon:
2 > On Tuesday 05 June 2007, sean wrote:
3 > > Trying to create a permanent link as such
4 >
5 > /dev does not exist on a disk, it is created on the fly by udev, so any
6 > hard links you make are never written to persistent storage
7 >
8 > You will need to create a udev rule for this
9 >
10 > Something like:
11 >
12 > # cdrom symlinks and other good cdrom naming
13 > KERNEL=="sr[0-9]*|hd[a-z]|pcd[0-9]*", ACTION=="add",
14 > IMPORT{program}="cdrom_id --export $tempnode"
15 > ENV{ID_CDROM}=="?*", GROUP="cdrom"
16 > # assign cdrom-permission also to associated generic device (for
17 > cd-burning ...)
18 > KERNEL=="sg[0-9]*", ACTION=="add", ATTRS{type}=="4|5", GROUP="cdrom"
19 >
20 > in /etc/udev/rules.d/50-udev.rules
21
22 ...and read http://www.reactivated.net/writing_udev_rules.html for the
23 details.
24
25 Bye...
26
27 Dirk
28 --
29 Dirk Heinrichs | Tel: +49 (0)162 234 3408
30 Configuration Manager | Fax: +49 (0)211 47068 111
31 Capgemini Deutschland | Mail: dirk.heinrichs@×××××××××.com
32 Wanheimerstraße 68 | Web: http://www.capgemini.com
33 D-40468 Düsseldorf | ICQ#: 110037733
34 GPG Public Key C2E467BB | Keyserver: www.keyserver.net

Attachments

File name MIME type
signature.asc application/pgp-signature