LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-09-2005, 08:27 PM   #1
maatghandi
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Rep: Reputation: 0
How Do I Unmount An Unmounted Device?


I put a cd in my cd drive yet linux never mounted the device. When I try to do it manually, it tells me that it can't mount the device because it is either already mounted or busy. Linux doesn't let me just open the cd drive; I have to unmount it first, but it doesn't let me do that either because it doesn't recognize that the device is mounted (how many times can I say the word mount in one paragraph?). I know I can just restart but I would rather not. Anyone know how to deal with this?
(Fedora Core 2)

Thanks,
Maat

Last edited by maatghandi; 02-09-2005 at 08:30 PM.
 
Old 02-09-2005, 08:31 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
My guess is that it may be mounting it somewhere you don't know about. Try running "mount" with no arguments to see what it shows.
 
Old 02-09-2005, 08:49 PM   #3
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
redhat/fedora have a program for automounting, which sometimes crashed, and this may have happend to you. In FC2 it happend a couple of times with me.I cannot recall the name. You have to kill this program, if it's not responding. Does this happen a lot? If you post me the result of "ps -A" I may remember the name.
Also, you may eject a cd without the umount command with the eject command:
eject /dev/cdrom
or simply
eject cdrom
but if this is the case, this won't work either.
 
Old 02-09-2005, 09:03 PM   #4
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Well, with CDs of bad quality (scratched or badly written), but not being totally unreadable, it happens sometimes that mounting or unmounting takes a long time (even some minutes), before it succeeds or fails.

If this is the case and you do not want to wait, just open a root konsole, and type:

lsof /media/cdrom

to see what process keeps the device open.
Then kill that process:

kill <pid>

Then you should be able to unmount the device.

Last edited by J_Szucs; 02-09-2005 at 09:06 PM.
 
Old 02-09-2005, 09:18 PM   #5
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
That happens all the time to me.
I do, mount /dev/cdrom /mnt
then
umount /dev/cdrom
Then hit the eject button or do eject from command line as stated above.
I get the already mounted message but when I umount, it goes away and I can mount again.
 
Old 02-09-2005, 09:25 PM   #6
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
mount /dev/cdrom /mnt ??
why not:
mount /dev/cdrom /mnt/cdrom
or just
mount /dev/cdrom.
since the destination is in your fstab.
Aren't there other devices with mount destination under mnt?
Also, as far as i know you don't need a umount command if you want to use the eject command.
The umounting is done automatically.
 
Old 02-09-2005, 10:34 PM   #7
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
I have to do it the way I posted, If I dont I cannot mount another filesystem on that drive untile I do umount. If I take the disk out, and try to put another one in, the drive is still mounted with the same filesystem that was on the previous disk.
 
Old 02-10-2005, 02:26 AM   #8
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Exactly the same often happens here on SuSE 9.1 + KDE + Konqueror.

I do what I already described and the problem disappeares for some time. Actually until I happen to insert an other CD that is a hard one - as this only happens when my CD drive has difficulties in reading a CD. Besides, I know my CD drive is not as fit as it should be.

By the way: is your CD drive OK?

Last edited by J_Szucs; 02-10-2005 at 02:33 AM.
 
Old 02-10-2005, 02:42 AM   #9
zvonSully
Member
 
Registered: Nov 2004
Location: Romania
Distribution: Debian maniak(apt-get upgrade)
Posts: 85

Rep: Reputation: 15
Konqueror is the program that keeps the cd busy.You shoud exit any directory from tha CD(not closing Konqueror, just go to your home directory,and then type eject in a konsole,umount /mnt/cdrom).Sometimes there are some files that Konqueror does not know with what program to open them.On my fedora 1,if i doublecliked such a file,the cdrom would be busyy as long as konqueor was running(even in backaground,if u have a preloaded version of konqueror,see the settings).I had to kill konqueror.Now i have debian and have no problems
 
Old 02-10-2005, 03:37 AM   #10
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Well, actually konqueror may or may not be the culprit, depending on the situation.

Cause this also happened when I did not even open konqueror, just tried (but failed) to cp some file from the CD to hdd in konsole.

So, that is why I wrote before that one should see what keeps the drive busy (lsof /media/cdrom in my case), then kill that process, and unmount the cdrom.
 
Old 02-17-2005, 12:28 PM   #11
twallstr
LQ Newbie
 
Registered: Aug 2004
Posts: 25

Rep: Reputation: 15
I am having tsimilar problems as those described. Wanted to check what was keeping the cdrom from unmounting but I must have misinterpreted the command "lsof /media/cdrom". Is that LSOF (in bold letters for clarity)?. Does not appear as a function on my computer.
Running Mandrake 10.1 community with KDE 3,2

Thanks in advance

twallstr

Solved it. Just didn't have the program installed!
Sorry!

Last edited by twallstr; 02-17-2005 at 12:45 PM.
 
  


Reply



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
Device busy, cannot unmount trebek Linux - Hardware 19 10-17-2008 04:58 AM
Unmount cd: device is busy jhimes Linux - Hardware 18 04-08-2008 01:51 AM
how to unmount unknown usb device? touser Linux - Hardware 1 05-30-2007 09:53 AM
unmount the usb device prital Linux - Newbie 6 01-24-2005 08:08 PM
unmount usb device pmorimer Linux - Hardware 2 08-25-2004 04:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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