Enhanced AutoFS Administrator's Guide

Configuring and Administering AutoFS
Modifying or Removing an Automounted Directory
Chapter 348
Modifying or Removing an Automounted
Directory
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 all the users using
the mounted directory.
Warn any user to cd out of the directory, and kill any process 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
Use an editor to make your changes to the direct or indirect map.
If you removed all of the entries in the direct or indirect map, remove
that map’s entry in the AutoFS master map.
If you made changes to the master map, or if you added or modified a
local mount point in a direct map, issue the following command to force
AutoFS to reread its maps:
/usr/sbin/automount
WARNING 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 the following:
Commands hang or do not return expected results.
Applications fail due to their dependencies on these mounted
file systems.