eject: unable to find or open device for: `cdrom'

Mikkel L. Ellertson mikkel at infinity-ltd.com
Tue Sep 9 14:18:05 UTC 2008


Paul Smith wrote:
> On Tue, Sep 9, 2008 at 1:09 AM, Mikkel L. Ellertson
> 
> Thanks, Mikkel, but my /etc/udev/rules.d/70-persistent-cd.rules does
> not look as you describe:
> 
> # more /etc/udev/rules.d/70-persistent-cd.rules
> # This file was automatically generated by the /lib/udev/write_cd_rules
> # program, probably run by the cd-aliases-generator.rules rules file.
> #
> # You can modify it, as long as you keep each rule on a single line
> # and set the $GENERATED variable.
> 
> # DVD_RW_ND-3520A (pci-0000:04:06.0-scsi-0:0:1:0)
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:04:06.0-scsi-0:0:1:0",
> SYMLINK+="cdrom", ENV{GENERATED}="1"
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:04:06.0-scsi-0:0:1:0",
> SYMLINK+="cdrw", ENV{GENERATED}="1"
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:04:06.0-scsi-0:0:1:0",
> SYMLINK+="dvd", ENV{GENERATED}="1"
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:04:06.0-scsi-0:0:1:0",
> SYMLINK+="dvdrw", ENV{GENERATED}="1"
> #  (pci-0000:00:1f.2-scsi-1:0:1:0)
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0",
> SYMLINK+="cdrom1", ENV{GENERATED}="1"
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0",
> SYMLINK+="cdrw1", ENV{GENERATED}="1"
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0",
> SYMLINK+="dvd1", ENV{GENERATED}="1"
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0",
> SYMLINK+="dvdrw1", ENV{GENERATED}="1"
> #
> 
> Paul
> 
It looks like you changed where the the drive was plugged in. I
guess my explanation left something to be desired. I should have
provided an example to make it clear what I was talking about. In
any case, you can change it as shown below.

Change it to:

# more /etc/udev/rules.d/70-persistent-cd.rules
# This file was automatically generated by the /lib/udev/write_cd_rules
# program, probably run by the cd-aliases-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line
# and set the $GENERATED variable.

# DVD_RW_ND-3520A (pci-0000:00:1f.2-scsi-1:0:1:0)
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0",
 SYMLINK+="cdrom", ENV{GENERATED}="1"

ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0",
 SYMLINK+="cdrom0", ENV{GENERATED}="1"

ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0",
 SYMLINK+="cdrw0", ENV{GENERATED}="1"

ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0",
 SYMLINK+="dvd0", ENV{GENERATED}="1"

ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0",
 SYMLINK+="dvdrw0", ENV{GENERATED}="1"

You will have to remove the line wrap cause by the long lines. I put
a blank line between rules to make that easier. One of the comments
is also wrapped, but that is easy to see. Do you understand the
change I was talking about?

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080909/9213d983/attachment-0001.sig>


More information about the fedora-list mailing list