HP-UX Reference (11i v1 00/12) - 1M System Administration Commands A-M (vol 3)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/!!!intro.1m
________________________________________________________________
___ ___
a
automount(1M) automount(1M)
(autofs)
NAME
automount - install automatic mount points (autofs) or automatically mount NFS file systems; see
"Remarks" below in SYNOPSIS.
SYNOPSIS
/usr/sbin/automount [-f master-file][-t duration][-v]
Remarks
This manpage contains two versions of automount. The autofs version is presented first, followed by the
previous automounter version.
The /usr/sbin/automount script checks the AUTOFS variable in
/etc/rc.config.d/nfsconf. If the AUTOFS variable is set to one, then
/usr/lib/netsvc/fs/autofs/automount is executed. The first half of this manpage represents
the autofs automount.
If the AUTOFS variable is set to 0 (zero) or does not exist in /etc/rc.config.d/nfsconf, then the
automount daemon is executed in /usr/lib/netsvc/fs/automount/automount. The second
half of this manpage represents the older automount.
In future releases, only the autofs version of
automount will be supported.
DESCRIPTION
automount is a command that 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 file system is not accessed within an appropriate interval (five minutes by default), the
auto-
mountd
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
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. 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.
The automounter maps, including the auto_master map, may be distributed by NIS or NIS+. The Name
Service Switch configuration file, /etc/nsswitch.conf
, determines where the automount command
will look for the maps.
Options
-f master-file Specify a local master file for initialization.
When the -f option is used and the master file specified is not found, then automount
defaults to /etc/auto_master and then to the NIS auto_master map.
-t duration Specify a duration, in seconds, that a file system is to remain mounted when not in use.
The default is 5 minutes.
-v Verbose mode. Notify of autofs mounts, unmounts or other non-essential information.
Messages are written to stderr.
Map Entry Format
A simple map entry (mapping) takes the form:
HP-UX Release 11i: December 2000 − 1 − Section 1M−−87
___
___