orangepizero3 ubuntu 客户端上的 NFS 挂载问题

orangepizero3 ubuntu 客户端上的 NFS 挂载问题

我有一个运行着有效 export.conf 的 NFS 服务器,网络上的 4 个客户端中有 3 个能够毫无问题地连接到该服务器并且可以进行读/写。

第四个客户端(orangepizero3)是问题所在。当我尝试挂载 NFS 目录时,我收到以下错误

machs@orangepizero3:~$ sudo mount -t nfs  192.168.0.131:/media/smilingBuddha /media/smilingBuddha -vvv
mount.nfs: timeout set for Wed Nov 15 13:35:23 2023
mount.nfs: trying text-based options 'vers=4.2,addr=192.168.0.131,clientaddr=192.168.0.246'
mount.nfs: mount(2): Protocol error
mount.nfs: Protocol error

我尝试了几种不同的 mount 命令,指定了各种 NFS 选项,但最终在超时后失败。

machs@orangepizero3:~$ sudo mount -t nfs -o mountvers=3 electricsheep:/media/smilingBuddha /media/smilingBuddha -vvv
mount.nfs: timeout set for Wed Nov 15 13:43:12 2023
mount.nfs: trying text-based options 'mountvers=3,addr=192.168.0.131'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.0.131 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.0.131 prog 100005 vers 3 prot UDP port 50411
mount.nfs: mount(2): Input/output error
mount.nfs: mount system call failed

更令人困惑的是,我可以在 orangepizero3 上毫无问题地从旧的 NAS 盒安装 NFS 共享)

machs@orangepizero3:~$ sudo mount /media/pillarOfAutumn -vvv
mount.nfs: timeout set for Wed Nov 15 13:36:56 2023
mount.nfs: trying text-based options 'hard,intr,vers=4.2,addr=192.168.0.77,clientaddr=192.168.0.246'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'hard,intr,vers=4,minorversion=1,addr=192.168.0.77,clientaddr=192.168.0.246'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'hard,intr,vers=4,addr=192.168.0.77,clientaddr=192.168.0.246'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'hard,intr,addr=192.168.0.77'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.0.77 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.0.77 prog 100005 vers 3 prot UDP port 46905

这成功了,我可以访问该 NFS 目录!

我唯一能想到的是,orangepizero3 运行的是较旧的内核,这是必要的,因为 6.x 内核无法与板载 wifi 一起使用。

客户

machs@orangepizero3:~$ showmount -e electricsheep
Export list for electricsheep:
/media/smilingBuddha 192.168.0.0/24


machs@orangepizero3:~$ rpcinfo -p electricsheep | grep nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs

machs@orangepizero3:~$ uname -a
Linux orangepizero3 5.4.125 #1.0.0 SMP Fri Jun 30 11:59:12 CST 2023 aarch64 aarch64 aarch64 GNU/Linux

服务器

machs@electricSheep:~$ uname -a
Linux electricSheep 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct  9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

machs@electricSheep:~$ cat /etc/exports 
/media/smilingBuddha  192.168.0.0/24(rw,sync,no_root_squash,no_subtree_check)

我无法通过常规方法解决此问题,即在谷歌上搜索错误代码。如能得到任何帮助,我将不胜感激!谢谢

相关内容