Enhanced AutoFS Administrator's Guide
Configuring and Administering AutoFS
Mounting a Remote Directory
Chapter 3 41
Automounted directories stay mounted until they are idle for ten
minutes. You can change the ten-minute default time by adding the
-t
duration
option to the AUTOMOUNT_OPTIONS variable in the
/etc/rc.config.d/nfsconf file or by running the automount command
with the -t option from the command line.
You must enable AutoFS before any directory is automounted. See
“Enabling Enhanced AutoFS” on page 13.
If AutoFS is already running when you add an indirect mount to your
configuration, you do not have to run the automount command unless
you change the master map. The changes you make to an existing
indirect map take effect when AutoFS mounts the directory the next
time. However, changes to the master map will not take effect until you
issue the automount command to force AutoFS to reread its maps.
For more information on the AutoFS configuration, see the
automount(1M) man page.
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.
Sample File Entries for NFS Indirect Automounts
The following example contains sample lines from an AutoFS indirect
map on the NFS client, sage. The sharp sign (#) indicates a comment.
AutoFS ignores everything from the sharp sign to the end of the line.
# /etc/auto_desktop file
# local mount point mount options remote server:directory
draw -nosuid thyme:/export/apps/d
raw
write -nosuid basil:/export/write