linux内核是否支持nfs,嵌入式命令:查看设备是否支持nfs
1:查看設備是否支持nfs功能
命令: cat /proc/filesystems
若有一行為 nodev nfs,則開發板Linux內核支持NFS,反之需要配置內核
同樣方法查看Linux主機內核是否支持NFS掛載文件
系統的時候遇到:
[root@HZCTC-hadoop-0-81 hadoop]# mount -t nfs 192.168.0.66:/opt/data /home/hadoop/diskmount: wrong fs type, bad option, bad superblock on 192.168.0.66:/opt/data,?????? missing codepage or helper program, or other error?????? (for several filesystems (e.g. nfs, cifs) you might?????? need a /sbin/mount. helper program)
In some cases useful info is found in syslog - try
dmesg | tail? or so
解決方式:在開發板上安裝:apt-get install nfs-common然后再次掛載。
mount -t nfs -o nolock 192.168.0.136:/nfs/rootfs /mnt
即可掛載成功。
其他問題出現原因:
1、若出現掛載被拒絕,請嘗試雙方互ping是否能通
2、檢查防火墻是否關閉
3、檢查開發板內核是否支持NFS
*博客內容為網友個人發布,僅代表博主個人觀點,如有侵權請聯系工作人員刪除。
總結
以上是生活随笔為你收集整理的linux内核是否支持nfs,嵌入式命令:查看设备是否支持nfs的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux 下i2c读写命令,S3C24
- 下一篇: linux6同步时间,centos 6.