“ Maps” are a key concept when it comes to AutoFS. Now that AutoFS is correctly installed on your system, let’s see how you can start creating your first map. You can also enable the AutoFS service for it to be run at startup $ sudo systemctl enable autofs Right after the installation, make sure that the AutoFS service is running with the “systemctl status” command $ sudo systemctl status autofs Add the “ automount” entry to your “nf” file and link it to the “ files” source.Will create the AutoFS service in systemd.Create multiple configuration files in the /etc directory such as : auto.master,, auto.misc and so on.When installing the AutoFS package, the installation process will : Now that your system is updated, you can install AutoFS by running the “apt-get install” command with the “autofs” argument. $ sudo -vīefore installing the AutoFS utility, you need to make sure that your packages are up-to-date with repositories. To verify it, simply run the “sudo” command with the “-v” option : if you don’t see any options, you are good to go. Prerequisitesīefore starting, it is important for you to have sudo privileges on your host. In this tutorial, you will learn how you can install and configure AutoFS on Linux systems. Luckily for you, there is a better and more cost effective way of mounting drives : by using the AutoFS utility.ĪutoFS is a utility that mount local or remote drives only when they are accessed : if you don’t use them, they will be unmounted automatically. If you chose to mount drives permanently, you have probably added them to your fstab file. Whether you are an experienced system administrator or just a regular user, you have probably already mounted drives on Linux.Drives can be local to your machine or they can be accessed over the network by using the NFS protocol for example.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |