Identify the processes accessing the media.
# fuser -u [-k] /media |
Displays the user of the media.
Kills the process accessing the media.
For more information on using the fuser command, see fuser(1M).
(Optional) Kill the process accessing the media.
# fuser -u -k /media |
Killing the process accessing the media should only be used in emergency situations.
Verify the process is gone.
# pgrep process-ID |
The following example shows that the process 26230c, owner pmorph, is accessing the /cdrom/sol_9_1202_sparc/s0/Solaris_9/Tools/ directory.
# fuser -u /cdrom/sol_9_1202_sparc/s0/Solaris_9/Tools/ /cdrom/sol_9_1202_sparc/s0/Solaris_9/Tools/: 7258c(pmorph) |