-xfn
% more /etc/auto_myconfig /usr/local -rw,intr sparc:/usr/local
在 /etc/auto_myconfig 中,则是去 mount 一台叫 sparc 它所 share 出来 /usr/local 的目录, 并将它 mount 到自己机器的 /usr/local
ps. 如果你使用 automount 的话,在你自己的机器上,并不需要自己去建立 要 mount 的目录, 以上面为例,你并不需要在 /usr 下建立 local 这 个目录再做 mount. auto mount 它会自动帮你建立这个目录,且帮你 mount 上去.
2. 改好了 auto mount 的设定档之後,你必需重跑 autofs 才会使你修改的 auto mount 生效. 执行方法如下:
% su % cd /etc/init.d % autofs stop % autofs start
也就是说, 你要以 root 的身份,先让 aufofs 停掉, 再让它重新 start 就可 以了.
执行完之後, 你就可以到你 mount 的目录下打 ls 看看是否有 mount 进来了上一页 [1] [2] |
|