# fuser -u /media
The –u displays the user of the media.
For more information, see fuser(8).
# fuser -u -k /media
The –k option terminates the processes accessing the media.
Caution - Terminating the processes that are accessing the media should only be used in emergency situations. |
# pgrep process-ID