Chinaunix首页 | 论坛 | 博客
  • 博客访问: 721880
  • 博文数量: 124
  • 博客积分: 3156
  • 博客等级: 中校
  • 技术积分: 1584
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-02 10:29
文章分类

全部博文(124)

文章存档

2012年(3)

2011年(2)

2010年(61)

2009年(34)

2008年(24)

我的朋友

分类: LINUX

2010-10-10 15:04:00

1,u-boot设置参数:
setenv bootargs "noinitrd root=/dev/nfs rw nfsroot=192.168.0.3:/home/xu_reny/mini2440/source/target/rootfs ip=192.168.0.2:192.168.0.1::255.255.255.0 console=ttySAC0,115200 init=/linuxrc mem=64M"

2,/etc/export设置:
/home/xu_reny/mini2440/source/target/rootfs 192.168.0.* (rw,sync,no_root_squash)

然后保存退出。
添加的内容表示:允许ip 地址范围在192.168.0.*的计算机以读写的权限来访问/home/work 目录。
/home/xu_reny/mini2440/source/target/rootfs 也称为服务器输出共享目录。
括号内的参数意义描述如下:
rw:读/写权限,只读权限的参数为ro;
sync:数据同步写入内存和硬盘,也可以使用async,此时数据会先暂存于内存中,而不立即写入硬盘。
no_root_squash:NFS 服务器共享目录用户的属性,如果用户是 root,那么对于这个共享目录来说就具有 root 的权限。

3,启动nfs服务
service nfs restart
chkconfig nfs on

阅读(1409) | 评论(1) | 转发(1) |
给主人留下些什么吧!~~

chinaunix网友2010-10-11 17:45:24

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com