在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
一、准备工作 工作环境:win7+虚拟机(ubuntu14.04 32bit) 1.修改VM虚拟机网络桥接 2.ubuntu上安装nfs-server 在 Ubuntu 命令行里输入命令"sudoapt-getinstallnfs-kernel-server", 提示"Y/N"的时候输入"Y"。 3.创建nfs_server文件夹 4.修改/etc/exports 添加/home/zxy/nfs_server *(rw,sync,no_root_squash) 5.启动nfs server 输入命令"sudo /etc/init.d/nfs-kernel-serverstart"启动 nfsserver。 showmount -e查看 二 1.开发板nfs server同步 mount -t nfs 192.168.1.28:/home/zxy/nfs_server/mnt/nfs_client 如果出错svc: failed to register lockdv1 RPC service (errno 5). 就将 mount -t nfs 改为mount -o nolock
如果挂载的时候提示mount: mounting 192.168.1.28:/home/zxy/nfs_server on /mnt/nfs_client/ failed: No such device 则有可能是arm linux的内核关于NFS的选项没有打开,按如下打开: File systems ---> [*] Network File Systems ---> <*> NFS client support [*] NFS client support for NFS version 3 [*] NFS client support for the NFSv3 ACL protocol extension [*] NFS client support for NFS version 4 (EXPERIMENTAL) [*] NFS client support for NFSv4.1 (DEVELOPER ONLY) [*] Root file system on NFS [*] Networking support ---> Networking options ---> [*] IP: kernel level autoconfiguration
|
请发表评论