Auto.master (en): Unterschied zwischen den Versionen

Aus Gemini-Wiki
Zur Navigation springen Zur Suche springen
 
Zeile 67: Zeile 67:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
{{Hinweis|The definition of the mapping file <code>auto.gemini</code> is handled by the GP Plugin 3.3.}}
+
{{Hinweis|The definition of the mapping file <code>[[auto.gemini (en)|auto.gemini]]</code> is handled by the GP Plugin 3.3.}}
 
{{Hinweis|Thee <code>--ghost</code> option enables the visibility in the directory <code>/media/network</code>.}}
 
{{Hinweis|Thee <code>--ghost</code> option enables the visibility in the directory <code>/media/network</code>.}}
  

Aktuelle Version vom 16. November 2014, 23:03 Uhr

Deutsch.png - in Deutsch English.png - in English

The auto.master (master mapping file) is a configuration file of autofs. Every active line defines a moint point and refers to an other file, the mapping file. In the mapping file (e.g. auto.hotplug, auto.network or auto.gemini) the parameters for mounting devices (e.g. NAS) are defined. These settings are used by the automounter.

auto.master under OE2.0

In an OE 2.0 image from DMM the master mapping file looks like:

root@dm8000:~# cat /etc/auto.master 
#
# $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).
#/smb   /etc/auto.smb
#/net   /etc/auto.net
/autofs     /etc/auto.hotplug
/media/net  /etc/auto.network

In this case, all mounts are found in:

/media/net

The access for the different target devices are defined in:

/etc/auto.network
Ambox notice.png The mapping file auto.hotplug under EO 2.0 is used for mounting optical drives.

auto.master under OE2.2

In an OE 2.2 image from DMM with gemini the master mapping file looks like:

root@dm7080:~# cat /etc/auto.master
#
# 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
#
# NOTE: mounts done from a hosts map will be mounted with the
#       "nosuid" and "nodev" options unless the "suid" and "dev"
#       options are explicitly given.
#
#/net   -hosts
#
# Include /etc/auto.master.d/*.autofs
#
+dir:/etc/auto.master.d
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
/media/network  /etc/auto.gemini --ghost
Ambox notice.png The definition of the mapping file auto.gemini is handled by the GP Plugin 3.3.
Ambox notice.png Thee --ghost option enables the visibility in the directory /media/network.

In this case all the mount points will be in the directory:

/media/network

The access on the different target devices are specified in the file:

/etc/auto.gemini

Enigma

Enigma boxes don't use a master file. The reference to the mapping file is defined in the script autofs_script.sh (fixed definition).

See also