December 20, 2016 tim 0Comment

In this tutorial we will cover how to mount an NFS share on FreeBSD 11. We will only be covering the client side of things in this post, for more information on how to setup a robust NFS server, check out http://www.freenas.org/

Configure the system start up with NFS client parameters.

# nano /etc/rc.conf

add this

nfs_client_enable="YES"
nfs_client_flags="-n 4"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"

create a folder to mount the share

# mkdir /mnt/nas02

Now we can map our NFS share like so

# mount_nfs SERVER_IP:/path/on/nas /mnt/nas02

NFS shares can be automatically mounted

# nano /etc/fstab

add this

SERVER_IP:/path/on/nas /mnt/nas02 nfs rw 0 0

Enjoy