How to mount NFS share on Ubuntu

In order to mount remote NFS shared folder to Ubuntu, you can do the following steps.

1. Install nfs-common on Ubuntu

sudo apt-get install nfs-common

2. Check the remote shared folder. This example will display the shared folder on the remote server on 192.168.1.100

showmount -e 192.168.1.100

The result:

root@ubuntu-server:/mnt# showmount -e 192.168.1.100
Export list for 192.168.1.100:
/mnt/harddisk2/Dhani 192.168.1.0/24

3. Mount the remote nfs share

mkdir /mnt/dhani_data

mount -t nfs 192.168.1.100:/mnt/harddisk2/Dhani /mnt/dhani_data

Now the remote nfs folder is mounted on /mnt/dhani_data