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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 9, 2008 at 1:09 AM, Mikkel L. Ellertson
<mikkel@xxxxxxxxxxxxxxxx> wrote:
>> The problem has partially returned. In my case, I have
>>
>> # ls /dev/cdrom*
>> /dev/cdrom1
>> #
>>
>> And I do the following:
>>
>> # cd /dev
>> # ln -s ./cdrom1 cdrom
>>
>> that solves the problem until a new reboot. After a new reboot, I have
>> to apply the solution above explained; otherwise, I get
>>
>> $ eject
>> eject: unable to find or open device for: `cdrom'
>> $
>>
>> What can I do to make this solution permanent, i.e., not destroyed by a reboot?
>>
> You may have to edit /etc/udev/rules.d/70-persistent-cd.rules and
> make sure that the rules for creating the cdrom and cdrom0 are
> correct. In your case, I suspect that the rules for cdrom1 should be
> for cdrom0. Depending on the drive, it may also have dvd and dvdrw
> rules.
>
> The fix is fairly simple - comment out, or delete the <devicd>0
> rules, change the <device>1 rules to <device>0, and copy the first
> of the old cdrom1 (new cdrom0) rules and change cdrom1 to cdrom in
> the copied rule.
>
> When you reboot, all should be fine.

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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux