linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cdrom link not created
@ 2004-03-28 16:55 Treeve Jelbert
  2004-03-28 17:06 ` Marco d'Itri
  2004-03-28 17:25 ` Kay Sievers
  0 siblings, 2 replies; 3+ messages in thread
From: Treeve Jelbert @ 2004-03-28 16:55 UTC (permalink / raw)
  To: linux-hotplug

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am running udev-023 on /dev


the cdrom symlink is not created by the following rule

# if this is a ide cdrom, name it the default name, and create a symlink to 
cdrom
BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", 
RESULT="cdrom", NAME="%k", SYMLINK="cdrom"


but when I ran udev on /udev, it did create the link


All other devices and symlinks are ok


If I create a symlink by hand, the device works ok
# ls -l cd*
lrwxrwxrwx  1 root root 3 2004-03-28 18:52 cdrom -> hdc
lrwxrwxrwx  1 root root 3 2004-03-28 18:31 cdrw -> sr0

Any thoughts on this?




Regards,  Treeve 

- -- 
PGP Key ID: AB929B24
PGP Key Fingerprint:31D9 D22F 42E6 F545 662E  AB6F 9697 34C5 AB92 9B24 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAZwOTlpc0xauSmyQRAsXlAJ9r87B1tGDc4T20DTccwTNwslXcRgCffsFw
0L4B90HTAorpxjY0zWAv8gc—CT
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&opÃk
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: cdrom link not created
  2004-03-28 16:55 cdrom link not created Treeve Jelbert
@ 2004-03-28 17:06 ` Marco d'Itri
  2004-03-28 17:25 ` Kay Sievers
  1 sibling, 0 replies; 3+ messages in thread
From: Marco d'Itri @ 2004-03-28 17:06 UTC (permalink / raw)
  To: linux-hotplug

On Mar 28, Treeve Jelbert <treeve01@pi.be> wrote:

> the cdrom symlink is not created by the following rule
> 
> # if this is a ide cdrom, name it the default name, and create a symlink to 
> cdrom
> BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", 
> RESULT="cdrom", NAME="%k", SYMLINK="cdrom"

This rule is broken anyway, because a system may have e.g. a cd reader
and a burner.

On my system I use a standalone rule to associate a generic symlink to
the right hardware device:

BUS="ide", ID="1.0", SYMLINK="cdrom"

I think that the distribution installer should create such rules for
available devices.

-- 
ciao, |
Marco | [5407 maOqbOgghlcDQ]


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: cdrom link not created
  2004-03-28 16:55 cdrom link not created Treeve Jelbert
  2004-03-28 17:06 ` Marco d'Itri
@ 2004-03-28 17:25 ` Kay Sievers
  1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2004-03-28 17:25 UTC (permalink / raw)
  To: linux-hotplug

On Sun, Mar 28, 2004 at 06:55:39PM +0200, Treeve Jelbert wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I am running udev-023 on /dev
> 
> 
> the cdrom symlink is not created by the following rule
> 
> # if this is a ide cdrom, name it the default name, and create a symlink to 
> cdrom
> BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", 
> RESULT="cdrom", NAME="%k", SYMLINK="cdrom"
> 
> 
> but when I ran udev on /udev, it did create the link
> 
> 
> All other devices and symlinks are ok
> 
> 
> If I create a symlink by hand, the device works ok
> # ls -l cd*
> lrwxrwxrwx  1 root root 3 2004-03-28 18:52 cdrom -> hdc
> lrwxrwxrwx  1 root root 3 2004-03-28 18:31 cdrw -> sr0
> 
> Any thoughts on this?

May be your timezone is still wrong :)
No, please try RESULT="cdrom*". Seems we lost the newline removal before
we compare the strings.

thanks,
Kay


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2004-03-28 17:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-28 16:55 cdrom link not created Treeve Jelbert
2004-03-28 17:06 ` Marco d'Itri
2004-03-28 17:25 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).