The following line is for shares using older versions of NFS (prior to version 4): Remember, the mount points specified here will be relative to the mount point given in /etc/auto.master. If you have previously configured static mounts in /etc/fstab, it may be helpful to refer to those. This file should contain a separate line for each NFS share. Now we will create the file which contains our automounter map: Type the following into a terminal: $ sudo nano /etc/auto.masterĪdd the following line at the end of /etc/auto.master: /nfs /etc/auto.nfs.The following step creates a mount point at /nfs and configures it according to the settings specified in /etc/auto.nfs (which we will create in the next step). Go to the NFS Setup Page to learn how to set up such a server. This howto assumes that you are already familiar with NFS exports, and that you already have a properly-functioning NFS share on your network. In this howto, we will configure autofs to auto-mount an NFS share, using a set of configuration files. These files are usually named using the convention auto., where can be anything as long as it matches an entry in auto.master and is valid for a file-name. If the map file is not specified using a full local or network path, the Name Service Switch configuration will be used to locate the map, e.g.: /- auto.dataĪs indicated above, each autofs mount has its own map file.For example, the following line instructs autofs to create a mount-point at the place specified in auto.data: The mount-point entry in auto.master is always /. This entry in auto.master tells autofs to look in /etc/auto.smb and create mount-points in the /smb directory.ĭirect maps create a mount-point at the path specified in the relevant map file. For example, consider the following master map entry: Indirect maps, such as those in the auto.master file shown above, create-mount points as subdirectories inside the main mount-point. mount-point :] map Īutomount maps can be direct or indirect.# For details of the format look at autofs(5).īy default, all lines are commented out by using the # character.Įach of the lines in auto.master describes a mount and the location of its map. # This is an automounter map and it has the following format Here is the sample file provided by Ubuntu: Unless you have a good reason for changing this, leave it as the default. The master configuration file for autofs is /etc/auto.master by default. There are other ways to configure autofs on a network (see AutofsLDAP), but config files provide the simplest setup. Install the autofs package either by clicking here or entering the following in a terminal window:Īutofs can be configured by editing configuration files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |