-
Notifications
You must be signed in to change notification settings - Fork 0
NFS Client
Now is the time to make some simple configurations to the client machine, so that the shared folder from the host can be mounted to the client and then accessed smoothly.
Before installing the NFS Common application, we need to update our system’s repository index with that of the Internet through the following apt command as sudo:
$ sudo apt-get update
Now, run the following command in order to install the NFS Common client on your system:
$ sudo apt-get install nfs-common
The system will prompt you with a Y/n option to confirm if you want to continue with the installation. Please enter Y and then hit Enter to continue, after which the software will be successfully installed on your system.
Your client’s system needs a directory where all the content shared by the host server in the export folder can be accessed. You can create this folder anywhere on your system. We are creating a mount folder in the mnt directory of our client’s machine:
$ sudo mkdir -p /mnt/sharedfolder_client
The folder that you created in the above step is like any other folder on your system unless you mount the shared directory from your host to this newly created folder.
Use the following command in order to mount the shared folder from the host to a mount folder on the client:
$ sudo mount serverIP:/exportFolder_server /mnt/mountfolder_client
In our example, we are running the following command to export our “sharedfolder” from the server to the mount folder “sharedfolder_client” on the client machine:
$ sudo mount 192.168.100.5:/mnt/sharedfolder /mnt/sharedfolder_client