配置内核支持NFS启动文件系统

内核支持NFS分区(即编译时在File system中选中[*] Root file system on NFS), 

以及支持内核IP_PNP(即编译时在Networking中选中[*] IP: kernel level autoconfiguration)

    File systems  ---> 

        Network File Systems  ---> 

            <*> NFS file system support                        ## 必选

                [*]   Provide NFSv3 client support             ## 可选

            [*] Root file system on NFS                        ## 必选

    Networking  ---> 

        [*] Networking support 

            Networking options  ---> 

                [*]   IP: kernel level autoconfiguration       ## 必选

需要打开IP:Kernel level autoconfiguration 以及下面所有的选项包括DHCP, BOOTP, RARP,而且NFS Client Support不能是模块,必须编译进内核

 

mount:RPC:Unable to receive;errno=No route to host 

原因:有限制的端口。

(fedora 12)关闭防火墙:方法:

1、永久性关闭

lokkit --disabled
2、 即时生效,重启后失效

service 方式
开启: service iptables start 
关闭: service iptables stop

iptables方式

查看防火墙状态:
/etc/init.d/iptables status

暂时关闭防火墙:
/etc/init.d/iptables stop

重启iptables:
/etc/init.d/iptables restart


mount -t nfs 192.168.1.102:/rootfs /mnt


 

rpcbind server localhost not responding, time out 

mount -t nfs -o nolock 192.168.1.102:/rootfs /mnt

 http://www.cnblogs.com/mchina/archive/2013/01/03/2840040.html

 

转载于:https://www.cnblogs.com/liuchengchuxiao/p/4318982.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值