Identify the processes that are accessing the media.
# fuser -u /media |
The -u displays the user of the media.
For more information, see fuser(1M).
(Optional) Kill the process accessing the media.
# fuser -u -k /media |
The -k kills the processes accessing the media.
Killing the processes that are accessing the media should only be used in emergency situations.
Verify that the process is gone.
# pgrep process-ID |
The following example shows that the user pmorph, is accessing the /cdrom/sol_10_910_sparc/Solaris_10/Tools directory.
# fuser -u /cdrom/sol_10_910_sparc/Solaris_10/Tools /cdrom/sol_910_sparc/Solaris_10/Tools: 902c(pmorph) 339c(pmorph) |