免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3280 | 回复: 4
打印 上一主题 下一主题

想问为何无法用NFS mount rootfs? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-13 17:00 |只看该作者 |倒序浏览
eth0: link up
IP-Config: Complete:
     device=eth0, addr=192.168.0.104, mask=255.255.255.0, gw=192.168.0.102,
     host=maxwit, domain=, nis-domain=googlecode.com,
     bootserver=192.168.0.102, rootserver=192.168.0.102, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.102
rpcbind: server 192.168.0.102 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.0.102
rpcbind: server 192.168.0.102 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default

主要错误讯息如上

想问为何无法用NFS mount rootfs

我主机是eth1 ,ip=192.168.0.102

论坛徽章:
0
2 [报告]
发表于 2010-01-14 11:03 |只看该作者
把cmdline发来看看,你有没有把rootfs目录设置为nfs共享目录?

论坛徽章:
0
3 [报告]
发表于 2010-01-15 20:48 |只看该作者
我无言了!本来以为是ubuntu NFS有问题 特别换了两台电脑 还是不行,错误都一样
主要错误讯息
...
input: AT Raw Set 2 keyboard as /devices/fpga:06/serio0/input/input0
input: ImExPS/2 Generic Explorer Mouse as /devices/fpga:07/serio1/input/input1
eth0: link up
IP-Config: Complete:
     device=eth0, addr=192.168.0.104, mask=255.255.255.0, gw=192.168.0.102,
     host=maxwit, domain=, nis-domain=googlecode.com,
     bootserver=192.168.0.102, rootserver=192.168.0.102, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.102
rpcbind: server 192.168.0.102 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.0.102
....
1)
/etc/exports
/home/mit/maxwit/rootfs 192.168.0.*(rw,async,no_root_squash,no_subtree_check)
2)
~/maxwit-read-only/application/build
RunQemu()
{
    QEMU_CONSOLE=0
    QEMU_MACH="realview"
    QEMU_HOST_IP="192.168.0.102"
    QEMU_MACH_IP="192.168.0.104"

    echo '#!/bin/sh' > /etc/qemu-ifup
    echo "/sbin/ifconfig eth0 ${QEMU_HOST_IP}" >> /etc/qemu-ifup
    chmod a+x /etc/qemu-ifup

    echo '#!/bin/sh' > /etc/qemu-ifdown
    echo "/sbin/ifconfig eth0 down" >> /etc/qemu-ifdown
    chmod a+x /etc/qemu-ifdown

    if [ x"${QEMU_CONSOLE}" != x"1" ]; then
        EXTRA_QEMU_OPT="-serial stdio"
        EXTRA_COMMAND_LINE="console=ttyAMA0" # fixme
    fi
    qemu-system-${TARGET_ARCH} -M ${QEMU_MACH} -kernel ${IMAGES_PATH}/zImage.${QEMU_MACH} -
}
3)rootfs 位置
/home/mit/maxwit/rootfs

编译过程中都没问题,kernel,g-bios,rootfs都有做出来
然后直接选第13个选项Testing on QEMU

搞了好机天 失败

有人说kenel选项没开 不可能阿 我是用maxwit编的 config没改过
难道是编g-bios时的Build Bootloader (g-bios)没选对吗??我是选2440

错误跟这几篇很像
http://www.gossamer-threads.com/lists/linux/kernel/1134090
这篇好像有点感觉,要修改nfs code
http://blog.chinaunix.net/u1/34474/showart.php?id=2067860
http://cluster.aleph1.co.uk/~martin/qemu.html
http://kldp.org/files/kernel_log.txt

帮我看看吧 感谢!!

[ 本帖最后由 wayling 于 2010-1-15 21:08 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2010-01-24 20:23 |只看该作者
成功了 !!污帮土 8.04,8.10都没问题

之前原来是设定有问题 我确定 污帮土 没BUG

[ 本帖最后由 wayling 于 2010-1-24 20:25 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2010-05-16 16:26 |只看该作者
我也遇到同样的问题, 楼主是怎样解决的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP