用NFS挂载root出现:NFS: failed to create MNT RPC client, status=-101(-110)

时间:2024-02-19 12:46:59

 

2014-02-18 08:06:17 By Ly #Linux 阅读(78) 评论(0)

错误信息如下:
Root-NFS: nfsroot=/home/zenki/nfs/rootfs
NFS: nfs mount opts=\'udp,nolock,addr=192.168.8.1\'
NFS:   parsing nfs mount option \'udp\'
NFS:   parsing nfs mount option \'nolock\'
NFS:   parsing nfs mount option \'addr=192.168.8.1\'
NFS: MNTPATH: \'/home/zenki/nfs/rootfs\'
NFS: sending MNT request for 192.168.8.1:/home/zenki/nfs/rootfs
NFS: failed to create MNT RPC client, status=-101
NFS: unable to mount server 192.168.8.1, error -101
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
使用UDP协议就会出现-101使用TCP协议就会出现-110,出现这个挂载错误,有说是因为内核bug,
不过我这边是因为,内核没有正确驱动网卡,导致无法正确设置本地ip,如果内核正确设置网卡(移植正确),那么就是bootargs里面没有正确设定本地地址,挂载nfs,指定本地地址,具体参考nfs mount。