02-06-2005, 11:50 AM | #1 (permalink) |
Pure Chewing Satisfaction
Location: can i use bbcode [i]here[/i]?
|
Linux: "Device or Resource busy" question
Sometimes when I try to do something such as unmount a samba mountpoint, I get an error saying something like "Device or resource busy." Is there a way to tell what is using that device/resource? I imagine I'm looking for a process ID so I can look to end that process, then try to unmount the device again....
__________________
Greetings and salutations. |
02-06-2005, 01:38 PM | #2 (permalink) |
In Your Dreams
Location: City of Lights
|
your system should have a program called lsof.
As root, run "lsof /mount/point", it should list all resources accessing it (keep in mind.. even being in a samba directory can make it "busy"). If it's still being a pain, you can do "umount -l /mount/point". This makes it unavailable for all future processes, and umounts it quietly in the background when old processes let go of it. |
Tags |
busy, device, linux, question, resource |
|
|