LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-24-2003, 09:41 PM   #1
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Rep: Reputation: 30
Cd won't eject


I have read some other posts about the cd not ejecting and they didn't seem to help me. My cdrom works fine and everything, but when its not in use, I can't eject it. It says:
umount: /mnt/cdrom: device is busy
eject: unmount of `/dev/cdrom' failed

and nothings busy! I can't eject the cd with the button on the player either. If you can help at all I apreciate it. Thanks.
 
Old 11-24-2003, 10:08 PM   #2
plbowler
Member
 
Registered: Nov 2003
Distribution: Mandrake 10 (KDE)
Posts: 53

Rep: Reputation: 15
make sure you have permission to unmount the CD, sometimes the permission is set to Root by default, Login as root and change the permissions.
 
Old 11-24-2003, 10:35 PM   #3
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
Also, make sure you aren't in /mnt/cdrom.
You have to be out of the directory before it will eject.
 
Old 11-25-2003, 05:05 AM   #4
jin.liu
LQ Newbie
 
Registered: May 2003
Posts: 17

Rep: Reputation: 0
Yes ,you can be /mnt/cdrom or below /mnt/cdrom.
 
Old 11-25-2003, 01:17 PM   #5
biggyfries
Member
 
Registered: Apr 2003
Distribution: RH 8/KDE3.1
Posts: 33

Rep: Reputation: 15
re

i had this happen to me, too.

i was logged in as root (i know, i know...), and i was trying to isntall a package from the fedora cd #1. it couldnt read the cd (yes, it was dirt- and scratch-free), and when i tried to eject it, i got the same error. Only cd it has happened to so far.

i rebooted, but it was still locked. i rebooted again, and ejected while booting fedora.

kinda wierd.

just my 2 cents.
 
Old 11-25-2003, 01:31 PM   #6
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Do..
fuser -m -v /mnt/cdrom
That will tell you what's using the cd. If you just want to kill them all do
fuser -k -m /mnt/cdrom
And they will all be dead This as root of course. After that umount will work just fine.
 
Old 11-26-2003, 08:09 PM   #7
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
fuser command doesn't exist in bash...
 
Old 11-26-2003, 08:10 PM   #8
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
ooo, I switch to csh and I found it
 
Old 11-26-2003, 08:21 PM   #9
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
It does, I use it
 
Old 11-27-2003, 05:56 AM   #10
arthur1968
Member
 
Registered: Aug 2003
Location: Navacerrada, MADRID (Spain)
Distribution: Debian (latest); Fedora Core 1
Posts: 63

Rep: Reputation: 15
This happened to me as well.

I can use the command provided, that is no problem, but

Should this not be considered as a BUG?.

Cheers,

Arthur1968
 
Old 11-27-2003, 03:02 PM   #11
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Nopes, what happens is you have programs that are using the CD.
Unlike windows you can't just remove it, and leave those programs hanging. Partiailly because of how Linux also treats any normal disk drive too, and how it writes to them.
fuser -k -m <drive>
kills all the programs that are using that disk, then it can safely be unmounted.
 
Old 11-27-2003, 11:38 PM   #12
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
are you saying this works in bash? Because on my fedora, bash doesn't recognize the fuser command. After switching the shell to csh it finds it.
 
Old 11-28-2003, 08:22 AM   #13
jwb
Member
 
Registered: Nov 2003
Location: NC, USA
Distribution: Fedora, Red Hat, Mandrake
Posts: 38

Rep: Reputation: 15
Quote:
Originally posted by techrolla
are you saying this works in bash? Because on my fedora, bash doesn't recognize the fuser command. After switching the shell to csh it finds it.
fuser is in /sbin, which is not in the default path for bash. You can run it by using /sbin/fuser.
 
Old 11-29-2003, 08:45 PM   #14
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Original Poster
Rep: Reputation: 30
thanks
 
  


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
VCD does not eject even eject button pressed ic_torres Linux - Software 4 12-01-2005 05:40 PM
cd eject? mithereal Debian 6 08-09-2005 09:36 AM
can't eject a cd hraposo Slackware 9 05-01-2005 06:44 PM
CD won't eject... Vermis Fedora 4 02-03-2005 09:36 PM
CD Won't Eject With "eject" Command Dr. Ephemeron Slackware 13 11-13-2003 12:27 AM


All times are GMT -5. The time now is 01:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration