LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 08-17-2004, 11:11 AM   #1
ptreves
Member
 
Registered: Jun 2004
Location: Montreal
Distribution: Red Hat 8
Posts: 120

Rep: Reputation: 15
Unhappy CDROM umount + eject


Hello,

I am trying to retrieve a CDROM in my CDROM drive.
I tried the umount /dev/cdrom, followed by eject cdrom commands.

I get a device is busy message.

What should I do to recuperate my CD ?

PT
 
Old 08-17-2004, 11:17 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,175

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
You need to close any applications that are accessing the drive including file browsers before you can unmount.
 
Old 08-17-2004, 11:19 AM   #3
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
first of all, make sure you have no "open" cd directory...meaning that you:

1) don't have any open window that displays the contents of the cd
2) if you work in a terminal/console, cd off from the cd-directory
3) any program is not reading anything from the cd

if you have the cd's file(s) open in any way or any app displaying them, you cannot umount the cd. this happens, for example, if you have moved yourself into the cd with "cd" command and try to umount the cd while still "being in there".

so if you're in a terminal, type

cd

to go to your homedir and then umount. if you have some graphical app open like nautilus or konqueror that displays the cd, close it first or open some other location.
 
Old 08-17-2004, 02:35 PM   #4
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there
is this happening with for all the CDS or it hapened once with you

sometmes when i access a cdrom and if the application using the cdrom hangs up in betwen then i am unable to unmount my cdorm after innumerable tries.


regards
gaurav
 
Old 08-17-2004, 08:50 PM   #5
dubya
Member
 
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Rep: Reputation: 30
I have the same problem, even if no applications using the cdrom are open. A lazy umount works, but after, it won't eject.

Thanks in advance for any help.
 
Old 08-18-2004, 05:49 AM   #6
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi

after ur cdrom has been unmounted

then too is it not unmounting???

see ur mount status by
#df

regards
guarav
 
Old 08-18-2004, 09:47 PM   #7
dunamin
LQ Newbie
 
Registered: May 2004
Location: Austin, TX
Distribution: SUSE 9.1
Posts: 15

Rep: Reputation: 0
killing cdrom processes

The CD-Rom will not umount or eject when it is used by a process. So, how do we find the processes using the cdrom and kill them?

1) Do an 'lsof /mnt/cdrom', and see these results:
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
bash 3964 rsolomon cwd DIR 22,0 2048 615732 /mnt/cdrom/info
bash 8649 rsolomon cwd DIR 22,0 2048 585974 /mnt/cdrom/doc
lsof 8763 rsolomon cwd DIR 22,0 2048 585974 /mnt/cdrom/doc
lsof 8764 rsolomon cwd DIR 22,0 2048 585974 /mnt/cdrom/doc

2) To see the names of the process do a 'ps -A|grep 3964'. Replace 3964 with what ever is in the second column. The result will be something like:
3964 pts/10 00:00:00 bash

3) Kill the process. Either close the process directly do a 'kill -9 3964'. Of course killing processes is dangerous if you wanted to save data. Be careful.

4) Now try eject.
 
Old 08-18-2004, 10:51 PM   #8
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hey dunamin
thanx for he above tips,
i am sure they will work out and solve my problems too when sometimes i get stucjk due to the cdrom problems

regards
gaurav
 
  


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
umount vs. eject Vgui Linux - General 5 09-02-2005 10:24 PM
Once cd is in it won't umount or eject. This is crap. RHLinuxGUY Ubuntu 11 06-27-2005 08:23 PM
can't umount cdrom melodyrulz Linux - Software 5 10-05-2004 07:33 AM
Cannot Umount or eject cdrom in Md10 bongski55 Mandriva 3 04-08-2004 10:39 AM
can't umount cdrom ust Linux - General 6 11-07-2003 02:28 AM


All times are GMT -5. The time now is 05:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration