Hi! I need to do some edits to fstab to auto mount smb shares from my home server.
Should I edit fstab in /etc/? If so, do edits to /etc/fstab persist between updates? From what I understand /etc/ should be a “normal” directory in atomic land.
Why would this be different than on a non-atomic OS, where you’d simply use noauto and user ? IDK if it’s perfectly matching the atomic pattern, but it’s probably an intended use. Why else would /etc be a layered thing if not to support and preserve existing configuration habits?
Hi again! Where do you place these files? I suspect /etc/systemd/system isn’t the right place? Do you use .mount + .automount files? Can you give a more precise example?
automount is for when you only want the mount to happen when you open the folder. You can see in my mount file that the trigger is network-online, i.e. it will automatically mount when my laptop has a network connection.
There’s nothing UBlue specific about this - just search on Google to read up on systemd user mounts.
I read your message after having done the stuff below. It seems to work after reboot. Do you see any problems with using the dirs I have used if they seem to work now? I’d like to survive a system update.
mkdir /var/mnt/serverstorage/
Saved var-mnt-serverstorage.automount in /etc/systemd/system/ with these contents: