Seems that fstab is not auto mounting my servers smb shares at bootup. This is the entry I have added:
# Mount Server Shares
//192.168.1.22/share-name /mnt/share-name cifs credentials=/home/username/.smbcredentials,_netdev,rw,uid=1000,gid=1000,vers=2.1 0 0
The .smbcredentials file is in this format:
username=<username>
password=<passowrd>
I have confirmed the user/pass is correct and that the corresponding directories are in /mnt.
Is there something wrong in this configuration, or am I missing something else?
I changed to the “x-systemd” verbiage and still doesnt mount at boot. Also moved the .smbcreds to the / level, no change.
It does seem to now mount whenever the /mnt/share-name folder is accessed. For example, if I do “ls /mnt/share-name” it mounts the share. Or if I access that directory via an app, like Gimp, “File/Open…” it mounts the share automatically.
That is how a systemd-automount works. It mounts it on access. The great thing about that is that if anything is wrong or if you lose connection everything continues to work and then it just remounts it when you try to access it again.