Invoking the automounter
Once the maps are written, make sure that there are no equivalent entries
in /etc/vfstab and that all the entries in the maps refer to
NFS shared resources. Then, invoke the automounter, using the following
command syntax:
automount [-mnTv] [-D name=value] [-M mount-directory] \
[-f master-file] [-t sub-options] [directory map \
[-mount-options]] ...
Using this syntax, the automounter can be invoked in any of the following
ways (for the components indirect_map, direct_map and
master_map, substitute the appropriate filenames):
-
You can specify all arguments to the automounter without reference to
the master map:
automount /net /etc/indirect_map \
-rw,intr,secure /- /etc/direct_map -ro,intr
In this case, /net is the directory/mount-point,
/etc/indirect_map is the location for the indirect map file
that is to be used, -rw,intr,secure are the mount options
for the indirect map, /- means use a direct_map,
/etc/direct_map is the location for the direct map that is
to be used, and -ro,intr are the mount options for the
direct map.
-
You can specify all arguments in the master map and instruct the
automounter to look in it for instructions:
automount -f /etc/master_map
-
You can specify more mount points and maps in addition to those
mentioned in the master map:
automount -f /etc/master_map /src /etc/auto.src -ro,soft
-
You can nullify one of the entries in the master map (particularly
useful if you are using a map that you cannot modify but that does not
meet the needs of your machine):
automount -f /usr/lib/master_map /home -null
-
You can override an entry in the master map by specifying a different
indirect map on the command line, as follows:
automount -f /usr/lib/master_map /home \
/myown/indirect_map -rw,intr
This command tells the automounter to mount /home according
to instructions in /myown/indirect_map, not according to
instructions in the indirect map specified in the master map.
See the
automount(1Mnfs)
manual page for a complete description of options. The sub-options are
the same as those for NFS
mount, with the exception of bg (background) and
fg (foreground), which do not apply.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004