Chinaunix

标题: mount挂载问题 [打印本页]

作者: koofun    时间: 2015-07-23 16:39
标题: mount挂载问题
本帖最后由 koofun 于 2015-07-23 16:39 编辑

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

作者: koofun    时间: 2015-07-27 11:46
回复 2# nswcfd


    谢谢回答!
    那按照你说的,没有目录的话,客户端目录的内容是什么?
    假设被挂载的是一个模块,那内容是不是模块中产生的信息?
作者: nswcfd    时间: 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.





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2