NFS环境的设置出错(坑爹的小问题)

eth0: link down
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.0.20, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.0.20, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=192.168.0.10, rootpath=
Looking up port of RPC 100003/3 on 192.168.0.10
rpcbind: server 192.168.0.10 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/3 on 192.168.0.10

Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -113 while mounting /rootfs
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00            1024 mtdblock0 (driver?)
1f01            5120 mtdblock1 (driver?)
1f02          122880 mtdblock2 (driver?)
1f03         1968128 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[<c0037a8c>] (unwind_backtrace+0x0/0xfc) from [<c04ac5e0>] (dump_stack+0x18/0x1c
)
[<c04ac5e0>] (dump_stack+0x18/0x1c) from [<c04ac644>] (panic+0x60/0x1a8)
[<c04ac644>] (panic+0x60/0x1a8) from [<c0009168>] (mount_block_root+0x204/0x25c)

[<c0009168>] (mount_block_root+0x204/0x25c) from [<c0009270>] (mount_root+0xb0/0
xf4)
[<c0009270>] (mount_root+0xb0/0xf4) from [<c00093c0>] (prepare_namespace+0x10c/0
x1a8)
[<c00093c0>] (prepare_namespace+0x10c/0x1a8) from [<c0008670>] (kernel_init+0x11
c/0x168)
[<c0008670>] (kernel_init+0x11c/0x168) from [<c0032a7c>] (kernel_thread_exit+0x0
/0x8)

 

 

出现以上问题,以为是环境没有搭好,后来在别人的指导下,发现竟然是坑爹的小问题。

解决办法:发现是虚拟机设置里面的上网设置为NAT模式,改成桥接模式就可以了

eth0: link down
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.0.20, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.0.20, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=192.168.0.10, rootpath=
Looking up port of RPC 100003/3 on 192.168.0.10
Looking up port of RPC 100005/3 on 192.168.0.10
VFS: Mounted root (nfs filesystem) on device 0:14.
devtmpfs: mounted
Freeing init memory: 164K
/etc/rc.d/init.d/netd: line 16: /usr/sbin/inetd: not found
mkdir: cannot create directory '/mnt/disk': File exists
Try to bring eth0 interface up......NFS root ...Done

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值