[clug] Finding processes by working directory

David Price david.price at anu.edu.au
Mon Apr 5 05:19:49 GMT 2004


On Mon, Apr 05, 2004 at 02:51:40PM +1000, Pietro Abate wrote:
> fuser -v /mnt/point

The -m option is supposed to also show processes accessing that
mountpoint.  I find fuser often doesn't show stuff up.  If all else
fails, you could do something like:

ls -l /proc/*/cwd /proc/*/fd/ | grep -- '-> /mnt/something'

Although if your system has a lot of files open that might not work.

-- 
David.Price at anu.edu.au
BH: 612-58608  AH: 6278-7278  Mob: 0404127297


More information about the linux mailing list