在FL2440開發板和ubuntu12.10間搭建NFS,用mount命令掛載後,在開發板上文檔管理器中查看不到掛載文件,在minicom中用ls 也看不到,但在PC LINUX終端中創建了個hello測試文件,在minicom下執行是能成功(同樣ls也看不到該文件),反過來在minicom中用touch命令創建個文件,在PC LINUX上卻能看到這個文件,那說明NFS是肯定是掛載成功了的吧?為何卻在開發板上卻看不到掛載目錄中的文件呢?
自行goolge解決了,http://ubuntuforums.org/showthread.php?t=2198333
“ SOLVED! There is some incompatibility between the very old NFS client version and the new server version. Specifying 'nfsvers=2' on the client (in the mount options) solves the problem. ”
客戶端和PC端版本不兼容問題,
man 5 nfs 查看了下nfsvers=n 的說明如下:
nfsvers=n The NFS protocol version number used to
contact the server's NFS service. If the
server does not support the requested ver‐
sion, the mount request fails. If this
option is not specified, the client negoti‐
ates a suitable version with the server,
trying version 4 first, version 3 second,
and version 2 last.
試到nfsvers=3 OK。