Re: [gentoo-user] perm link
Hi, On Tue, 05 Jun 2007 09:09:34 -0400 sean [EMAIL PROTECTED] 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 -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] perm link
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: [EMAIL PROTECTED] Wanheimerstraße 68 | Web: http://www.capgemini.com D-40468 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] perm link
Hi, On Tue, 5 Jun 2007 15:32:07 +0200 Alan McKinnon [EMAIL PROTECTED] 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 -- [EMAIL PROTECTED] mailing list