Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
NFS Services Administrator’s Guide: HP-UX 11i version 3 > Chapter 3 Configuring and Administering AutoFS

Notes on AutoFS Master Map

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The AutoFS master map file, /etc/auto_master by default, determines the locations of all AutoFS mount-points. At system startup, the automount command reads the master map to create the initial set of AutoFS mounts. Subsequent to system startup, the automount command maybe 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 from these maps.

Following is a syntax of an auto_master file:

mount-point map-name  [mount-options]

where:

mount-point

Directory on which an AutoFS mount is made.

map-name

Map associated with mount-point specifying locations of filesystems to mount.

mount-options

Options that apply to the maps specified by map-name.

If the first field specifies the directory as /-, then the second field is the name of the direct map. The master map file, like any other map file, may be distributed by NIS or LDAP by modifying the appropriate configuration files and removing any existing /etc/auto_master master map file.

NOTE: If the same mount-point is used in two entries, the first entry is used by the automount command. The second entry is ignored.

You must run the automount command after you modify the master map or a direct map.

Following is a sample auto_master file:

# Master map for AutoFS
#
#auto_master
#mount-point  map-name            [mount-options]
/net	        -hosts       				-nosuid,nobrowse #Special Map
/home			  auto_home		 				-nobrowse        #Indirect Map
/-				  		/etc/auto_direct                     #Direct Map
/nfs				  /etc/auto_indirect 		               #Indirect Map  

The master map is a primary map that defines all other maps. In this sample, auto_master, the master map, contains a single entry each for a direct map and a special map. It also contains a single entry for each top-level indirect map.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.