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 09-23-2006   #11 (permalink)
Just Joined!
 
Join Date: Sep 2006
Posts: 1
I have encountered the same problem several times:
after having mounted the CD-ROM or USB and finished
using it, I cannot unmount it because "...it is busy..."
etc. So, the first thing to do is to ensure that you are
not browsing the directory where the device has been
mounted on, and also ensure that there are no processes
doing the same. The latter is a bit tricky, because you
might think there is no process, yet there might be.
You can check this using the lsof command. In particular,
the problem in my case (Debian 3.1 , Kernel 2.4.27, KDE 3.3),
was that there was a setting enabled in Konqueror
whereby it remembers the last (not sure how many) directories
you have browsed, *even after you have closed the window*.
This enhances performance but it also prevents you from
unmounting your device. To disable this setting open:

Konqueror>Settings>Configure Konqueror>Performance
and in the Preload section choose
Maximum number of instances kept preloaded =0

Hopefully this will be useful.
gavroche is offline  


Old 01-01-2007   #12 (permalink)
Just Joined!
 
Join Date: Dec 2006
Posts: 2
Quote:
Originally Posted by gavroche
I have encountered the same problem several times:
after having mounted the CD-ROM or USB and finished
using it, I cannot unmount it because "...it is busy..."
etc. So, the first thing to do is to ensure that you are
not browsing the directory where the device has been
mounted on, and also ensure that there are no processes
doing the same. The latter is a bit tricky, because you
might think there is no process, yet there might be.
You can check this using the lsof command. In particular,
the problem in my case (Debian 3.1 , Kernel 2.4.27, KDE 3.3),
was that there was a setting enabled in Konqueror
whereby it remembers the last (not sure how many) directories
you have browsed, *even after you have closed the window*.
This enhances performance but it also prevents you from
unmounting your device. To disable this setting open:

Konqueror>Settings>Configure Konqueror>Performance
and in the Preload section choose
Maximum number of instances kept preloaded =0

Hopefully this will be useful.
Very useful! Thank you!
I was using
Code:
lsof | grep /mnt/usb/ipod/whatever
and kept noticing that konqueror was the culprit, but didn't know how to fix this behavior. I had to use kill to terminate konqueror.

Thanks again.
mattydee is offline  
Old 06-10-2009   #13 (permalink)
Just Joined!
 
Join Date: Jun 2009
Posts: 1
Quote:
Originally Posted by porkoboe View Post
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


This worked for me... thanks!
coolnezz 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 07:46 AM.






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

Content Relevant URLs by vBSEO 3.3.0 RC2