public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] perm link
@ 2007-06-05 13:09 sean
  2007-06-05 13:32 ` Hans-Werner Hilse
       [not found] ` <200706051532.07248.alan@linuxholdings.co.za>
  0 siblings, 2 replies; 4+ messages in thread
From: sean @ 2007-06-05 13:09 UTC (permalink / raw
  To: gentoo-user

Trying to create a permanent link as such
"ln /dev/sr1 /dev/dvd"
And it works fine, but when the system is rebooted, link gone.

What am I doing wrong?

			Thanks
			Sean
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] perm link
  2007-06-05 13:09 [gentoo-user] perm link sean
@ 2007-06-05 13:32 ` Hans-Werner Hilse
       [not found] ` <200706051532.07248.alan@linuxholdings.co.za>
  1 sibling, 0 replies; 4+ messages in thread
From: Hans-Werner Hilse @ 2007-06-05 13:32 UTC (permalink / raw
  To: gentoo-user

Hi,

On Tue, 05 Jun 2007 09:09:34 -0400 sean <tech.junk@verizon.net> wrote:

> Trying to create a permanent link as such
> "ln /dev/sr1 /dev/dvd"
> And it works fine, but when the system is rebooted, link gone.
> 
> What am I doing wrong?

low level: You're creating the link on a tmpfs. This is by definition
gone by a reboot.

high level: You're not using udev's means to create (symbolic) links
for devices, which you should. Add a rule that does this for you...
BTW: Why isn't gentoo creating this link automatically for
you? usually 50-udev.rules cares for that by
calling /lib/udev/cdrom_id. If that program doesn't recognize your DVD
drive, you might certainly file a bug...

-hwh
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] perm link
       [not found] ` <200706051532.07248.alan@linuxholdings.co.za>
@ 2007-06-05 13:43   ` Dirk Heinrichs
  2007-06-05 13:48   ` Hans-Werner Hilse
  1 sibling, 0 replies; 4+ messages in thread
From: Dirk Heinrichs @ 2007-06-05 13:43 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1184 bytes --]

Am Dienstag, 5. Juni 2007 schrieb ext Alan McKinnon:
> On Tuesday 05 June 2007, sean wrote:
> > Trying to create a permanent link as such
>
> /dev does not exist on a disk, it is created on the fly by udev, so any
> hard links you make are never written to persistent storage
>
> You will need to create a udev rule for this
>
> Something like:
>
> # cdrom symlinks and other good cdrom naming
> KERNEL=="sr[0-9]*|hd[a-z]|pcd[0-9]*", ACTION=="add",
> IMPORT{program}="cdrom_id --export $tempnode"
> ENV{ID_CDROM}=="?*", GROUP="cdrom"
> # assign cdrom-permission also to associated generic device (for
> cd-burning ...)
> KERNEL=="sg[0-9]*", ACTION=="add", ATTRS{type}=="4|5", GROUP="cdrom"
>
> in /etc/udev/rules.d/50-udev.rules

...and read http://www.reactivated.net/writing_udev_rules.html for the 
details.

Bye...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Wanheimerstraße 68      | Web:  http://www.capgemini.com
D-40468 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] perm link
       [not found] ` <200706051532.07248.alan@linuxholdings.co.za>
  2007-06-05 13:43   ` Dirk Heinrichs
@ 2007-06-05 13:48   ` Hans-Werner Hilse
  1 sibling, 0 replies; 4+ messages in thread
From: Hans-Werner Hilse @ 2007-06-05 13:48 UTC (permalink / raw
  To: gentoo-user

Hi,

On Tue, 5 Jun 2007 15:32:07 +0200 Alan McKinnon
<alan@linuxholdings.co.za> wrote:

> You will need to create a udev rule for this
> 
> Something like:
> 
> # cdrom symlinks and other good cdrom naming
> KERNEL=="sr[0-9]*|hd[a-z]|pcd[0-9]*", ACTION=="add", 
> IMPORT{program}="cdrom_id --export $tempnode"
> ENV{ID_CDROM}=="?*", GROUP="cdrom"
> # assign cdrom-permission also to associated generic device (for 
> cd-burning ...)
> KERNEL=="sg[0-9]*", ACTION=="add", ATTRS{type}=="4|5", GROUP="cdrom"
> 
> in /etc/udev/rules.d/50-udev.rules

It should be already there, shouldn't it?

In that case, probably /lib/udev/cdrom_id doesn't catch it, so just
adding the above lines another time won't help. Of course, a simple
rule like

KERNEL=="sg0", SYMLINK="dvd"

should be enough. And you certainly shouldn't edit distribution
provided udev rules w/o good reason, but rather create a new rules file
below /etc/udev/rules.d (so that further distribution updates of udev
don't require you to merge config files).

-hwh
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-06-05 13:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-05 13:09 [gentoo-user] perm link sean
2007-06-05 13:32 ` Hans-Werner Hilse
     [not found] ` <200706051532.07248.alan@linuxholdings.co.za>
2007-06-05 13:43   ` Dirk Heinrichs
2007-06-05 13:48   ` Hans-Werner Hilse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox