如果通过NFS挂载,为什么proc文件系统为空

时间:2014-05-05 10:20:51

标签: linux nfs proc

我很想知道是否可以显示通过网络挂载的/ proc虚拟文件系统的内容。所以我导出了“/”并通过NFS将其安装在另一个系统中。然后我做了cd进入proc目录并做了ls。它什么都没显示。有人请解释为什么它是空的。

1 个答案:

答案 0 :(得分:1)

请阅读man 5 exports

   nohide This option is based on the option of the same name provided  in
          IRIX  NFS.  Normally, if a server exports two filesystems one of
          which is mounted on the other, then  the  client  will  have  to
          mount  both filesystems explicitly to get access to them.  If it
          just mounts the parent, it will see an empty  directory  at  the
          place where the other filesystem is mounted.  That filesystem is
          "hidden".

默认情况下,客户端不会看到嵌套的挂载。