I have the following entry in /etc/fstab:
//remote/folder /mnt/local_folder cifs x-systemd.automount,uid=user,gid=user,file_mode=0755,dir_mode=0755,ro 0 0
and it mounts fine, but the systemd unit automount service doesn't start. It appears to have created a mnt-local_folder.automount
service and attempting to start it automatically fails with 'folder already mounted'. The workaround is to unmount the folder, and start the service that way and then the autmount works, but without this additional step if we lose connection to the remote server, it has to be mounted again manually. Is there an fstab config step I'm missing?Many thanks