NFS
NFS⚑
Usage⚑
NFSv4⚑
Server⚑
In /etc/exports:
/export 192.168.1.0/24(rw,fsid=0,no_subtree_check)
And then you can add other directories that are inside /export in the server. NFSv4 NFSv4 dictates that the additional shared directories are subdirectories of the root share (the one with fsid=0
).
Client⚑
mount -t nfs4 -o proto=tcp,port=2049 [nfs-server]:/ /mnt
Note: Yo should specify the path relative to the root share folder.
/etc/fstab⚑
Server:/path/to/export /local_mountpoint nfs hard,intr 0 0
Debug⚑
From the client try:
mount -v -o nfsvers=4 [nfs-server]:/ /mnt