Autofs mounts in ubuntu server

Server Version#: 18.04.1 LTS
Player Version#: Version 1.13.8.5395

Hello ! I’m trying all the afternoon to configure autofs in my ubuntu server but it seems i can’t figure out what’s wrong and i would need your help . So i have install autofs nfs-common, create a directory /data , put inside /etc/auto.master the line /data /etc/auto.data . I created the configuration file for data directory with sudo cp /etc/auto.misc /etc/auto.data and put inside movies -fstype=nfs4 192.168.5.224:/volume1/video . The device with the 224 adress is a synology nas where i enabled in the File Services the NFS as also the Nfsv4.1 support . I created also a plex user as the username in the dedicated plex server , gave read write permissions on the shared folder and the shared folder has read write privileges , no mapping, asyncronous , non priviliged port allowed as also cross mount.

No mount point is created on the /data folder. Until now i used nfs and smb through fstab and hadn’t ever used the autofs so i have no clue whats happening.

I stop the service and run automount in foreground with verbose information .i got

lookup(dir): dir map /etc/auto.master.d missing or not readable
lookup(file): failed to read included master map dir:/etc/auto.master.d
lookup(file):failed to read included master map auto.master
mounted indirect on /data with timeout 300 , freq 75 seconds

Any clue ? Thanx !

I’ve never had much luck with the portability of autofs mounts occurring fast enough when they are needed.

Instead, I opt to preform the hard mount, at boot, before PMS starts.
This guarantees PMS will find the directory and contents during initialization.

something along the lines of

# 4K (8 bit) 
vienna:/4k        /vie/4k          nfs,intr,rw,vers=4,timeo=15,auto,async,nofail,bg 0 0
2 Likes

Hmm perfect i opted for the fstab solution .


# 4K (8 bit) 
vienna:/4k        /vie/4k          nfs,intr,rw,vers=4,timeo=15,auto,async,nofail,bg 0 0

in case the someone else wanna try the command , after the nfs it needs a space otherwise it’s failing to mount the volume.

lol:/4k        /vie/4k          nfs          intr,rw,vers=4,timeo=15,auto,async,nofail,bg 0 0

Thanx a lot Chuck ! Really appreciate all your work for the community ! Cheers !

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.