Mint 15/NFS

Cheatsheet for NFS in Mint 15+.

Server side

sudo bash

apt-get install nfs-kernel-server nfs-common portmap

Edit /etc/exports so it exposes the desired shares:
/dir/to/share/ x.x.x.x(ro,sync,subtree_check)

- x.x.x.x is the client ip to allow access.
Do * for all - do NOT do a space between the ip and the first paranthesis as this may be all too.

- ro=read-only, may be rw for read-write
- sync=do not crash when failing
- subtree_check=when not sharing whole disk, no_subtree_check=when sharing whole disk
(may speed up with no_subtree_check)

Start the service:
service nfs-kernel-server restart

Everytime editing the /etc/exports, do exportfs -a to refresh.

Client side

sudo bash

apt-get install portmap nfs-common

Make a mount point, for example:

mkdir -p /mnt/share/


mount server:/dir/to/share/ /mnt/share/


This is a personal note. Last updated: 2014-01-03 23:41:15.


Don't forget to pay my friend a visit too. Joakim