LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2005, 08:25 PM   #1
Gald3r
LQ Newbie
 
Registered: Sep 2005
Location: Athens, Greece
Distribution: RedHat 9
Posts: 24

Rep: Reputation: 15
The cd-rom drive is not ejecting


Ok, this may make you laugh because it can be very simple but my cd-rom is not ejecting the cd when it has one in it (I push the drive's button but nothing happens). I opened the /mnt/cdrom at the promp and entered the command eject but it still doesn't work. Is this for security reasons..? What to do?

Last edited by Gald3r; 09-20-2005 at 08:28 PM.
 
Old 09-20-2005, 08:32 PM   #2
brainiac
Member
 
Registered: Jan 2005
Location: middle of a cornfield, IL
Distribution: Kanotix HD Install, Debian Testing, XP Pro,Vista RC1
Posts: 145

Rep: Reputation: 15
You may have to do a umount, notice no "n", to unmount the device. Such as umount /dev/cdrom to get it to release it's hold on the drive.
 
Old 09-20-2005, 08:49 PM   #3
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
You will need to get out of /mnt/cdrom before you will be allowed to umount, though.
 
Old 09-21-2005, 02:34 AM   #4
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,841

Rep: Reputation: 260Reputation: 260Reputation: 260
I agree with everyone
 
Old 09-21-2005, 02:46 AM   #5
logosys
Member
 
Registered: Jul 2005
Location: Texas
Distribution: RHEL4 - ES
Posts: 178

Rep: Reputation: 31
yeah, make sure not to include the 'n' - it was removed by Bell Labs to save you time

Because we all know, that extra keystroke would send productivity through the fracking floor.


Also, you can use the eject command - try
Code:
#eject /dev/cdrom

Last edited by logosys; 09-21-2005 at 02:48 AM.
 
Old 09-21-2005, 08:49 AM   #6
Sm1ler
Member
 
Registered: Apr 2004
Location: UK
Distribution: Fedora Core (all), Knoppix, RHEL, Centos, Debian
Posts: 100

Rep: Reputation: 16
you can also have problems ejecting bad/scratchy media especially if you have tried and failed to open a file or app from /dev/cdrom or /media/cdrom I remember having to force a unmount on a number of occasions.

#eject should work given some time if not man umount and look for the force option.
 
Old 09-21-2005, 10:25 PM   #7
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Alternatively, you could use a paper clip.
 
Old 03-24-2006, 01:20 AM   #8
carspidey
Member
 
Registered: Nov 2005
Location: US
Distribution: Debian
Posts: 32

Rep: Reputation: 15
that is why i carry one on my key chain now...but i hate doing that though...
if someone solves this problems please post....
 
Old 03-24-2006, 01:39 AM   #9
mbreith
Member
 
Registered: Feb 2006
Location: oregon
Distribution: PIII fedora2 | P4 fedora2 | Thinkpad fedora2
Posts: 54

Rep: Reputation: 15
First, make sure that nothing is trying to access the drive. Close file browsers or cd out of the cdrom directory.

Then
Code:
$ umount /mnt/cdrom
The mount point for your drive may be different. I've seen /media/cdrom before also. Check fstab. you may also need root privileges.

If that doesn't work, try
Code:
$ umount -l /mnt/cdrom
 
Old 03-24-2006, 03:45 AM   #10
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
You can't be using the drive when you try to umount it. i.e. you can't be in the /mnt/cdrom directory (can't have it open in a terminal or konqueror window)
 
Old 03-31-2006, 12:33 AM   #11
carspidey
Member
 
Registered: Nov 2005
Location: US
Distribution: Debian
Posts: 32

Rep: Reputation: 15
i do get to umount my cdrom... now the problem is that it won't eject it...
That's a different problem now, one i have not figureed out yet...
Any suggestions on that one?
 
Old 03-31-2006, 12:44 AM   #12
DanTaylor
Member
 
Registered: Jan 2006
Distribution: Debian Sarge
Posts: 265

Rep: Reputation: 30
Did the umount give out any error output? If not-
Enter the command ps -f -A This will show you a (normally) fairly large list of processes currently running on your computer. Look for one that contains /tmp/audiocd or anything that has to do with using your cdrom. Kill the process, and then try ejecting your cdrom. Be very careful with this. Make sure(ask) that any process you are trying to kill is not a vital system process.
 
Old 03-31-2006, 12:47 AM   #13
carspidey
Member
 
Registered: Nov 2005
Location: US
Distribution: Debian
Posts: 32

Rep: Reputation: 15
what would happen if i kill a system process... won't i get it up and running after my next reboot????
Is there another safe way of doing this...???
I don't get any error messages after the unmounting...the thing is that i can't eject the cdrom... I can't even push the button to have the drive open...the only way is either restarting a session or with a paper clip....
 
Old 03-31-2006, 12:50 AM   #14
DanTaylor
Member
 
Registered: Jan 2006
Distribution: Debian Sarge
Posts: 265

Rep: Reputation: 30
Just post any processes you see that have the to do with the cdrom, and we can tell you. If you accidentally kill the wrong system process, you can wreak havok with your personal and or system files.(depending if you are su or just reg. user) I have had this problem before, and the process on my computer(Debian Sarge) was a process containing the words /tmp/audiocd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ejecting cd rom minm Linux - Newbie 9 08-23-2005 12:04 PM
External USB DVD combo drive keep ejecting by itself nnsg Linux - Hardware 0 06-24-2004 11:05 AM
Mandrake Linux 10, Ejecting the CD-ROM while running WineX bloodredbath Linux - Hardware 3 04-09-2004 03:49 PM
cd-rom drive working in knoppix Hard drive installation dj_dubbbz Linux - Newbie 5 03-02-2004 11:58 AM
CD-ROM not ejecting xtree Linux - Software 3 02-20-2004 09:18 PM


All times are GMT -5. The time now is 01:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration