Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


 

An alternate way to mount an NFS share from another machine is to add a line to the /etc/fstab file. The line must state the hostname of the NFS server, the directory on the server being exported, and the directory on the local machine where the NFS share is to be mounted. You must be root to modify the /etc/fstab file.

...

server:/usr/local/pub /pub nfs rsize=8192,wsize=8192,timeo=14,intr

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.

...

<server>:</remote/export></local/directory><nfs-type><options> 0 0

Replace <server> with the hostname, IP address, or fully qualified domain name of the server exporting the file system.

...