Gentoo Linux下配置NFS(网络文件系统)
2012-01-14 14:37
465 查看
主机:Gentoo Linux 11.2
内核:Linux 3.0.6
原创作品,转载请表明出处http://blog.csdn.net/yming0221/article/details/7200611
1、内核编译配置
编译内核配置如下,选中NFS服务器支持
2、用于空间软件准备
命令安装nfs-utils
3、配置NFS用户目录及其权限在/etc/exports下
按自己的要求改写
而括号中的参数含义如下:
rw - Allow read and write access
ro - Allow read only access - no write access
async - Reply to requests before data has been committed to the file system. This improves performance, but increases the risk of data loss in the event of a server crash.
no_subtree_check - Disable subtree checking. The technical details are in the man page, but essentially it's recommended for read/write filesystems where files change frequently, such as /home. If you disable subtree checking and export something that's not the root of a filesystem, it's possible a client could access a file outside the exported directory, however.
root_squash - Prevent the client creating files owned by root - instead they will be owned by the anonymous uid/gid (user id / group id, see man page for details).
no_root_squash - Turn off root squashing. Mostly used on diskless clients.
all_squash - Map all uids/gids to the anonymous user. This means that all files written to this filesystem will be owned by the same user.
3、启动NFS服务
在开发板上挂载主机目录成功。
内核:Linux 3.0.6
原创作品,转载请表明出处http://blog.csdn.net/yming0221/article/details/7200611
1、内核编译配置
编译内核配置如下,选中NFS服务器支持
2、用于空间软件准备
命令安装nfs-utils
emerge -av nfs-utils
3、配置NFS用户目录及其权限在/etc/exports下
按自己的要求改写
/home/user/shared 192.168.0.3(async,rw,no_subtree_check)
/home/user/shared2 192.168.0.0/255.255.0.0(async,rw,no_subtree_check)
/mnt/portage 192.168.0.0/16(async,no_subtree_check,rw,no_root_squash)
而括号中的参数含义如下:
rw - Allow read and write access
ro - Allow read only access - no write access
async - Reply to requests before data has been committed to the file system. This improves performance, but increases the risk of data loss in the event of a server crash.
no_subtree_check - Disable subtree checking. The technical details are in the man page, but essentially it's recommended for read/write filesystems where files change frequently, such as /home. If you disable subtree checking and export something that's not the root of a filesystem, it's possible a client could access a file outside the exported directory, however.
root_squash - Prevent the client creating files owned by root - instead they will be owned by the anonymous uid/gid (user id / group id, see man page for details).
no_root_squash - Turn off root squashing. Mostly used on diskless clients.
all_squash - Map all uids/gids to the anonymous user. This means that all files written to this filesystem will be owned by the same user.
3、启动NFS服务
/etc/init.d/nfs start
在开发板上挂载主机目录成功。
相关文章推荐
- Gentoo Linux下配置NFS(网络文件系统)
- Porting:uboot烧写、linux内核烧写、根文件系统烧写:系统移植,nfs同步网络配置
- NFS网络共享文件系统详细配置
- NFS网络文件系统的快速配置----视频下载
- Linux下NFS(网络文件系统)的建立与配置方法
- Linux下NFS(网络文件系统)的建立与配置方法
- 配置网络文件系统NFS服务
- Linux下NFS(网络文件系统)的建立与配置方法
- NFS网络文件系统基本配置、利用kerberos保护nfs输出
- NFS网络文件系统配置
- NFS 网络文件系统的配置
- CentOS Linux上配置NFS网络文件系统以及客户端使用
- PRO-1:Day6-tftp配置,nfs配置 ,配置putty,网络配置,挂载文件系统
- Linux下NFS(网络文件系统)的建立与配置方法 [转]
- NFS 网络文件系统配置
- NFS网络存储文件系统配置流程
- Linux下NFS(网络文件系统)的建立与配置方法
- NFS(network file system,网络文件系统)搭建配置
- NFS网络文件系统安装配置
- Linux下NFS(网络文件系统)的建立与配置方法