HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

a
automount(1M) automount(1M)
NAME
automount - install automatic mount points (Autofs) or automatically mount NFS file systems (Autofs and
Automounter)
SYNOPSIS
Autofs
/usr/sbin/automount
[-f master-file][
-t duration][-v]
Automounter (Obsolescent)
/usr/sbin/automount
[-nTv][
-D name = value][-f master-file][-M mount-directory]
[
-tl duration][-tm
interval][-tw interval][directory map [-mount-options] ] ...
Remarks
This manpage describes two versions of
automount:
autofs and the obsolescent automounter .In
future releases, only the
autofs version will be supported.
DESCRIPTION
The automount script reads the AUTOFS variable in the configuration file
/etc/rc.config.d/nfsconf
.
Autofs
If
AUTOFS is set to 1 (one), automount executes /usr/lib/netsvc/fs/autofs/automount
,or
/usr/lib/netsvc/fs/enh_autofs/automount
(if Enhanced AutoFS is installed). See the
DESCRIPTION Autofs section.
Automounter
If
AUTOFS is set to 0 (zero) or it does not exist in /etc/rc.config.d/nfsconf
, automount exe-
cutes
/usr/lib/netsvc/fs/automount/automount
. See the DESCRIPTION Automounter
section.
DESCRIPTION Autofs
The
automount command installs autofs mount points and associates an automount map with each
mount point. The autofs filesystem monitors attempts to access directories within it and notifies the
automountd daemon (see automountd(1M)). The daemon uses the map to locate a filesystem, which it
then mounts at the point of reference within the autofs filesystem. You can assign a map to an
autofs
mount using an entry in the /etc/auto_master
map or a direct map.
If the filesystem is not accessed within an appropriate interval (5 minutes by default, or, for Enhanced
AutoFS, 10 minutes by default), the
automountd daemon unmounts the file system.
The file /etc/auto_master
determines the locations of all autofs mount points. By default, this file
contains the following entry:
# Master map for automounter
#
/net -hosts -soft,nosuid,nobrowse
The first field in the master file specifies a directory on which an autofs mount will be made, and the
second field specifies the automounter map to be associated with it. Mount options may be supplied as an
optional third field in the entry. These options are used for any entries in the map that do not specify
mount options explicitly. Note that the -nobrowse option is only available with Enhanced AutoFS. The
automount command is usually run without arguments. It compares the entries /etc/auto_master
with the current list of autofs mounts in /etc/mnttab and adds, removes, or updates autofs
mounts to bring the /etc/mnttab up to date with the /etc/auto_master. At boot time, it installs
all autofs mounts from the master map. Subsequently, it may be run to install autofs mounts for new
entries in the master map or a direct map, or to perform unmounts for entries that have been removed.
If the first field specifies the directory as
/-, automount treats the second field as the name of a direct
map. In a direct map, each entry associates the full path name of a mount point with a remote file system
to mount.
If the first field is a path name, the second field names an indirect map or a special map (described below).
An indirect map contains a list of the subdirectories within the indicated directory. With an indirect map,
it is these subdirectories that are mounted automatically.
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 1M89