I have a laptop that spends 90% of it’s time on a single network, and a server with several shares where I store files, like pictures.
For example I have my fstab configured with this line:
//192.168.224.45/Pictures /home/jediwan/Pictures cifs credentials=/home/jediwan/.smbcredentials,uid=1000,gid=1000,x-systemd.automount 0 0
And it works great as long as I’m on the same network. But if I’m not on my main network the PC struggles to load GNOME and eventually crashes. What do?
Adding
nofail
will most likely fix this. However switching from fstab mounts to systemd mounts could be cleaner as you would be able to create a systemd target that gets activated whenever you’re on your main network and then trigger a mount of the share / unmount when you leave.