Simple Autofs Mount
To help explain the autofs mount process, assume that the following files are installed.
$ cat /etc/auto_master # Master map for automounter # +auto_master /net -hosts -nosuid,nobrowse /home auto_home -nobrowse /share auto_share $ cat /etc/auto_share # share directory map for automounter # ws gumbo:/export/share/ws
When the /share
directory is accessed, the autofs service creates a trigger node for /share/ws
, which is an entry in /etc/mnttab
that resembles the following entry:
-hosts /share/ws autofs nosuid,nobrowse,ignore,nest,dev=###
When the /share/ws
directory is accessed, the autofs service completes the process as follows:
-
Checks the availability of the server's mount service.
-
Mounts the requested file system under
/share
. Now the/etc/mnttab
file contains the following entries.-hosts /share/ws autofs nosuid,nobrowse,ignore,nest,dev=### gumbo:/export/share/ws /share/ws nfs nosuid,dev=#### #####