linuxautofs vs systemd automount
linuxautofs vs systemd automount
I mentioned using systemd automount since I don’t really like the autofs syntax and I prefer simpler options. Autofs remains a useful tool nonetheless.
To my understanding, securing a mount with autofs isn't straightforward. Systemd mount units can still serve as dependencies for other systemd services or applications. Beyond that, the main distinctions seem to lie in their setup rather than functionality. The fstab file alone is just a standard tool for managing mounts, while in systemd environments it's handled by systemd-fstab-generator which creates mount and automount configurations. Using autofs eliminates the option to manage automounts through fstab.
Been relying on autofs for several months now, mainly to set up NFS shares for my Plex server. It’s been really smooth—just configure and let it run. I picked it because there were helpful YouTube tutorials that matched what I needed. Plus, the auto-connect and auto-disconnect features are a big plus.