挂载失败的原因
1.检测是否关闭了防火墙,IP地址是否为同一网段,是否可以ping通。
2.在虚拟机中没有问题,在板子上有问题。提示
# mount -t nfs -o nolock 192.168.12.90:/home/light/nfs /mnt/nfs
mount: wrong fs type, bad option, bad superblock on 192.168.12.90:/home/light/nfs,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
查资料提示少mount.nfs文件,找来后,错误消失了,但是挂载后没反应。
最后加上busybox指令后解决。
# busybox mount -t nfs -o nolock 192.168.2.107:/home/zqs/workdir/nfsroot /nfs
慧若
/mnt/nfs *(rw,sync,no_root_squash,no_subtree_check)
/mnt/nfsroot *(rw,sync,no_root_squash,no_subtree_check)
网友评论