to eject cd from drive

Asked by john

Dell Inspiron 6400 laptop with Ubuntu 8.04

In put a cd with photos that had been burnt on Vista. The cd opened but the command to eject does not eject the cd. Nor does the button on the drive open the tray - there is a whirring sound and nothing happens afterwards.

On shutdown and restart the cd drive spins and the icon opens on the desktop. I can read the contents. Again the eject does not work. The icon disappears from the desktop. If I go to the drive icon on Computer, and right click, I get the message that thgere is no media in the drive

A physical opening using a paperclip was ineffective.

Please can someone help me to get the cd out of the drive?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Jonas Jabs
Solved:
Last query:
Last reply:
Revision history for this message
Luky Winarto (luckyborneo) said :
#1

Try this on terminal:
$ sudo eject

hope that can help you...

Revision history for this message
Jonas Jabs (jonas-flinux) said :
#2

try to press the eject button right after the pc is turned on and it begins booting. that always works with me

Revision history for this message
john (jaytee1937) said :
#3

Thanks for the rapid response. Sadly, Luky, sudo eject produced no response not even a whirr. I was hopeful of your suggestion, Jonas, especially when the green light flashed on the front of the drive, but, apart from the whirr, nothing happened, and the green light went out. The icon was not displayed on the desktop.

Revision history for this message
Jonas Jabs (jonas-flinux) said :
#4

try to do it per shell( console):
"sudo umount -l /dev/hdc && eject"

if that doesnt work its probably not even mounted
as an alternative you could try to load into a live session per ubuntu live cd and see if it opens

Revision history for this message
john (jaytee1937) said :
#5

Thank you for the latest suggestion. The terminal command gets this response: bash: sudo umount -l /dev/hdc && eject: No such file or directory. Am sorry I am not sure how to load into a live session per ubuntu live cd.

Revision history for this message
Jonas Jabs (jonas-flinux) said :
#6

forget my hint on the live cd. that was just a stupid joke:)
could you please give some information about your file system?
open a shell and type:
gedit /etc/fstab

copy the content of this file and show it here.
this let us see all devices mounted

Revision history for this message
john (jaytee1937) said :
#7

here is the content:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=d108338d-e31c-48ba-89e2-d7e3283c669a / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=40e91531-6972-44d0-a60e-adbe15f015c2 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
UUID=68a1956a-1e9a-4e59-b508-890991283539 /boot ext3 defaults 0 0

# Generated by Automatix
/dev/sda2 /media/sda2 vfat iocharset=utf8,umask=000 0 0
## End of Automatix mounted partitions

thanks for helping

Revision history for this message
Best Jonas Jabs (jonas-flinux) said :
#8

ok could you do the same again with /etc/mtab?

by the way...
not sure if that works:
please do a back up of your fstab file( it was you already opened with /etc/fstab) and edit one line:
the part udf,iso9660 user,noauto 0 0 changes into:
udf,iso9660 user,noauto,exec 0 0
hopefully it works after reboot now
if not just reset the line as it was before.
good luck

Revision history for this message
john (jaytee1937) said :
#9

I found that permission was refused for me to alter the fsatb file. So after that, I thought that the problem might be a physical one, and had the optical drive removed and the cd taken out. After installation the computer, drive and the system were tested and all three have continued to work correctly. Thank you for the help offered.