
Install dependencies
apt-get -y install nfs-kernel-server nfs-common
Share from NAS
This can totally be done through the command line but I found it infinitely easier doing it really quickly with Webmin. Configure shares in Webmin->Networking->NFS Exports (module may be in the unused modules section and might need activated) when you need to set up shares. Note that enabling any nfs shares (aka ‘nfs exports’) will generate a ‘no hostname’ error in the boot sequence. This is because Ubuntu likes to warn you if you have not specified a host to share it with – not an issue if you want to share to any computers on your LAN.
Mount shares
This will mount another share from ‘servername’ to /nfs/servername on your local system.
showmount -e servername mkdir -p /nfs/servername mount -o soft,intr,rsize=8192,wsize=8192 192.168.0.3:/raid/shared/ /nfs/servername/ df –h
To mount persistently
nano /etc/fstab
Add:
192.168.0.3:/raid/shared/shared/ /nfs/servername/ nfs auto,nobootwait 0 0
Useful sources
http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html
https://help.ubuntu.com/community/SettingUpNFSHowTo