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