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/

Connect:

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

More

http://ubuntuforums.org/showthread.php?t=249889
https://help.ubuntu.com/community/SettingUpNFSHowTo

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



GitHub

My

GitLab

My

LinkedIn

My

Klebe.se

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