我無法掛載 nfs

我無法掛載 nfs

我有一個開發板,其中包含使用 Yocto Project 創建的自己的 Linux 發行版,以及一台裝有 Ubuntu 的筆記型電腦。我希望開發板作為伺服器,筆記型電腦作為客戶端。

在開發板上我建立了一個目錄/nfsserver,我想將其掛載到/mnt/nfsclientUbuntu 上。

內容/etc/exports如下:

/nfsserver clientIP(rw,no_root_squash,sync)

rpcinfo -p | grep nfs在伺服器和rpcinfo -p serverIP | grep nfs客戶端上顯示:

 100003    2   tcp   2049  nfs

showmount -e在伺服器上顯示:

/nfsserver clientIP

showmount -e serverIP在客戶端顯示:

Export list for serverIP:
/nfsserver clientIP

當我嘗試使用時,sudo mount -V 2 -t nfs serverIP:/nfsserver /mnt/nfsclient 我得到以下輸出:

mount from util-linux 2.31.1 (libmount 2.31.1: selinux, btrfs, assert, debug)

df -h顯示沒有新條目。

導致我安裝 nfs 時出現問題的原因是什麼?

預先感謝您的任何幫助。

相關內容