Hello Manjaro Friends,
My problem is actually not a specific Manjaro problem, but it seems to me that here is the most capable community, that’s why I’m writing here.
I use a lot of different Linux operating systems, but with all of them I have a problem that totally annoys me.
The freezing of terminals and file managers when the source of a SMB network share is not reachable.
I always have my NAS mounted on my systems, under Windows, under MAC and under Linux.
Especially with Linux everything freezes when I click on the network connection and the source is not online, even worse it is when the file manager wants to start with the last path and this was the network path, which is now not online, then the whole desktop is not accessible for a long time.
I’m sure you all know the problem too, long story short.
What I would like to achieve is that the network connection is only established when the source is available.
I could of course write a script for this, but I wonder if this is possibly also feasible with system functions, for example with systemd.
I mount my drives as follows:
//unimatrix/unimatrix-share /srv/mount/unimatrix-share cifs noauto,user,x-systemd.automount,x-systemd.idle-timeout=60,username=****,password=*****,uid=1000,gid=1000,defaults 0 0
I’m not interested in the exact syntax inside the fstab (unless of course you find a logical error), but more about how to solve the problem, e.g. by changing the corresponding systemd units or so.
So again briefly, I want network drives to be mounted only ( manually or automatically ) if the source is present, otherwise nothing should happen.
Would be great if someone could help me with this.