FreeBSD · FreeBSD 10.0

Getting Started with NFS on FreeBSD 10

FreeBSD can also be used to host Network File Service(NFS). We can use FreeBSD as NFS server and also as an NFS client. In this article let us look at how to configure NFS server on FreeBSD 10.

Server Installation and Configuration

Let us assume NFS server’s IP is We can create NFS share on the server using the following steps. We have to add the following lines in /etc/rc.conf before starting the service.


The file, in which we have to mention the shared folders, is /etc/exports. We need to create the file now. Let us create it.

touch /etc/exports

Now let us start the services

service nfsd start
service mountd reload

We can now configure a basic NFS share in this machine. For example, if we are going to share /home directory to the client, the entry on /etc/exports file would be like this.


Connecting from the client

If the Client machine is FreeBSD or Linux, We can query the NFS server for information about the shared folders using the following command.

showmount -e

The output would be like


We can mount the shared folder, using this command.

mount /mnt

Leave a Reply

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

You are commenting using your 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 )

Connecting to %s