Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to mount drives using autofs. There are 3 directories that I want to mount: home, data, and web. The mount for /home works but data and web don't work. When I mounted /data and /web manually, the shares showed up. Below has the log:
Jun 10 11:09:18 testdaviddo13 automount: Starting automounter version 5.0.7-99.el7, master map auto.master
Jun 10 11:09:18 testdaviddo13 automount: using kernel protocol version 5.02
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_master: reading master files auto.master
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: spawn_mount: mtab link detected, passing -n to mount
Jun 10 11:09:18 testdaviddo13 automount: spawn_umount: mtab link detected, passing -n to mount
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /home
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /web
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /data
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /misc
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry /-
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_master: lookup(file): read entry +auto.master
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_master: reading master files auto.master
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_master: reading master sss auto.master
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: setautomntent: lookup(sss): setautomntent: No such file or directory
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_master: no map - continuing to next source
Jun 10 11:09:18 testdaviddo13 automount: master_do_mount: mounting /home
Jun 10 11:09:18 testdaviddo13 automount: automount_path_to_fifo: fifo name /run/autofs.fifo-home
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map file /etc/auto.home
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: spawn_mount: mtab link detected, passing -n to mount
Jun 10 11:09:18 testdaviddo13 automount: spawn_umount: mtab link detected, passing -n to mount
Jun 10 11:09:18 testdaviddo13 automount: mounted indirect on /home with timeout 60, freq 15 seconds
Jun 10 11:09:18 testdaviddo13 automount: st_ready: st_ready(): state = 0 path /home
Jun 10 11:09:18 testdaviddo13 automount: master_do_mount: mounting /web
Jun 10 11:09:18 testdaviddo13 automount: automount_path_to_fifo: fifo name /run/autofs.fifo-web
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map file /etc/auto.web
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: mounted indirect on /web with timeout 60, freq 15 seconds
Jun 10 11:09:18 testdaviddo13 automount: st_ready: st_ready(): state = 0 path /web
Jun 10 11:09:18 testdaviddo13 automount: master_do_mount: mounting /data
Jun 10 11:09:18 testdaviddo13 automount: automount_path_to_fifo: fifo name /run/autofs.fifo-data
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map file /etc/auto.data
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: lookup_read_map: read included map +auto.data
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map files auto.data
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map sss auto.data
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: setautomntent: lookup(sss): setautomntent: No such file or directory
Jun 10 11:09:18 testdaviddo13 automount: mounted indirect on /data with timeout 60, freq 15 seconds
Jun 10 11:09:18 testdaviddo13 automount: st_ready: st_ready(): state = 0 path /data
Jun 10 11:09:18 testdaviddo13 automount: ghosting enabled
Jun 10 11:09:18 testdaviddo13 automount: master_do_mount: mounting /misc
Jun 10 11:09:18 testdaviddo13 automount: automount_path_to_fifo: fifo name /run/autofs.fifo-misc
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map file /etc/auto.misc
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: mounted indirect on /misc with timeout 300, freq 75 seconds
Jun 10 11:09:18 testdaviddo13 automount: st_ready: st_ready(): state = 0 path /misc
Jun 10 11:09:18 testdaviddo13 automount: master_do_mount: mounting /-
Jun 10 11:09:18 testdaviddo13 automount: automount_path_to_fifo: fifo name /run/autofs.fifo--
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map file /etc/auto.sw
Jun 10 11:09:18 testdaviddo13 automount: file map /etc/auto.sw not found
Jun 10 11:09:18 testdaviddo13 automount: master_do_mount: mounting /web
Jun 10 11:09:18 testdaviddo13 automount: automount_path_to_fifo: fifo name /run/autofs.fifo-web
Jun 10 11:09:18 testdaviddo13 automount: lookup_nss_read_map: reading map file /etc/auto.web
Jun 10 11:09:18 testdaviddo13 automount: do_init: parse(sun): init gathered global options: (null)
Jun 10 11:09:18 testdaviddo13 automount: mounted indirect on /web with timeout 60, freq 15 seconds
Jun 10 11:09:18 testdaviddo13 automount: st_ready: st_ready(): state = 0 path /web
According to that, it successfully mounted the /web mount. Same for /data. I don't actually see anything in this bit of log that points to any failures. Maybe post the log from when you attempt to access as it might give more information as to the exact nature of the failure.
Last edited by Timothy Miller; 06-10-2019 at 11:27 AM.
I am trying to mount drives using autofs. There are 3 directories that I want to mount: home, data, and web. The mount for /home works but data and web don't work. When I mounted /data and /web manually, the shares showed up.
Would be nice to explain how did you try to mount manually and what does "the shares showed up" means. How do you know it worked for /home?
YThe automount only takes place when I accessed the directory
That is the point in automount. To only mounts things when they're needed. It mounts on access automatically and after some period of dis-use unmounts automatically as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.