I have an automount in my fstab on my server at work! It is an smb
mount, yet it uses Debian which is using systemd.
Brian
On Mon, Oct 02, 2023 at 06:25:00PM -0600, Linus Sphinx wrote:
They seem to have changed the hierarchy of autofs
config files or
something and it just stopped working for me. Looking for what changed
and ran into systemd.mount on stack exchange.
Short form:
write an entry in /etc/fstab like this:
nas:/data/directory /home/me/nas nfs nfsvers=4,nofail,x-systemd.automount 0 0
To activate this entry immediately, you would need two commands:
# systemctl daemon-reload # trigger systemd-fstab-generator to
re-make *.mount and *.automount units
# systemctl start home-me-nas.automount #start the newly created
automount unit or just reboot.
$ man systemd.mount
$ man systemd-fstab-generator
Reveal much about units created, still playing with it. The above
lines clipped from:
https://unix.stackexchange.com/questions/671486/rhel-8-3-autofs-not-mountin…
_______________________________________________
Lug-nuts mailing list -- lug-nuts(a)bigbrie.com
To unsubscribe send an email to lug-nuts-leave(a)bigbrie.com
--
Brian Lavender
http://www.brie.com/brian/
"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."
Professor C. A. R. Hoare
The 1980 Turing award lecture