做嵌入式开发需要用到NFS,在Ubuntu 7.10上配置过程如下:
1、安装nfs服务器
apt-get install nfs-kernel-server
2、修改nsf配置文件
vi /etc/exports 在文件中添加nfs的目录格式如下
/home/linux/xdvr/bin 192.168.1.124(rw,sync,no_root_squash)
保存退出
exportfs -rv3、修改该目录(及其子目录)的权限
chmod 777 -R /home/linux/xdvr/bin 4、修改/etc/hosts
把目标板的ip和名称加到列表中
hosts hosts.allow hosts.deny
jason@tvt:/home/linux/xdvr/td2408ui$ cat /etc/hosts
192.168.1.124 NDVR31XX
127.0.0.1 localhost
127.0.1.1 tvt
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
5、重启nfs
/etc/init.d/nfs-kernel-server restart 6、完成
mount -o nolock -t nfs 192.168.1.107:/home/linux/xdvr/bin /root
本文详细介绍如何在Ubuntu 7.10系统中配置NFS服务器,包括安装NFS服务器、配置目录权限、修改配置文件及主机文件等步骤,并提供最终挂载验证的方法。
4277

被折叠的 条评论
为什么被折叠?



