fstab
Mounting NFS File Systems using /etc/fstab
You must be root to modify the /etc/fstab file.
General Syntax of mount point in fstab:
<server>:</remote/export> </local/directory> <nfs-type> <options> 0 0
<server> = hostname, IP address, or fully qualified domain name of the server.
</remote/export> = the path to the exported directory.
</local/directory> = the local file system.
<nfs-type> = nfs for NFSv2 or NFSv3 servers, or nfs4 for NFSv4 servers.
Example:
nfs-server:/usr/local/pub /pub nfs rw 0 0
The mount point /pub must exist on the client machine before this command can be executed. After adding this line to /etc/fstab on the client system, type the command mount /pub at a shell prompt, and the mount point /pub is mounted from the server.
The /etc/fstab file is referenced by the netfs service at boot time, so lines referencing NFS shares have the same effect as manually typing the mount command during the boot process.