LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-10-2019, 11:16 AM   #1
daviddon
LQ Newbie
 
Registered: May 2019
Posts: 16

Rep: Reputation: Disabled
AutoFS can't mount


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
 
Old 06-10-2019, 11:26 AM   #2
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Quote:
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.
 
1 members found this post helpful.
Old 06-10-2019, 11:32 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by daviddon View Post
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?
 
1 members found this post helpful.
Old 06-10-2019, 01:53 PM   #4
daviddon
LQ Newbie
 
Registered: May 2019
Posts: 16

Original Poster
Rep: Reputation: Disabled
You are right. There was no error. The automount only takes place when I accessed the directory
 
1 members found this post helpful.
Old 06-10-2019, 03:10 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by daviddon View Post
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.
 
Old 06-10-2019, 04:47 PM   #6
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,790

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
You can try the -browse map option (in auto.master).
Then it will show all directories; the not mounted ones will have arbitrary attributes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] autofs passing username to autofs mounts Timothy Miller Linux - General 3 08-27-2018 06:24 PM
[SOLVED] any autofs experts here? how to get autofs and WebDAV to play nice? zippydan Linux - General 2 09-05-2016 07:13 PM
Mount. Umount. Mount. Umount. Mount. Umount. Mount.. cwizardone Slackware 10 03-22-2007 09:30 AM
Can autofs mount a remote ftp site? haochela Linux - Networking 1 03-25-2006 05:36 AM
autofs enabled in kernel but auto.mount and auto.master are NOT in /etc! Alybyzrp Linux - General 0 11-11-2003 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration