1,linux 内核一定要配置正确,在File systems->Network File Systems ---> (Y)Provide NFSv3 client support ,(Y)Provide NFSv4 client support (EXPERIMENTAL) ,这两个一定要配置正确。否认会出现这个错误:failed: Protocol not supported
2,挂载NFS的命令:
mount -o nolock -t nfs 190.168.1.200:/home/study/tiny4412/rootfs_v2_0_beta/rootfs /mnt
注释:
一定要ping 190.168.1.200,可以ping通;
Nfs配置 gvim /etc/exports,意思是把/home/study/tiny4412/rootfs_v2_0_beta/rootfs这个目录共享出去。
/home/study/tiny4412/rootfs_v2_0_beta/rootfs 190.168.1.*(rw,sync,no_root_squash)