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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-22-2004, 04:36 AM
|
#1
|
Member
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216
Rep:
|
umount - device is busy - with what???
Quite often when I try to umount a drive (my iPod for instance) it get an error saying it's busy. But it's quite clearly not. There are no applications open that are using it and I'm not in that drive in a shell. Is there a way to see what is keeping that device busy? I get this error with a number of different hard drives. Firewire and USB.
Thanks!
|
|
|
08-22-2004, 04:46 AM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You could try using lsof. I have noticed in the past that some applications such as konqueror appear to stop you unmounting partitions while they are running.
What proccesses are running when you try to unount:
ps -ef
|
|
|
08-22-2004, 06:27 AM
|
#3
|
Senior Member
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672
Rep:
|
try fuser on the mounted device... man fuser for details.
|
|
|
08-23-2004, 04:10 AM
|
#4
|
Member
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216
Original Poster
Rep:
|
thanks amosf. That fuser app is helpful! It turned out that famd was keeping those drives busy for some reason. So I stopped the server, umounted the drives and restarted the service.
Thanks for the help.
|
|
|
08-23-2004, 05:19 AM
|
#5
|
Senior Member
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672
Rep:
|
It's nearly always fam... it's the app that auto updates the file manager... Usually
fuser -k /device
will kill the fam process that is stopping you...
|
|
|
08-29-2004, 02:22 PM
|
#6
|
Member
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216
Original Poster
Rep:
|
OK I'm having a new problem now where a drive isn't umounting even if fuser says there are no processed using it.
root@moebius /home/zac # umount /mnt/movies
umount: /mnt/movies: device is busy
umount: /mnt/movies: device is busy
root@moebius /home/zac # fuser -v /mnt/movies
USER PID ACCESS COMMAND
/mnt/movies root kernel mount /mnt/movies
any ideas here?
|
|
|
08-29-2004, 03:12 PM
|
#7
|
Member
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161
Rep:
|
I always get that error message when I had been navigating some (zip, tar...) archive with KDE Konqueror. Apparently Konqueror caches files from that archive.
Also, same error message displays when I'm trying umount /mnt/disk, and my working directory is /mnt/disk.
I'm not sure what's causing problem to you.
It could be some caching thing.
Try browsing root directory of that disk and hit F5 (Refresh).
Do you still get same message?
|
|
|
08-29-2004, 07:16 PM
|
#8
|
Member
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828
Rep:
|
Did you get your iPod to work with Linux?
|
|
|
08-29-2004, 07:19 PM
|
#9
|
Member
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216
Original Poster
Rep:
|
mikedeatworld, yes i got my iPod working.
|
|
|
08-30-2004, 04:19 AM
|
#10
|
LQ Newbie
Registered: Aug 2004
Distribution: Debian
Posts: 5
Rep:
|
Have you tried to run fuser but with the option -m so it can give you the pid of the process using the device and then search it using ps -A
|
|
|
09-01-2004, 02:53 PM
|
#11
|
LQ Newbie
Registered: Sep 2004
Posts: 1
Rep:
|
The Konqueror can (will) block umounts when it is configured to keep one or more instances preloaded. Go to Konq settings, performance, and set instances to keep preloaded to 0.
|
|
|
09-09-2004, 02:10 AM
|
#12
|
LQ Newbie
Registered: Sep 2004
Posts: 1
Rep:
|
"-l" option resolved the problem
I had encountered the same problem, and the "-l" option resolved the problem.
umount /mnt/movies -l
Please refer to the man-page of the umount for more detail.
|
|
1 members found this post helpful.
|
09-09-2004, 07:33 AM
|
#13
|
LQ Newbie
Registered: May 2004
Distribution: Fedora Core 2
Posts: 22
Rep:
|
/usr/sbin/lsof +D /mnt/hdb
gives some useful info....
|
|
|
10-16-2004, 06:40 PM
|
#14
|
LQ Newbie
Registered: Oct 2004
Distribution: SuSE 9.1
Posts: 12
Rep:
|
Quote:
Originally posted by Moebius
mikedeatworld, yes i got my iPod working.
|
Can you tell me how ? I just couldn't mount it!
Thanks.
Last edited by melao; 10-16-2004 at 06:44 PM.
|
|
|
12-06-2004, 11:26 PM
|
#15
|
Member
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359
Rep:
|
Hello people!
I too use to have problems unmounting partitions for external USB and Firewire drives, samba partitions and NFS partitions and Floppy's and even CD players for god sakes.
Anyhow, I wrote a little script that fixes it.
The "umount" problems are intermittent so most of the time everything works ok, but for those times when it does not here is my easy solution and it as nothing to do with using fuser or killing obscure processes.
Here is my script:
Code:
#!/bin/bash
# This script is used to stop the xinetd service and restart it
/etc/rc.d/init.d/xinetd stop
/etc/rc.d/init.d/xinetd start
exit
Save it in you favorite editor as "restart_xinetd" and as root, copy that script in your /USR/BIN directory.
Make sure while still in root to change it's permissions in console like so: chmod +rx restart_xinetd
Now whenever you get the dreaded " Device busy" error while unmounting, just open up a console, login as root (su) and type "restart_xinetd".
You'll be able to unmount anything you want after that and you wont kill any necessary processes or need to reboot.
This is a good workaround until a real fix is found for this bug on many distros.
|
|
|
All times are GMT -5. The time now is 12:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|