I’m sorry, but after browsing the internet for a whole day, I unfortunately need help.
I am lost!
I’ve installed Endeavour OS on my laptop and I’m using a Synology NAS at home. I’ve tried to mount some folders I’m sharing with user login permissions on this NAS to my filesystem on the laptop. I remember having done this once with an arch installation using the fstab on my stationary system. It was hard, because the system tried to mount the shares before the network connection was established, but somehow I figured it out.
But now, with a mobile device, I want to establish an auto mount depending on the user logging into the system. And I want this auto mount only to “trigger”, if the laptop is part of a specific network, because the NAS isn’t accessible from outside of the local network.
I’ve found this article:
This looks like the solutions for my problem, but I didn’t get it to work! It would just do nothing and I’m missing some explanations.
On other forums you are reading about using a systemd mount or a systemd user mount.
Here are some of the questions I can name right now:
- I need to add a link to the credentials-file somewhere.
- I need the mounted directories to have read and write access by the user without entering the sudo pw.
- Where should I mount the shares? I would like to mount them the same way Thunar does, if I access the network and enter the login manually. I would like to see them in the Network Tab with the eject button beside it.
- I want the connection to be disconnected, when I leave the network or shutdown the system.
I know these are a lot of questions, but some hints to some good instructions would help me a lot.