“eject” command not working
Dec. 2nd, 2016 09:26 ameject: unable to find or open device for: `cdrom'
input 6th November 2011, 05:33 PM When I type eject in a terminal I get this error:eject: unable to find or open device for: `cdrom' But in Gnome it works fine. How can I solve this problem. Thanks
# eject /dev/sr0
input 7th November 2011, 11:57 AM What you have is a missing symbolic link "cdrom->sr0" in /dev. Thanks for the reply. But how can I make a symbolic link. Thanks
"man ln" A better reference is provided by "info ln".
The reference documentation will tell you about it. The short form is to use a root login command line and the sequence:
cd /dev
ln -s sr0 cdrom
The first command puts the working directory in /dev, the second creates the symbolic link.
This must be done as root as only root can create files in /dev
input 7th November 2011, 02:31 PM Thank you for explaning this. It works :) ---------- Post added at 02:31 PM ---------- Previous post was at 02:01 PM ---------- I still have the same problem with a reboot. The message is: eject: tried to use `/media/cdrom' as device name but it is no block device eject: unable to find or open device for: `cdrom
jpollard 7th November 2011, 03:11 PM Are you using Fedora 15 or 16? If so, report it as a bug. (F15 has /dev being a memory resident filesystem managed by udev.
And that makes the simple solutions impossible. Somewhere there is a directive missing from the udev configuration to have this recreated on each boot. ..
http://forums.fedoraforum.org/archive/index.php/t-271899.html
“eject” command not working
~$ eject -v
eject: using default device `cdrom' eject: device name is `cdrom' eject: expanded name is `/media/cdrom' eject: `/media/cdrom' is a link to `/media/cdrom0' eject: `/media/cdrom0' is not mounted eject: `/media/cdrom0' is not a mount point eject: tried to use `/media/cdrom0' as device name but it is no block device eject: unable to find or open device for: `cdrom'
The tray doesnt open.. How do I open tray using command line? I am using Ubuntu 9.10 64bit and I have no dvd inserted in the DVDROM...
Re:
Depending on your device and how it is set up one of those commands should work:
eject /dev/cdrom
eject /dev/cdrw
eject /dev/dvd
eject /dev/dvdrom
eject /dev/dvdrw
If none of these work then look for the correct device in the list generated by this command:
ls -l /dev | grep '\->'
You can also specify the raw device:
eject /dev/sda
eject /dev/hdd
http://superuser.com/questions/124856/eject-command-not-working
input 6th November 2011, 05:33 PM When I type eject in a terminal I get this error:eject: unable to find or open device for: `cdrom' But in Gnome it works fine. How can I solve this problem. Thanks
# eject /dev/sr0
input 7th November 2011, 11:57 AM What you have is a missing symbolic link "cdrom->sr0" in /dev. Thanks for the reply. But how can I make a symbolic link. Thanks
"man ln" A better reference is provided by "info ln".
The reference documentation will tell you about it. The short form is to use a root login command line and the sequence:
cd /dev
ln -s sr0 cdrom
The first command puts the working directory in /dev, the second creates the symbolic link.
This must be done as root as only root can create files in /dev
input 7th November 2011, 02:31 PM Thank you for explaning this. It works :) ---------- Post added at 02:31 PM ---------- Previous post was at 02:01 PM ---------- I still have the same problem with a reboot. The message is: eject: tried to use `/media/cdrom' as device name but it is no block device eject: unable to find or open device for: `cdrom
jpollard 7th November 2011, 03:11 PM Are you using Fedora 15 or 16? If so, report it as a bug. (F15 has /dev being a memory resident filesystem managed by udev.
And that makes the simple solutions impossible. Somewhere there is a directive missing from the udev configuration to have this recreated on each boot. ..
http://forums.fedoraforum.org/archive/index.php/t-271899.html
“eject” command not working
~$ eject -v
eject: using default device `cdrom' eject: device name is `cdrom' eject: expanded name is `/media/cdrom' eject: `/media/cdrom' is a link to `/media/cdrom0' eject: `/media/cdrom0' is not mounted eject: `/media/cdrom0' is not a mount point eject: tried to use `/media/cdrom0' as device name but it is no block device eject: unable to find or open device for: `cdrom'
The tray doesnt open.. How do I open tray using command line? I am using Ubuntu 9.10 64bit and I have no dvd inserted in the DVDROM...
Re:
Depending on your device and how it is set up one of those commands should work:
eject /dev/cdrom
eject /dev/cdrw
eject /dev/dvd
eject /dev/dvdrom
eject /dev/dvdrw
If none of these work then look for the correct device in the list generated by this command:
ls -l /dev | grep '\->'
You can also specify the raw device:
eject /dev/sda
eject /dev/hdd
http://superuser.com/questions/124856/eject-command-not-working