Etc/Fstab; Autofs - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

Chapter 9. Network File Syste...
with the remote directory being mounted, and
</remote/export>
the local directory where the remote file system is to be mounted.
Refer to the
man page for more details.
mount
If accessing an NFS share by manually issuing the
remounted manually after the system is rebooted. Red Hat Enterprise Linux offers two methods
for mounting remote file systems automatically at boot time: the
service.
4.1.

/etc/fstab

The
file is referenced by the
/etc/fstab
shares have the same effect as manually typing the
A sample
/etc/fstab
<server>:</remote/export></local/directory><nfs-type><options> 0 0
Replace
with the hostname, IP address, or fully qualified domain name of the server
<server>
exporting the file system.
Replace
</remote/export>
Replace
</local/directory>
mounted. This mount point must exist before
Replace
with either
<nfs-type>
Replace
with a comma separated list of options for the NFS file system (refer to
<options>
Section 4.3, "Common NFS Mount Options"
additional information.
4.2.

autofs

One drawback to using
NFS mounted file system, the system must dedicate resources to keep the mounted file system
in place. This is not a problem with one or two mounts, but when the system is maintaining
mounts to a dozen systems at one time, overall system performance can suffer. An alternative
to
is to use the kernel-based
/etc/fstab
file systems automatically, saving resources.
The
service is used to control the
autofs
primary configuration file. While
convenient to specify the mount points, hostname, exported directory, and options in a set of
files rather than typing them manually.
The
configuration files are arranged in a parent-child relationship. The main
autofs
configuration file (
/etc/auto.master
140
netfs
line to mount an NFS export looks like the following example:
with the path to the exported directory.
with the local file system on which the exported directory is
for NFSv2 or NFSv3 servers, or
nfs
for details). Refer to the
is that, regardless of how infrequently a user accesses the
/etc/fstab
automount
automount
can be specified on the command line, it is more
automount
) lists mount points on the system that are linked to a
</local/directory>
command, the file system must be
mount
/etc/fstab
service at boot time, so lines referencing NFS
command during the boot process.
mount
is read or the mount fails.
/etc/fstab
utility, which can mount and unmount NFS
command through the
with
file or the
autofs
for NFSv4 servers.
nfs4
man page for
fstab
/etc/auto.master

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 4.5.0 and is the answer not in the manual?

Questions and answers

Table of Contents