NFS Services Administrator's Guide
Configuring and Administering NFS
Configuring and Administering an NFS Client
Chapter 242
To Mount a Remote Directory Using a Standard NFS
Mount
1. In the /etc/fstab file, use a text editor to add a line for each remote
directory you want mounted on your system. If the /etc/fstab file
does not exist, you will have to create it. A line in the /etc/fstab file
has the following syntax:
server:remote_directory local_directory nfs defaults 0 0
or
server:remote_directory local_directory nfs
option[,option...] 0 0
For descriptions of the mount options, see “To Change the Default
Mount Options” on page 46.
Disadvantage:
Standard NFS mounts
provide no shortcut for
configuring all
available remote
directories; each
directory must be
configured explicitly. If
the NFS servers
change which
directories they are
exporting, you must
change your local NFS
client configuration.
Advantage: AutoFS
allows you to configure a
special “built-in” map
(the -hosts map), which
causes all the exported
directories from any NFS
server on the network to
be automounted on your
system whenever anyone
requests access to a
directory on that server.
The servers can change
which directories they
export, and your
configuration remains
valid.
Advantage: The
automounter allows you
to configure a special
“built-in” map (the
-hosts map), which
causes all the exported
directories from any
NFS server on the
network to be
automounted on your
system whenever
anyone requests access
to a directory on that
server. The servers can
change which
directories they export,
and your configuration
remains valid.
Table 2-1 Standard-Mounted vs. Automounted Directories (Continued)
Standard-Mounted
Directory
Automounted
Directory (using
AutoFS)
Automounted
Directory (using
Automounter)