I can no longer mount samba shares using systemd. I know the change to default cifs version is now 2.1, but I'm not sure that is my issue.
I'm attempting to mount my share from an up to date freenas server. The issue I'm having is:
Code
systemctl start storage-ServerFolders-Videos.mount
A dependency job for storage-ServerFolders-Videos.mount failed. See 'journalctl -xe' for details.
and
journalctl -b 0 --no-pager:
Code
Jan 20 21:37:22 le-mx3 systemd[1]: Failed to mount cifs mount script.
Jan 20 21:37:22 le-mx3 systemd[1]: Dependency failed for cifs mount script.
Jan 20 21:37:22 le-mx3 systemd[1]: storage-ServerFolders-Videos.mount: Job storage-ServerFolders-Videos.mount/start failed with result 'dependency'.
Jan 20 21:37:22 le-mx3 systemd[1]: storage-ServerFolders.mount: Unit entered failed state.
I don't think the issue is smb protocol version because nmap shows that I've disabled smbv1 on the server:
Code
nmap -p139,445 --script smb-protocols.nse freenas.local
Starting Nmap 7.60 ( https://nmap.org ) at 2018-01-20 21:54 PST
Nmap scan report for freenas.local (192.168.1.117)
Host is up (0.021s latency).
PORT STATE SERVICE
139/tcp open netbios-ssn
445/tcp open microsoft-ds
Host script results:
| smb-protocols:
| dialects:
| 2.10
| 3.00
| 3.02
|_ 3.11
Nmap done: 1 IP address (1 host up) scanned in 0.58 seconds
Display More
I've tried adding vers=2.10 to the options in the unit file but it still returns a dependency error. I am able to mount the same share via mount -t cifs -o username=user,password=passwd //freenas.local/Videos /storage/ServerFolders/Videos
Anyone have any idea what else I can try to get theseshares to mount with systemd?