NFS Services Administrator's Guide
Configuring and Administering NFS
Configuring and Administering AutoFS
Chapter 2124
To Modify or Remove (Unmount) an Automounted
Directory
1. If you are planning to remove an automounted directory, issue the
following command to determine whether the directory is currently
in use:
/usr/sbin/fuser -cu local_mount_point
This command lists the process IDs and user names of everyone
using the mounted directory.
2. Warn any users to cd out of the directory, and kill any processes that
are using the directory, or wait until the processes terminate. You
can issue the following command to kill all the processes using the
mounted directory:
/usr/sbin/fuser -ck local_mount_point
3. Use an editor to make your changes to the direct or indirect map.
4. If you removed the last entry in the direct or indirect map, remove
the line for that map in the automounter master map.
5. If you made any changes to the master map, or if you added or
modified a local mount point in a direct map, run the following
command to force AutoFS to reread its maps:
/usr/sbin/automount
CAUTION File systems under the management of AutoFS must always be
maintained through AutoFS utilities, automountd and automount.
Manually mounting and unmounting AutoFS managed file systems can
lead to disruptive or unpredictable results, including but not limited to:
commands hanging or not returning expected results, and applications
failing due to their dependencies on these mounted filesystems.