automount 配置
来源:互联网 发布:java pow方法 编辑:程序博客网 时间:2024/04/30 18:11
将挂载添加到automount服务
nfs示例:
服务器192.168.0.100已经建立了/opt的nfs服务,在客户机设置automount的步骤如下:
1.确定挂载点的位置,假设挂载到/opt/share/nfs下
2.创建配置文件,名字可以任意取,习惯性的名字是auto.*,放到/etc下,内容如下:
#mount-point(/opt/share/nfs的相对路径) option server ip:path
nfs -onosuid,hard,timeo=5,retry=60,intr 192.168.0.100:/opt
#相当于命令行:
#mount -onosuid,hard,timeo=5,retry=60,intr 192.168.0.100:/opt /opt/share/nfs
3.将2中创建的atuo.*文件加入到/etc/auto.master中:
/opt/share /etc/auto.*
#注意:将auto.*替换为实际的文件名
4.重启automount服务:
/etc/init.d/autofs restart
5.进入到/opt/share目录,ls后看不到nfs目录,这是正常现象,cd nfs是可以进入的,这个目录是自动检测的
当有访问时才自动挂载,长时间不访问会自动umount
samba示例:
主要步骤同nfs设置,option和server ip/path有些区别,格式如下
199 -fstype=cifs,username=adfs_wx,password=///123 ://192.168.0.199/wx
- automount 配置
- automount and autofs
- automount和autofs
- 自动挂载 Automount
- 解决linux停在starting automount无法启动
- linux 控制台模式下usb 自动挂载(usb storage automount)
- Ubuntu 14.04 How to disable automount-open for SD or USB
- 配置
- 配置
- 配置
- 配置
- [配置]
- 配置
- 配置
- 配置
- 配置
- 配置
- 配置
- 使用EVM进行项目管理时的注意事项
- 我的SQL之路2
- 我的游标分页
- 设置自定义ASP.NET服务器控件TagPrefix的几种方法
- tapestry5.1使用 t:if时应注意一点
- automount 配置
- 今天刷了联想乐Phone的S950版固件,有了小部分改善
- 说服他人的5种技巧
- c语言显示当前时间
- abap系统消息处理与自定义消息处理
- Ubuntu不得不分享的24条使用经验
- DDN配置实例
- DevExpress 控件翻译成简体中文(图)
- java 验证电子邮件 java利用正则表达式验证电子邮件 java 验证Email