嵌入式环境:挂载开发板根NFS文件系统失败
挂载开发板根NFS文件系统的时候,发现了下面的问题:
Looking up port of RPC 100003/2 on 192.168.2.109
rpcbind: server 192.168.2.109 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.2.109
rpcbind: server 192.168.2.109 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
------------------------------------------------------------------------------
出现这个问题,经过检查,原来是linux server的防火墙没有关。
1. 报这种错,防火墙是原因之一。
但不一定就是这一个原因,还有
2. 开发板的bootloader的 bootargs没有设置正确导致找不到server 的nfs,一般格式如下:
set bootargs noinitrd root=/dev/nfs nfsroot=192.168.2.109:/home/fs/work/nfs_root/fs_qtopia ip=192.168.2.111:192.168.2.109:192.168.2.1:255.255.255.0::eth0:off init=/linuxrc console=ttySAC0
3. 另外挂载nfs需要启动nfs服务,并设置好nfs exports目录,
/etc/init.d/nfs start [root@localhost fs]# vi /etc/exports /home/fs/work/nfs_root/fs_mini_mdev *(rw,sync,no_root_squash,no_subtree_check) /home/fs/work/nfs_root/fs_qtopia *(rw,sync,no_root_squash,no_subtree_check)
4. 不同开发板,不同内核,不同uboot的挂载命令不尽相同,不能盲目照搬。
我在使用s5pc100开发板的时候,nfs挂载错误如下:
usbhid: USB HID core driver TCP cubic registered NET: Registered protocol family 17 Looking up port of RPC 100003/2 on 192.168.2.109 rpcbind: server 192.168.2.109 not responding, timed out Root-NFS: Unable to get nfsd port number from server, using default Looking up port of RPC 100005/1 on 192.168.2.109 rpcbind: server 192.168.2.109 not responding, timed out Root-NFS: Unable to get mountd port number from server, using default Root-NFS: Server returned error -101 while mounting /work/farsight/nfs_root/rootfs VFS: Unable to mount root fs via NFS, trying floppy. VFS: Cannot open root device "nfs" or unknown-block(2,0)
检查我的bootargs设置,
bootargs=root=/dev/nfs nfsroot=192.168.2.109:/work/farsight/nfs_root/rootfs init=/linuxrc console=ttySAC0
经过一番比对,发现应该是:
bootargs=root=nfs nfsroot=192.168.2.109:/work/farsight/nfs_root/rootfs ip=192.168.2.200 init=/linuxrc console=ttySAC0
这一点不同于jz2440开发板。
====================================================================================================
====================================================================================================
相关链接:
nfs服务以及mount命令使用 http://blog.itpub.net/23073818/viewspace-757312/
1、在A机上启动NFS和RPC服务
/etc/init.d/portmap start
/etc/init.d/nfs start
2、检查NFS的运行级别:
chkconfig --list portmap
chkconfig --list nfs
3、根据需要设置在相应的运行级别自动启动NFS:
chkconfig --level 235 portmap on
chkconfig --level 235 nfs on
--检测nfs 的rpc 注册状态
rpcinfo -u 主机名或IP 地址 进程
[root@tmg133 data3]#-- rpcinfo -u 192.168.2.109 nfs
program 100003 version 2 ready and waiting
program 100003 version 3 ready and waiting
program 100003 version 4 ready and waiting
[root@tmg133 data3]# --rpcinfo -u 192.168.2.109 mount
program 100005 version 1 ready and waiting
program 100005 version 2 ready and waiting
program 100005 version 3 ready and waiting
--查看共享目录和参数设置 cat /var/lib/nfs/etab
/home/fs/work/nfs_root/fs_mini_mdev *(rw,sync,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,no_subtree_check,secure_locks,acl,mapping=identity,anonuid=65534,anongid=65534)
/home/fs/work/nfs_root/fs_qtopia *(rw,sync,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,no_subtree_check,secure_locks,acl,mapping=identity,anonuid=65534,anongid=65534)
~ (ro,sync,wdelay,hide,nocrossmnt,secure,root_squash,no_all_squash,no_subtree_check,secure_locks,acl,mapping=identity,anonuid=65534,anongid=65534)
用命令行方式关闭CentOS防火墙 http://blog.163.com/zhaoweibiao87@126/blog/static/13479948120126611325557/
临时性的完全关闭防火墙,可以不重启机器:
#/etc/init.d/iptables status ## 查看防火墙状态
#/etc/init.d/iptables stop ## 本次关闭防火墙
#/etc/init.d/iptables restart ## 重启防火墙
转载于:https://www.cnblogs.com/mylinux/p/5022509.html
嵌入式环境:挂载开发板根NFS文件系统失败相关推荐
- 【Linux系统开发】x210开发板根目录文件系统构建
文章目录 一.开发板配置 二.了解rootfs 三.虚拟机文件配置 1.目录配置 2.x210_bsp配置 3.rootfs配置 4.make menuconfig 四.busybox的移植实战 1. ...
- 嵌入式 hi3519平台uboot引导nfs文件系统
首先贴出来我的bootargs的设置(注没有换行符!!!): setenv bootargs noinitrd mem=64M root=/dev/nfs init=/linuxrc rw nfsro ...
- linux服务器挂载不上nfs,我遇上的挂载不上NFS文件系统的坑
主机平台:window7 vmware9.0 linux系统 开发板平台: mini2440 使用的根文件系统 :友善之臂的 rootfs_qtopia_qt4 使用的linux kernel : 友 ...
- linux nfs系统客户端,Linux系统中挂载共享目录NFS文件系统客户端安装与配置
NFS服务简介 NFS是Network File System(网络文件系统).主要功能是通过网络让不同的服务器之间可以共享文件或者目录.NFS客户端一般是应用服务器(比如web,负载均衡 ...
- linux文件系统挂载不上,nfs文件系统在linux下挂载不上的解决办法
问题一: # mount -t nfs -o 192.168.1.51:/mnt /mnt/ mount: can't find /mnt/ in /etc/fstab 这种情况说明我们的/mnt目录 ...
- 嵌入式Linux开发板上NFS文件系统的使用【ZT】
本文转载于http://www.dz863.com/RTOS/Embedded-linux/Linux-NFS.htm 本文描述了在开发嵌入式linux系统时调试程序的一个方法,本文以深圳远峰的YF2 ...
- linux开发 | nfs挂载根文件系统失败、处理过程
NFS挂载根文件系统失败 [ 5.552903] s5p-tvout s5p-tvout: hpd status is cable removed [ 5.563919] DBUG_PORT must ...
- 使用NFS启动Tiny4412开发板根文件系统
1.Ubuntu14.04上搭建NFS服务 1.1.安装NFS服务 $ sudo apt-get install nfs-kernel-server //安装NFS服务 1.2 创建共享文件夹 ...
- 【6410开发板资料】三星S3C6410开发板NFS挂载失败原因
[6410开发板资料]友坚UT-S3C6410开发板NFS挂载失败原因 UT-S3C6410开发板NFS挂载失败原因之一 在ubuntu下安装.配置NFS服务器的具体步骤如下: 1.安装NFS服务器. ...
最新文章
- [Java Web整合开发王者归来·刘京华] 1、 Java Web开发
- socket编程listen函数限制连接数的解决方案_网络编程——服务器篇
- php视频流传输,视频流传输协议RTP/RTCP/RTSP/HTTP的区别
- uva 1312——Cricket Field
- Linux进程全解12——lIPC机制之管道,SystemV IPC介绍
- 猎户座计划软件测试,四核配置跑分:猎户座4412性能强劲_平板电脑评测-中关村在线...
- 面试官最常问的问题总结(一)
- python需要缩进的块_“需要缩进块”
- tyvj 1068 STR
- Java中六种List集合循环遍历取值
- C#笔记12 自定义集合和常用集合
- POI实现超大数据的Excel的读写操作
- 安全策略篇 ASPF:隐形通道
- 5个AIDA64激活密钥
- Matlab实现常见的插值算法
- python 断言详细讲解用法及其案例_python断言_python 断言_python断言案例 - 云+社区 - 腾讯云...
- JAVA基础——对象与引用概念(转载)
- IT人也有情感------------孔雀东南飞
- 我热爱生命本来的样子
- 1-开发环境--android文件系统的结构