)
The next section describes how to make the mount more permanent (using the /etc/fstab file)
and how to select various options for NFS mounts.
NOTE
722
Running Servers Part V
Automatically Mounting an NFS File System
To set up an NFS file system to mount automatically each time you start your Linux system, you
need to add an entry for that NFS file system to the /etc/fstab file. That file contains information
about all different kinds of mounted (and available to be mounted) file systems for your
system.
Here??™s the format for adding an NFS file system to your local system:
host:directory mountpoint nfs options 0 0
The first item (host:directory) identifies the NFS server computer and shared directory.
mountpoint is the local mount point on which the NFS directory is mounted. It??™s followed by
the file system type (nfs). Any options related to the mount appear next in a comma-separated
list. (The last two zeros configure the system to not dump the contents of the file system and not
run fsck on the file system.)
The following are examples of NFS entries in /etc/fstab:
maple:/tmp /mnt/maple nfs rsize=8192,wsize=8192 0 0
oak:/apps /oak/apps nfs noauto,ro 0 0
In the first example, the remote directory /tmp from the computer named maple (maple:/tmp) is
mounted on the local directory /mnt/maple (the local directory must already exist).
Pages:
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320