OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

2.3. NFS Client Configuration


Use the mount command to mount a shared NFS directory from another machine, by typing a command line similar to the following at a terminal prompt:


sudo mount example.hostname.com:/ubuntu /local/ubuntu


image

The mount point directory /local/ubuntu must exist. There should be no files or subdirectories in the /local/ubuntu directory.


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.


The general syntax for the line in /etc/fstab file is as follows:


example.hostname.com:/ubuntu /local/ubuntu nfs rsize=8192,wsize=8192,timeo=14,intr


If you have trouble mounting an NFS share, make sure the nfs-common package is installed on your client. To install nfs-common enter the following command at the terminal prompt:


sudo apt install nfs-common


Top OS Cloud Computing at OnWorks: