How to mount FreeNAS network share persistently

Solution 1:

If you're looking to have a persistent mount that is stale-proof (outside of the networking being down, or the remote machine being off) I would recommend using AutoFS

In short Autofs (also know as Automount) will only mount a directory when it is needed or accessed and after a few moments of inactivity will unmount itself. By doing so you can setup a persistent network location like you NAS and have it always accessible on your machine in the same mount point without having to worry about the mount going stale when networking drops or if you suspend your computer.

Solution 2:

Set up your server to provide the share as NFS (assuming it hasn't already). Then follow the guide here: http://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-nfs-fstab.html

Also, you might have to install nfs-common package for it to work.

Solution 3:

You need to add an entry in the /etc/fstab for this. See this question for a sample entry. As the answerer explains, smbfs package may be required. This post gives more detailed instructions on the /etc/fstab entry to be added.

You would have to use gksudo gedit /etc/fstab to edit the file as root.