LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-10-2003, 11:45 AM   #1
primal-id
LQ Newbie
 
Registered: May 2003
Location: Ohio
Distribution: Ubuntu
Posts: 16

Rep: Reputation: 0
can't unmount


I'm using red hat 8.0. After about 2 cd's being inserted into cd-rom i seem to have a problem ejecting the 3rd cd. i've tired right clicking on cd-rom and telling it to unmount but that doesn't change anything. I've also tried to do the typed command but that doesn't work either. Maybe i'm using the wrong command (i can't remember what i typed). Has anyone had this problem and how did you get it to eject?
 
Old 05-10-2003, 12:08 PM   #2
d_lake
Member
 
Registered: Feb 2003
Location: Alabama
Distribution: Slackware
Posts: 43

Rep: Reputation: 15
I think i had the same problem, I think its because of rebooting with a cd mounted. But I did "umount /mnt/cdrom" doesnt work and tried just ejecting it. So i went into the /etc/mtab file and deleted the line with the cdrom mounted. That worked for me.

 
Old 05-10-2003, 12:21 PM   #3
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Tru commanding:

eject

 
Old 05-10-2003, 12:37 PM   #4
chem1
Member
 
Registered: Jun 2002
Location: White House, Washignton DC
Distribution: Red Hat 9
Posts: 270

Rep: Reputation: 30
Guys ,
remeber one thing. If you have an open terminal window for the cd (meaning you are brosing the cd in a terminal window), Linux will NOT let you open or unmount the cd.
Check this and let us know..


Hope that helps...
 
Old 05-10-2003, 12:42 PM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Or any other file manager/browser/window. Anything looking at any directory on the cd will give the device busy error.
 
Old 05-11-2003, 11:06 AM   #6
d_lake
Member
 
Registered: Feb 2003
Location: Alabama
Distribution: Slackware
Posts: 43

Rep: Reputation: 15
Well I closed anything that was browsing the cd and it still wouldnt let me unmount it. A program musted have been running still in the background, but i didnt check. So I justed deleted a line in the mtab file.
 
Old 05-11-2003, 11:12 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally posted by d_lake
So I justed deleted a line in the mtab file.
That's awful and a very bad way of umounting a device. You shouldn't ever have to edit this file, for no reason ever. Next time do it properly, find out what is using or accessing the drive in question and shut it down properly.
 
Old 05-12-2003, 05:02 PM   #8
d_lake
Member
 
Registered: Feb 2003
Location: Alabama
Distribution: Slackware
Posts: 43

Rep: Reputation: 15
yes, i agree, just i couldnt figure it out right away and thats the only way i saw to get it out. I have only had to do that once, I think the power
went out or something thats why the computer shutdown.
 
Old 05-12-2003, 05:38 PM   #9
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
If in doubt, a shutdown should fix things.

When u choose shutdown, the shutdown script will be run and first, all processes will be killed, then all mounted filesystems will be unmounted. This is one reason why its important that you don't fiddle with mtab directly, otherwise its possible that the drive will not be unmounted and shutdown.

This should help if the problem occurs in the future.

Alex

P.S. if you have a command prompt sitting in a cd-rom directory (type 'pwd' which will tell you if you are) then you can't unmount either. One thing ive done numerous times is to move to a directoy on the cd as a normal user, then su to become root, do some package installation, and then change directory off the cd. I then try to unmount and it won't let me. The reason is because my normal user is still sitting on the cd-rom drive, but i can't tell coz i have temporarily become root using 'su'.

P.P.S. d_lake, the link at the bottom of your sig is wrong. it has a typo in it.

Last edited by webtoe; 05-12-2003 at 05:40 PM.
 
Old 05-12-2003, 07:55 PM   #10
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
Am I the only one that unmounts devices by name instead of mount point? try

umount /dev/cdrom
 
Old 05-13-2003, 02:55 PM   #11
hfelton
LQ Newbie
 
Registered: May 2003
Posts: 2

Rep: Reputation: 0
ill ask the newbie question - how can i find out
which process has the lock on the cdrom?

at a command prompt>$ ps -ef|grep cdrom
gave me zilcho, but it still wont let me umount.

this only seems to happen to me while in a wm,
typically kde. i oftentimes use konquerer to
search thru a cd and i then shutdown ALL konq
windows before it realizes im not looking at cdrom
anymore. at the moment, i am sitting at a machine
that has this symptom has occurred, but i cant
seem to locate what is locking the cdrom mount.

i had changed my fstab to users, from owner, 4 cdrom
which i like. also ive gone in as root on a console
to see if i can locate what has it locked - still no luck.

finally, in desparation, ive killed X - and now it is ok.

i normally start slack90 in telinit-3 and go to kde using
startx. anyone have a clue what process in X is able
to -hold- the cdrom and how can i kill it?

tia, h.
 
  


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
can't unmount odd Linux - Software 11 05-21-2004 07:59 PM
Is there a way to unmount anyway? RoaCh Of DisCor Fedora 2 04-17-2004 07:40 PM
command 'unmount' not found - how can i unmount??? GloVe Linux - General 1 10-04-2003 07:33 AM
How do I unmount? p.z Linux - Hardware 1 08-20-2003 02:46 AM
unmount killi Slackware 4 05-11-2003 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:47 PM.

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
Open Source Consulting | Domain Registration