特殊:Badtitle/NS100:Autofs:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:Autofs}} | {{Languages|UbuntuHelp:Autofs}} | ||
== Introduction == | == Introduction == | ||
Automount is the modern way to mount directories over a network. It is | Automount is the modern way to mount directories over a network. It is much easier to manage and more economic in bandwidth than static mounts via fstab. | ||
In this howto, installation and configuration of a files based configuration autofs will be presented. It is not used a lot anymore, but [[UbuntuHelp:AutofsLDAP|AutofsLDAP]] is very | In this howto, installation and configuration of a files based configuration autofs will be presented. It is not used a lot anymore, but [[UbuntuHelp:AutofsLDAP|AutofsLDAP]] is very useful and based on this one. In small business environment, this howto can be useful ''(why?)[because one could expect some servers and shares/exports that have to be distributed using autofs (preferably via yp)''. | ||
== Installation == | == Installation == | ||
Install the following packages: <code><nowiki>autofs</nowiki></code> (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]) | Install the following packages: <code><nowiki>autofs</nowiki></code> (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]) | ||
第21行: | 第21行: | ||
#/net /etc/auto.net | #/net /etc/auto.net | ||
</nowiki></pre> | </nowiki></pre> | ||
As you see, by default, all is commented out. Each mount point is associated with another configuration file. Most of them are now useless (now modern desktop have automount feature with hal & co). This would be | As you see, by default, all is commented out. Each mount point is associated with another configuration file. Most of them are now useless (now modern desktop have automount feature with hal & co). This would be useful for light desktop. <code><nowiki>/net</nowiki></code> and <code><nowiki>/smb</nowiki></code> are still useful. | ||
In Unix world, <code><nowiki>/net</nowiki></code> enable automounting distant file system exported by NFS. For example, if you have a server named <code><nowiki>fileserver</nowiki></code> with a NFS export directory called <code><nowiki>/export</nowiki></code> (see [[UbuntuHelp:NFSServerHowTo|NFSServerHowTo]] for how to setup a such server), you can mount it by typing in a shell command line <code><nowiki>cd /net/fileserver/export</nowiki></code>. In an environment with NFS file servers, such automount can be | In Unix world, <code><nowiki>/net</nowiki></code> enable automounting distant file system exported by NFS. For example, if you have a server named <code><nowiki>fileserver</nowiki></code> with a NFS export directory called <code><nowiki>/export</nowiki></code> (see [[UbuntuHelp:NFSServerHowTo|NFSServerHowTo]] for how to setup a such server), you can mount it by typing in a shell command line <code><nowiki>cd /net/fileserver/export</nowiki></code>. In an environment with NFS file servers, such automount can be useful. | ||
For <code><nowiki>/smb</nowiki></code> mount point, function the same way but is for SMB file systems (if you need to authenticate for acceding the SMB share, the automatic way will not function). | For <code><nowiki>/smb</nowiki></code> mount point, function the same way but is for SMB file systems (if you need to authenticate for acceding the SMB share, the automatic way will not function). | ||
Uncommenting <code><nowiki>/net</nowiki></code> and <code><nowiki>/smb</nowiki></code> is a good solution. | |||
You can add your own mount point with your own options in <code><nowiki>/etc/auto.master</nowiki></code> to suit your needs. | You can add your own mount point with your own options in <code><nowiki>/etc/auto.master</nowiki></code> to suit your needs. | ||
After entering your changes, run the following command to have them taken into account: | After entering your changes, run the following command to have them taken into account: | ||
第30行: | 第30行: | ||
sudo /etc/init.d/autofs reload | sudo /etc/init.d/autofs reload | ||
</nowiki></pre> | </nowiki></pre> | ||
''In other documentation Autofs and Automount seem to be used interchangeably however this document seems to indicate they are different. This document,'' about Autofs, ''starts by talking about Automount and then indicates that Autofs is'' "not used a lot anymore" ''even though [[UbuntuHelp:AutofsLDAP|AutofsLDAP]] is useful. If Automount is an alternative to Autofs, where is the documentation on Automount? [[UbuntuHelp:SettingUpNFSHowTo|SettingUpNFSHowTo]] still refers to autofs for mounting nfs shares automatically and frankly explains the use of autofs better. This document needs rewording to make it more clear.'' | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年5月12日 (二) 15:54的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Autofs }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/af | • {{#if: UbuntuHelp:Autofs|Afrikaans| [[::Autofs/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ar | • {{#if: UbuntuHelp:Autofs|العربية| [[::Autofs/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/az | • {{#if: UbuntuHelp:Autofs|azərbaycanca| [[::Autofs/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/bcc | • {{#if: UbuntuHelp:Autofs|جهلسری بلوچی| [[::Autofs/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/bg | • {{#if: UbuntuHelp:Autofs|български| [[::Autofs/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/br | • {{#if: UbuntuHelp:Autofs|brezhoneg| [[::Autofs/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ca | • {{#if: UbuntuHelp:Autofs|català| [[::Autofs/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/cs | • {{#if: UbuntuHelp:Autofs|čeština| [[::Autofs/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/de | • {{#if: UbuntuHelp:Autofs|Deutsch| [[::Autofs/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/el | • {{#if: UbuntuHelp:Autofs|Ελληνικά| [[::Autofs/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/es | • {{#if: UbuntuHelp:Autofs|español| [[::Autofs/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/fa | • {{#if: UbuntuHelp:Autofs|فارسی| [[::Autofs/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/fi | • {{#if: UbuntuHelp:Autofs|suomi| [[::Autofs/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/fr | • {{#if: UbuntuHelp:Autofs|français| [[::Autofs/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/gu | • {{#if: UbuntuHelp:Autofs|ગુજરાતી| [[::Autofs/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/he | • {{#if: UbuntuHelp:Autofs|עברית| [[::Autofs/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/hu | • {{#if: UbuntuHelp:Autofs|magyar| [[::Autofs/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/id | • {{#if: UbuntuHelp:Autofs|Bahasa Indonesia| [[::Autofs/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/it | • {{#if: UbuntuHelp:Autofs|italiano| [[::Autofs/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ja | • {{#if: UbuntuHelp:Autofs|日本語| [[::Autofs/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ko | • {{#if: UbuntuHelp:Autofs|한국어| [[::Autofs/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ksh | • {{#if: UbuntuHelp:Autofs|Ripoarisch| [[::Autofs/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/mr | • {{#if: UbuntuHelp:Autofs|मराठी| [[::Autofs/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ms | • {{#if: UbuntuHelp:Autofs|Bahasa Melayu| [[::Autofs/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/nl | • {{#if: UbuntuHelp:Autofs|Nederlands| [[::Autofs/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/no | • {{#if: UbuntuHelp:Autofs|norsk| [[::Autofs/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/oc | • {{#if: UbuntuHelp:Autofs|occitan| [[::Autofs/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/pl | • {{#if: UbuntuHelp:Autofs|polski| [[::Autofs/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/pt | • {{#if: UbuntuHelp:Autofs|português| [[::Autofs/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ro | • {{#if: UbuntuHelp:Autofs|română| [[::Autofs/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ru | • {{#if: UbuntuHelp:Autofs|русский| [[::Autofs/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/si | • {{#if: UbuntuHelp:Autofs|සිංහල| [[::Autofs/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/sq | • {{#if: UbuntuHelp:Autofs|shqip| [[::Autofs/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/sr | • {{#if: UbuntuHelp:Autofs|српски / srpski| [[::Autofs/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/sv | • {{#if: UbuntuHelp:Autofs|svenska| [[::Autofs/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/th | • {{#if: UbuntuHelp:Autofs|ไทย| [[::Autofs/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/tr | • {{#if: UbuntuHelp:Autofs|Türkçe| [[::Autofs/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/vi | • {{#if: UbuntuHelp:Autofs|Tiếng Việt| [[::Autofs/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/yue | • {{#if: UbuntuHelp:Autofs|粵語| [[::Autofs/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/zh | • {{#if: UbuntuHelp:Autofs|中文| [[::Autofs/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/zh-hans | • {{#if: UbuntuHelp:Autofs|中文(简体)| [[::Autofs/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/zh-hant | • {{#if: UbuntuHelp:Autofs|中文(繁體)| [[::Autofs/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Autofs|:Autofs|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Autofs/zh | | {{#ifexist: Autofs/zh | | {{#ifeq: {{#titleparts:Autofs|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Autofs|1|-1|}} | zh | | }}
Introduction
Automount is the modern way to mount directories over a network. It is much easier to manage and more economic in bandwidth than static mounts via fstab. In this howto, installation and configuration of a files based configuration autofs will be presented. It is not used a lot anymore, but AutofsLDAP is very useful and based on this one. In small business environment, this howto can be useful (why?)[because one could expect some servers and shares/exports that have to be distributed using autofs (preferably via yp).
Installation
Install the following packages: autofs
(see InstallingSoftware)
Configuration
For configuring autofs, you have to edit /etc/default/auto.master
file. Here is the sample file provided by Ubuntu:
# # $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $ # # Sample auto.master file # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # For details of the format look at autofs(5). #/misc /etc/auto.misc --timeout=60 #/smb /etc/auto.smb #/misc /etc/auto.misc #/net /etc/auto.net
As you see, by default, all is commented out. Each mount point is associated with another configuration file. Most of them are now useless (now modern desktop have automount feature with hal & co). This would be useful for light desktop. /net
and /smb
are still useful.
In Unix world, /net
enable automounting distant file system exported by NFS. For example, if you have a server named fileserver
with a NFS export directory called /export
(see NFSServerHowTo for how to setup a such server), you can mount it by typing in a shell command line cd /net/fileserver/export
. In an environment with NFS file servers, such automount can be useful.
For /smb
mount point, function the same way but is for SMB file systems (if you need to authenticate for acceding the SMB share, the automatic way will not function).
Uncommenting /net
and /smb
is a good solution.
You can add your own mount point with your own options in /etc/auto.master
to suit your needs.
After entering your changes, run the following command to have them taken into account:
sudo /etc/init.d/autofs reload
In other documentation Autofs and Automount seem to be used interchangeably however this document seems to indicate they are different. This document, about Autofs, starts by talking about Automount and then indicates that Autofs is "not used a lot anymore" even though AutofsLDAP is useful. If Automount is an alternative to Autofs, where is the documentation on Automount? SettingUpNFSHowTo still refers to autofs for mounting nfs shares automatically and frankly explains the use of autofs better. This document needs rewording to make it more clear.