(亲测有效)在SecureCRT终端挂载Ubuntu时遇到的问题

ubuntu侧
root@ubuntu:/home# /etc/init.d/rpcbind restart
bash: /etc/init.d/rpcbind: No such file or directory
解决方法:
root@ubuntu:/home# apt-get install nfs-kernel-server
root@ubuntu:/home# /etc/init.d/rpcbind restart
[ ok ] Restarting rpcbind (via systemctl): rpcbind.service.
root@ubuntu:/home# /etc/init.d/nfs-kernel-server restart
[ ok ] Restarting nfs-kernel-server (via systemctl): nfs-kernel-server.service.

CRT侧
root@OpenWrt:~# busybox mount -t nfs -o nolock 192.168.2.13:/home/work /mnt/
mount: mounting 192.168.2.13:/home/work on /mnt/ failed: No such device
解决方法:内核配置打开NFS,如图所示:
在这里插入图片描述
root@OpenWrt:~# busybox mount -t nfs -o nolock 192.168.2.13:/home/work /mnt/
mount: mounting 192.168.2.13:/home/work on /mnt/ failed: Protocol not supported
解决方法:
在这里插入图片描述
内核配置打开nfs-v3,如图所示:
在这里插入图片描述
root@OpenWrt:~# busybox mount -t nfs -o nolock 192.168.2.13:/home/work /mnt/
mount: mounting 192.168.2.13:/home/work on /mnt/ failed: Permission denied
解决方法:
打开/etc/exports文件,在最后加一行:
/home/work *(rw,sync,no_root_squash)
重启nfs服务:
/etc/init.d/nfs-kernel-server restart
执行挂载命令即可正常挂载,最后使用mount查看挂载情况

猜你喜欢

转载自blog.csdn.net/qq_20490175/article/details/121841045