I'm trying to configure my RPi to use autofs to mount at boot a NFS share from my QNAP NAS.
The manual mount with
mount -v -t nfs server://share /mnt/share
works and also the autofs service works if I manually start it with
sudo service autofs start
after starting also rpcbind and nfs-common services first.
Now I want that all the 3 services involved (rpcbind, nfs-common and autofs) start automatically at boot.
Since Raspbian Jessie uses systemd, what should I do to add to the boot the rpcbind and nfs-common services, that should start before autofs?
Should I use init.d and so
sudo update-rc.d rpcbind enable
sudo update-rc.d nfs-common enable
or do I have to create a systemd unit file?
fstabtoo on Wheezy. But now I want to switch toautofsthat is more robust and reliable. Anyway fstab works too on Jessie. Did you make a clean Jessie installation or did you make an upgrade? – Cheshire Cat Feb 11 '16 at 12:31