目录

NFS 搭建给 openwrt 扩展存储

目录

raspberry:

1
2
3
4
5
6
groupadd nfs
useradd -m -g nfs nfs

apt-get install rpcbind nfs-kernel-server

vim /etc/exports

/etc/exports :

1
/home/nfs 192.168.15.0/24(rw,sync,no_subtree_check)
1
2
systemctl restart rpcbind
systemctl start nfs-kernel-server

openwrt:

1
2
3
opkg install kmod-fs-nfs-common kmod-fs-nfs nfs-utils kmod-fs-nfs-v4 portmap
service portmap start
mount -t nfs4  192.168.15.222:/home/nfs /mnt/nfs

/etc/fstab :

1
192.168.15.222:/home/nfs /mnt/upan nfs auto,noatime,bg,nfsvers=4,intr,tcp,actimeo=1800 0 0