Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Debian Linux Help > umount: /media/cdrom0: device is busy

Forgot Password?
 Debian Linux Help   Discussions related to Debian GNU/Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 10-14-2005   #1 (permalink)
Just Joined!
 
Join Date: Mar 2005
Location: South Africa
Posts: 54
umount: /media/cdrom0: device is busy

I am OFTEN unable to umount / eject a cd from the drive. The worst is when I am looking for something on a number of cd's and this problem rears its nasty head
I keep getting the same error :

Quote:
umount: /media/cdrom0: device is busy
umount: /media/cdrom0: device is busy
Please check that the disk is entered correctly.
Any information as to how to solve this irritating problem would be much appreciated.
I close ALL windows under KDE (3.3.2) and attempting to 'umount' / 'eject' under Console or Root Console I get these errors
The only way I can eject the cd is to log off (out of KDE) and log back on again.
infoseeker is offline  


Old 10-14-2005   #2 (permalink)
Linux Newbie
 
Join Date: Apr 2005
Location: NJ, USA
Posts: 104
I get these messages when i am looking at the contents of a CD and try to unmount
__________________
My New years Resolution is 1280x1024
Samoth is offline  
Old 10-15-2005   #3 (permalink)
Just Joined!
 
Join Date: Aug 2005
Location: Australia
Posts: 39
Ditto

I've had the same problems are you, only with other distros like Mandriva. Basically there's not much you can do about it, probably the most likely cause is that a program is sitting in the background still holding an open lock on a file or something really trivial.

You can probably just try removing the disk. While it is poor practice it might be the only thing you can do.
smith88 is offline  
Old 10-15-2005   #4 (permalink)
Linux Newbie
 
Join Date: May 2005
Posts: 222
try install "eject" .....

#apt-get install eject

that might solve your eject problem.
junkman4547 is offline  
Old 10-15-2005   #5 (permalink)
Linux Guru
 
Join Date: May 2004
Location: forums.gentoo.org
Posts: 1,814
I don't have enough experience in Debian to have seen this problem, but in Fedora I do some or all of the following:

Close any file managers and of course any other windows that show the Cd or whatever.
Wait half a minute or so
And if umount doesn't work for the normal user, do 'umount -l' as root user (that's a lower-case "L" for "lazy"). Almost always works....
__________________
/IMHO
//got nothin'
///this use to look better
drakebasher is offline  
Old 10-16-2005   #6 (permalink)
Linux Newbie
 
Join Date: Jul 2005
Location: Turn Around
Posts: 202
Send a message via AIM to DoctorDan
'cd ~' then umount
DoctorDan is offline  
Old 12-26-2005   #7 (permalink)
Just Joined!
 
Join Date: Dec 2005
Posts: 3
one way around this is to use

umount -l <mounted fs ie /mnt/cdrom0>

the -l unlinks /mnt/cdrom0 from fstab, at which point any apps
with a lock on this directory cannot access it anymore.

umount will then unmount the device normally

this is the way i use to get around the "device is busy" thing

meh. just read the man pages for umount it will give a better explanation
porkoboe is offline  
Old 12-26-2005   #8 (permalink)
Just Joined!
 
Join Date: Dec 2005
Posts: 3
(ugh) apologies DrakeBasher. you already explained that 2 posts above.

Sorry to anyone who had to read the same suggestion twice.

Linux is confusing enough without having to read my dumbass posts.
porkoboe is offline  
Old 01-01-2006   #9 (permalink)
Just Joined!
 
praka123's Avatar
 
Join Date: Jan 2006
Location: Kerala,India
Posts: 32
Smile

in debian,it often happens.just try to find out what is preventing umount by issuing
Code:
lsof |grep /dev/cdrom
In my case,i found "famd" is responsible for that!
praka123 is offline  
Old 07-30-2006   #10 (permalink)
Just Joined!
 
Join Date: Jul 2006
Posts: 1
I was having the same problem.

cd ~
umount

Fixed it right up.
Thanks DoctorDan.
shade36 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:04 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2