Skip to content

Commit 3d858dd

Browse files
Update nfs.md
1 parent 74a6e5c commit 3d858dd

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

docs/nfs.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sudo systemctl start nfs-kernel-server.service
99

1010
```shell
1111
# /etc/exports
12-
/srv *(rw,sync,subtree_check)
12+
/srv/storage *(rw,sync,subtree_check)
1313
```
1414

1515
```shell
@@ -19,14 +19,28 @@ sudo exportfs -a
1919
## Client
2020

2121
```shell
22-
show mount 192.168.192
22+
showmount -e 192.168.192
2323
```
2424

2525
```shell
2626
mkdir ~/nas
2727
sudo apt install nfs-common
2828
```
2929

30+
```shell
31+
df -h
32+
```
33+
34+
```shell
35+
sudo apt install autofs
36+
# /etc/auto.master
37+
...
38+
/mnt /etc/auto.nfs --ghost --timeout=60
39+
40+
# /etc/auto.nfs
41+
storage -fstype=nfs4,rw 192.168.1.192:/srv/storage
42+
```
43+
3044
```shell
3145
# /etc/fstab
3246
UUID=1FDD-27B1 /boot vfat defaults 0 0

0 commit comments

Comments
 (0)