LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-12-2003, 06:31 PM   #1
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Rep: Reputation: 30
Can't unmount CD-ROM drive


Hi all,

I am trying to unmount the CD that is in my cd drive and when I type: umount /mnt/cdrom (which is the mount point), I get an error saying the device is busy. How can I unmount this? Thx

Chris
 
Old 05-12-2003, 06:51 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
Try closing the shell window and opening a new shell. Works for me. Not sure why we get the error though.

And umount the device, not the mount point like so..

umount /dev/cdrom
 
Old 05-12-2003, 07:01 PM   #3
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
No shell "window" to close. This is all command line, run level 3. I'll try to unmount the device itself... Thx

Chris

PS. That didn't work either. How can I forcably eject the CD anyway? Pressing the button on the drive don't work.

Last edited by WorldBuilder; 05-12-2003 at 07:14 PM.
 
Old 05-12-2003, 07:14 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,923

Rep: Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747
Assuming your CDROM has an fstab entry it doesn't matter whether you use the device or the mount point.

The umount command will fail if any process is using the device. i.e. if your shell is viewing the contents of the cdrom.

If you are presently viewing the contents of the CDROM just cd to another directory and then unmount.
 
Old 05-12-2003, 07:15 PM   #5
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
Did you make sure that your 'present working directory' is not /mnt/cdrom?

You can't umount it if you are in it.

Just type in 'cd' to go to your home directory and try it again.

(Maybe you already tried this, but you didn't specify in your post.)
 
Old 05-12-2003, 07:16 PM   #6
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
Sorry, you're right. I didn't previously post it, but I tried that. I am in / and I still can't unmount it.

Chris
 
Old 05-12-2003, 07:24 PM   #7
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
Quote:
Originally posted by michaelk
The umount command will fail if any process is using the device.

Have you looked through 'ps -A', or someplace, to see if a some process might be running that's keeping the thing busy?

I guess you could jab a big paper clip into the little hole in the front and force it out.
 
Old 05-12-2003, 07:27 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,923

Rep: Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747
What kind of stuff were you doing? If you look a couple of threads down the samething happened to another person who is also using RH 8.

Might want to try rebooting.
 
Old 05-12-2003, 07:33 PM   #9
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
I had to reboot a few hours ago when this happened, and I just don't like the idea of having to do that every time I use a CD. All I did from the CD was install the RPM for sendmail. I have checked with ps -ef | more and don't see anything still accessing it. I'll look at the other post, but does anyone else have any suggestions? These are all good thoughts and should be working, but they are not. Damn RH! Argh!

Chris

PS. I read the other post. Nothing new unfortunately, and didn't help. I'm just gonna reboot this thing, argh... Thanks guys

Last edited by WorldBuilder; 05-12-2003 at 07:57 PM.
 
Old 08-29-2004, 12:21 AM   #10
ssokolow
LQ Newbie
 
Registered: Aug 2004
Location: Canada
Posts: 24

Rep: Reputation: 16
Grab a copy of lsof and then try using
Code:
lsof | grep <device>
Be sure to check both the device node and the mount point.
I was having trouble because it wouldn't unmount under KDE.
I found the solution while using /mnt/cdrom as <device>

The second column is the PID of the offending process.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot unmount dvd drive lefty.crupps Linux - Software 5 10-27-2005 06:00 PM
Unmount USB Drive stevsom Linux - General 2 05-15-2005 12:21 AM
can't unmount CD ROM moborichard Linux - Software 1 04-02-2005 09:00 PM
CD-ROM wont unmount unless logged in as root redsmoke Debian 3 12-13-2004 07:09 AM
flash drive won't unmount MiniMe001 Linux - Software 3 11-12-2004 08:36 PM


All times are GMT -5. The time now is 07:14 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