Systemd Lazy Automount

Linux Mar 22, 2021

/etc/fstab:

//server.local/sharename /mnt/share cifs x-systemd.automount,x-systemd.idle-timeout=1min,rw,uid=user,gid=users,domain=DOMAIN,credentials=/etc/smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

reload systemd

systemctl daemon-reload
systemctl restart remote-fs.target
systemctl restart local-fs.target

Tags

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.