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.

Advertisements

2 thoughts on “Connect (mount) your NAS (freeNAS, e-TRAYz) in Linux with NFS

  1. When setting up exports you should leave out the space between the client IP and the options in brackets, i.e., “(rw,…)”. Otherwise mounting might work but you cannot write from the client side. This gave me some newbie headache…

  2. I can’t remember now if that was the case with me… as I stopped using the e-trayz when I acquired a Netgear Readynas Ultra 2.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s