Re: eject command fails to eject cd

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

On 06/07/2012 05:22 PM, Ed Greshko wrote:
On 06/08/2012 08:15 AM, JD wrote:
On 06/07/2012 03:49 PM, Ed Greshko wrote:
On 06/08/2012 05:54 AM, JD wrote:
the eject command in f16 says
# eject
eject: unable to find or open device for: `cdrom'

f16 has no cdrom or dvd entry in /dev,
so after each boot I have to manually
create the symlink to sr0.

Is there a way to make the symlinks permanent in /dev?

Do you happen to have a /dev/cdrom1?
lrwxrwxrwx 1 root root 3 Jun  7 15:55 /dev/cdrom1 ->  sr0

but the eject command wants /dev/cdrom.
What are the contents of, or do you have, the


The stock f16 /etc/udev/rules.d/70-persistent-cd.rules   file contents are:

# This file was automatically generated by the /lib/udev/write_cd_rules
# program, 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.

# Slimtype_DVD_A_DS8A1P (pci-0000:00:02.5-scsi-1:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:02.5-scsi-1:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:02.5-scsi-1:0:0:0", SYMLINK+="cdrw", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:02.5-scsi-1:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:02.5-scsi-1:0:0:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"

# Slimtype_DVD_A_DS8A1P (pci-0000:00:02.5-scsi-0:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:02.5-scsi-0:0:0:0", SYMLINK+="cdrom1", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:02.5-scsi-0:0:0:0", SYMLINK+="cdrw1", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:02.5-scsi-0:0:0:0", SYMLINK+="dvd1", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:02.5-scsi-0:0:0:0", SYMLINK+="dvdrw1", ENV{GENERATED}="1"

2 choices....

alias eject='eject /dev/cdrom1'


modify the lines in 70-persistent-cd.rules to swap the definitions.

OK, I modified the file, but the comment also says:
# You can modify it, as long as you keep each rule on a single
# line, and set the $GENERATED variable.

So, where should the GENERATED variable be defined
and to what value?
users mailing list
To unsubscribe or change subscription options:
Have a question? Ask away:

Photo 4 Less

[Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Find Someone Special]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

Add to Google Powered by Linux