NFS Mount

原文

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# On the Host
sudo apt install nfs-kernel-server
sudo mkdir /var/nfs/general -p
sudo chown nobody:nogroup /var/nfs/general
sudo vim /etc/exports

# exports on the host
# /var/nfs/general x.x.x.x(rw,sync,no_subtree_check)
sudo systemctl restart nfs-kernel-server

# On the Client
sudo apt install nfs-common

sudo mkdir -p /nfs/general
sudo mount x.x.x.x:/var/nfs/general /nfs/general

# At Boot
sudo vim /etc/fstab
# /etc/fstab
# x.x.x.x:/var/nfs/general /nfs/general nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0

# Unmounting
sudo umount /nfs/home