Every time i boot i get the splash saying systemd[1]: Failed to mount /run/media/greg/TRUENAS.
I have a fstab with
//192.168.2.102/main/jackdinn /run/media/greg/TRUENAS cifs user,nofail,credentials=/home/greg/.smbcredentials-nas,iocharset=utf8,uid=1000,gid=1000,noperm,_netdev 0 0
The mount does work fine if i mount it manually after login, it just wont mount at boot.
5.950516] CIFS: Attempting to mount \\192.168.2.102\main
[ 5.950538] CIFS: VFS: Error connecting to socket. Aborting operation.
[ 5.950542] CIFS: VFS: cifs_mount failed w/return code = -101
Jun 06 18:41:33 greg-inspiron5767 systemd[1]: run-media-greg-TRUENAS.mount: Mount process exited, code=exited, status=32/n/a
Jun 06 18:41:33 greg-inspiron5767 systemd[1]: run-media-greg-TRUENAS.mount: Failed with result 'exit-code'.
Jun 06 18:41:33 greg-inspiron5767 systemd[1]: Failed to mount /run/media/greg/TRUENAS.
I found all sorts of suggestions to add to the fstab like _netdev, i have tried them all.
I also found some saying i should not even be using fstab but its taken me long enough to get fstab working at all, i defiantly dont understand systemd or how to use it to mount smb shares.
I also found someone with the exact same problem from 4 years ago on reddit https://www.reddit.com/r/debian/comments/9rvj0j/cifs_shares_not_mounting_at_boot/ but their answer was to “change allow-hotplug by auto” in /etc/network/interfaces but i dont even have that file and im using network-manager.
EDIT:- a little more diagnostic info.
❰greg❙~❱✔≻ systemctl status run-media-greg-TRUENAS.mount
× run-media-greg-TRUENAS.mount - /run/media/greg/TRUENAS
Loaded: loaded (/etc/fstab; generated)
Active: failed (Result: exit-code) since Mon 2022-06-06 18:41:33 BST; 55min ago
Where: /run/media/greg/TRUENAS
What: //192.168.2.102/main/jackdinn
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
CPU: 3ms
Jun 06 18:41:31 greg-inspiron5767 systemd[1]: Mounting /run/media/greg/TRUENAS...
Jun 06 18:41:33 greg-inspiron5767 mount[503]: mount error(101): Network is unreachable
Jun 06 18:41:33 greg-inspiron5767 mount[503]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Jun 06 18:41:33 greg-inspiron5767 systemd[1]: run-media-greg-TRUENAS.mount: Mount process exited, code=exited, status=32/n/a
Jun 06 18:41:33 greg-inspiron5767 systemd[1]: run-media-greg-TRUENAS.mount: Failed with result 'exit-code'.
Jun 06 18:41:33 greg-inspiron5767 systemd[1]: Failed to mount /run/media/greg/TRUENAS.
❰greg❙~❱✘≻
Very confused.