nfs根文件系统问题

1.IP-Config: Complete:
      device=eth0, addr=192.168.0.110, mask=255.255.255.0, gw=192.168.0.110,
      host=SKY2440, domain=, nis-domain=embedsky.net,
      bootserver=192.168.0.104, rootserver=192.168.0.104, rootpath=
VFS: Cannot open root device "nfs" or unknown-block(0,255)
Please append a correct "root=" boot option; here are the available partitions:
1f00             1024 mtdblock0 (driver?)
1f01             4096 mtdblock1 (driver?)
1f02           257024 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255)

解答:编译内核时:
[*] Root file system on NFS 必须选上

更改nfs要重启nfs服务:
  sudo /etc/init.d/nfs-kernel-server restart 
  sudo /etc/init.d/portmap restart 

使用showmount -e查看挂载的nfs目录是否正确!




2.nfs: server 192.168.0.104 not responding, still trying
nfs: server 192.168.0.104 OK
nfs: server 192.168.0.104 OK
根据linux doc下的nfsroot.txt:
nfsroot=[:][,]

  If the `nfsroot' parameter is NOT given on the command line,
  the default "/tftpboot/%s" will be used.

  Specifies the IP address of the NFS server.
The default address is determined by the `ip' parameter
(see below). This parameter allows the use of different
servers for IP autoconfiguration and NFS.

  Name of the directory on the server to mount as root.
If there is a "%s" token in the string, it will be
replaced by the ASCII-representation of the client's
IP address.

  Standard NFS options. All options are separated by commas.
The following defaults are used:
port = as given by server portmap daemon
rsize = 4096
wsize = 4096
timeo = 7
retrans = 3
acregmin = 3
acregmax = 60
acdirmin = 30
acdirmax = 60
flags = hard, nointr, noposix, cto, ac
设置ubboot参数bootargs=console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.101:/home/csb/code/rootfs,rsize=512,wsize=512 ip=192.168.1.110:192.168.1.101:192.168.1.1:255.255.255.0:xxx:eth0:off
#mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 host:/path/to/export /client/to/mount
方法不成功!
目前所知道只有使用交叉线
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值