[Clug-tech] Finding open files on a device. Was: Procedure for removing USB drives
carlsonmark at gmail.com
Tue Nov 28 09:54:55 PST 2006
This reminds me of something that happens to me at random occasions.
Is there a way of finding out which files are open on a mounted
device? I know you can get a list of file descriptors for a process
from /proc/<pid>/fd/ so I'm wondering if there is something similar to
see what files are open on a device. Anybody have any ideas?
On 11/28/06, Jon <me at jonwatson.ca> wrote:
> Hmmm...my sentence sucked. I meant that umount is doing its job in that
> it won't let me unmount the drive if it still needs to be there. The
> lights on/lights off thing isnt' all that reliable, but umount is.
> Back to English school for me...
> Mark Carlson wrote:
> > Well, you could always do a umount -f, but that probably wouldn't get
> > around the 'sync' problem :-(
> > -Mark
More information about the clug-tech