# umount /dev/dsk/c0t2d0s7
The following command will display all processes and their associated users that are using files/directories on a specified disk on a Sun Solaris system:
# fuser -u /dev/dsk/c0t2d0s7
You can use the -k option to kill all processes using the specified file or filesystem
# fuser -k /dev/dsk/c0t2d0s7