Search notes:

Shell command: fuser

fuser identifies processes that are using files or sockets.

Identify processes that prevent umount

fuser is particularly useful to identify processes that prevent a device from being un-mounted. In such cases, umount will print the error message umount: …: target is busy.
$ sudo umount /mnt/media
umount: /mnt/media: target is busy
$ fuser -amuv /mnt/media

See also

Shell commands

Index