免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1251 | 回复: 3
打印 上一主题 下一主题

[文件系统] mount挂载问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-07-23 16:39 |只看该作者 |倒序浏览
本帖最后由 koofun 于 2015-07-23 16:39 编辑

  mount命令挂载
     mount  -o A=192.168.145.131   -o port=2125 -o  seclient  /mnt/test
     通常来说 seclient 处应该是一个目录,但是今天看到一个程序是上面的这种情况,seclient是编译后一个模块的名称,感觉好奇怪,有人懂吗?

论坛徽章:
20
程序设计版块每日发帖之星
日期:2015-08-17 06:20:00程序设计版块每日发帖之星
日期:2016-07-16 06:20:00程序设计版块每日发帖之星
日期:2016-07-18 06:20:00每日论坛发贴之星
日期:2016-07-18 06:20:00黑曼巴
日期:2016-12-26 16:00:3215-16赛季CBA联赛之江苏
日期:2017-06-26 11:05:5615-16赛季CBA联赛之上海
日期:2017-07-21 18:12:5015-16赛季CBA联赛之青岛
日期:2017-09-04 17:32:0515-16赛季CBA联赛之吉林
日期:2018-03-26 10:02:16程序设计版块每日发帖之星
日期:2016-07-15 06:20:0015-16赛季CBA联赛之江苏
日期:2016-07-07 18:37:512015亚冠之萨济拖拉机
日期:2015-08-17 12:21:08
2 [报告]
发表于 2015-07-24 11:28 |只看该作者
mount [-fnrsvw] [-t vfstype] [-o options] device dir

对于某些文件系统而言,device是什么并不重要,可以随便填,比如proc

mount -t proc any_device_name_you_want_to_use  /proc

论坛徽章:
0
3 [报告]
发表于 2015-07-27 11:46 |只看该作者
回复 2# nswcfd


    谢谢回答!
    那按照你说的,没有目录的话,客户端目录的内容是什么?
    假设被挂载的是一个模块,那内容是不是模块中产生的信息?

论坛徽章:
20
程序设计版块每日发帖之星
日期:2015-08-17 06:20:00程序设计版块每日发帖之星
日期:2016-07-16 06:20:00程序设计版块每日发帖之星
日期:2016-07-18 06:20:00每日论坛发贴之星
日期:2016-07-18 06:20:00黑曼巴
日期:2016-12-26 16:00:3215-16赛季CBA联赛之江苏
日期:2017-06-26 11:05:5615-16赛季CBA联赛之上海
日期:2017-07-21 18:12:5015-16赛季CBA联赛之青岛
日期:2017-09-04 17:32:0515-16赛季CBA联赛之吉林
日期:2018-03-26 10:02:16程序设计版块每日发帖之星
日期:2016-07-15 06:20:0015-16赛季CBA联赛之江苏
日期:2016-07-07 18:37:512015亚冠之萨济拖拉机
日期:2015-08-17 12:21:08
4 [报告]
发表于 2015-07-28 18:04 |只看该作者
不好意思,遗漏了一种情况。楼主的例子里,应该是/etc/fstab里有关于/mnt/test的定义项。

              The mount program does not read the /etc/fstab file if device (or LABEL/UUID) and dir are specified. For example:

                     mount /dev/foo /dir

              If you want to override mount options from /etc/fstab you have to use:

                     mount device|dir -o <options>

              and then the mount options from command line will be appended to the list of options from /etc/fstab.  The usual behaviour is that the last option wins if there is more duplicated options.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP