![]() My shares are mounted at: /mnt/NAS-WD and /mnt/NAS-Seagate. You define the base folder in the auto.master file (first item in the line) and the sub-folder is defined in the auto.xxxx file (also first item on the line) The line or lines in this file are all built according to this template:Īfter mounting the external device can be found in the following directory structure: Make it a descriptive one to easily find it, especially when you use more than one. This file can have any extention name you like. The complete path is now the sum of the path in the master file + the one in the shares file. When you write the name of a folder in the master file you use indirect addressing: The address you write in the shares file (see next paragraph) becomes the complete address. NOTE: Make sure the used filename in the auto.master file should be exactly the same as the name of the file you use, including the path. # same will not be seen as the first read key seen takesĪdd your line or lines just before the last visible line: +auto.masterĪfter that line an empty line should exist or the configuration will not succeed, so place the cursor after +auto.master and click on ENTER. # above) in the included master map any keys that are the # Note that if there are entries for /net or /misc (as # Include central master map if it can be found using # "nosuid" and "nodev" options unless the "suid" and "dev" # NOTE: mounts done from a hosts map will be mounted with the # For details of the format look at autofs(5). The complete file looks like this when created: You will need to edit it to make it work for you. ![]() This file is created when you install the autofs package. This way I have one master file which, with one line, controls the base of the system and one file which controls all my shares. NAS-WD -fstype=nfs,rw,soft,retry=0 WD:/nfs/Public NAS-Seagate -fstype=nfs,rw,soft,retry=0 Seagate:/shares/Folder1 mnt /etc/autofs/auto.shares -time-out=5 -ghost
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |