[Clug-tech] Finding open files on a device. Was: Procedure for removing USB drives
Shawn
sgrover at open2space.com
Tue Nov 28 12:43:39 PST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The fuser command does this for you. Man fuser will give you the
details you need.
Shawn
Mark Carlson wrote:
> 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?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFbJ972B6Swl9qN24RAlrCAJ0eY+k55FouGbWAZ09fq82IfehUuwCggGSn
JyL82gZyRdE11xIo1bk2DrI=
=N3hX
-----END PGP SIGNATURE-----
More information about the clug-tech
mailing list