Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-17-2004, 10:11 AM   #1
Registered: Jun 2004
Location: Montreal
Distribution: Red Hat 8
Posts: 120

Rep: Reputation: 15
Unhappy CDROM umount + eject


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 ?

Old 08-17-2004, 10:17 AM   #2
Registered: Aug 2002
Posts: 14,534

Rep: Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441
You need to close any applications that are accessing the drive including file browsers before you can unmount.
Old 08-17-2004, 10:19 AM   #3
LQ 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


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, 01:35 PM   #4
LQ 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.

Old 08-17-2004, 07:50 PM   #5
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, 04:49 AM   #6
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58

after ur cdrom has been unmounted

then too is it not unmounting???

see ur mount status by

Old 08-18-2004, 08:47 PM   #7
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:
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, 09:51 PM   #8
LQ 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



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

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration