[KLUG Members] determining what is using a resource
Bruce Smith
members@kalamazoolinux.org
20 Mar 2002 22:14:25 -0500
> I have had times when I am trying to accomplish
> something (like unmounting a drive or running a
> program that needs to use the sound card) and I get an
> error that something is using the device
> /dev/thedevicename. How can I determine what process
> on the computer is using the device so that I can get
> it to release?
To find what files are being used in a directory so you can unmount
it, you can use use the "fuser -m /mnt/dir" command to list all the
processes that have open files in that directory tree. (then stop
or kill the processes) "fuser" has other useful options too, see
the man page.
As far as other device files, you'll have to be more specific.
--------------------------------------------
Bruce Smith bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan 49093 USA
http://www.armstrong-intl.com/
--------------------------------------------