Connect (mount) your NAS (freeNAS, e-TRAYz) in Linux with NFS

And alternative to the slow and unreliable Samba/CIFS/Windows sharing

First, you have to have NFS installed in the NAS (server) and in Debian, Ubuntu (client)



  • Edit your /etc/exports file in the NAS. I use the following line
/shared_directory XXX.XXX.XXX.XXX (rw,async,wdelay,insecure,no_root_squash,no_all_squash,no_subtree_check,insecure_locks,no_acl)

XXX.XXX.XXX.XXX is the IP address (local) of your Linux PC.
/shared_directory is the path in the NAS that you want to share


  • Restart the nfs and portmap services in the NAS.
service nfs start
service portmap start
  •  Edit your /etc/fstab file in your Linux computer. (This way you have your NAS directory mounted each time you boot into Linux)

Add the following line:

YYY.YYY.YYY.YYY:/shared_directory              /mount_point       nfs     rw,user,hard,intr,tcp       0       0

YYY.YYY.YYY.YYY is the IP address (local) of the NAS
/mount_point is the empty directory in Linux where the NAS shared filesystem will be mounted.



  • Reboot.

/mount_point will be the same as /shared_directory in your NAS.