You are not logged in.
This is probably a newbie question with an easy answer, but I have setup autofs for on-demand access to my nfs shares successfully on Ubuntu and I'm trying the same configuration on my new Arch installation. Problem is, the shares are only mounted when I enter this command (which I got from the Arch wiki):
# automount -f -v
When I do this, the shares are mounted perfectly without errors. When I try to access the mount folder after a reboot, it's empty until I issue above command. How do I go about correcting this? I do not want the nfs shares mounted at boot, I want them mounted when I access my mount folder. Here's my auto.master file:
#
# Sample auto.master file
# This is a 'master' automounter map and it has the following format:
# mount-point [map-type[,format]:]map [options]
# For details of the format look at auto.master(5).
#
#/misc /etc/autofs/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
#/net -hosts
#
# Include /etc/autofs/auto.master.d/*.autofs
# The included files must conform to the format of this file.
#
#+dir:/etc/autofs/auto.master.d
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
#+auto.master
/home/me/Diskstation /etc/autofs/auto.nfs --timeout=90 --ghost
and my auto.nfs file:
Downloads 192.168.1.141:/volume1/Downloads
Temp 192.168.1.141:/volume3/Temp
web 192.168.1.141:/volume1/web
Last edited by Vandaahl (2017-02-26 10:53:07)
Offline
What are you doing to start it at boot? What errors are printed to the journal when this doesn't work?
Moving to NC...
Offline
What are you doing to start it at boot?
Well this is probably my problem then, I'm not doing anything to start it at boot. I assumed installing the autofs package from AUR took care of everything.
So I just did a search on the wiki and found this:
# sudo systemctl enable autofs
And now it's working on boot. Thanks for pointing me in the right direction!
Offline
Arch is not Ubuntu: installing a package doesn't start it, or enable it to run at boot. You are in charge of that.
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline