NFS挂载失败: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.

更新镜像前是可以挂载的, 使用SD卡更新成最新的debian系统镜像后就出现下面错误

mount: /home/debian/nfs_rootfs: bad option; 
for several filesystems (e.g. nfs, cifs) 
you might need a /sbin/mount.<type> helper program.

之前挂载成功的命令是这样的:

#!/bin/sh

mount -o nolock -t nfs 192.168.1.105:/home/ares/nfs_rootfs /home/debian/nfs_rootfs

最后通过搜索尝试修改成如下挂载命令就解决了

#!/bin/sh

sudo busybox mount -o nolock -t nfs 192.168.1.105:/home/ares/nfs_rootfs /home/debian/nfs_rootfs

搞不懂!!!加了个busybox就成功了

猜你喜欢

转载自blog.csdn.net/qq_36413982/article/details/109187694