website icon indicating copy to clipboard operation
website copied to clipboard

auto-mount-systemd/

Open utterances-bot opened this issue 3 years ago • 2 comments

Auto Mount with SystemD

Having Fun with Technology

https://christitus.com/auto-mount-systemd/

utterances-bot avatar Sep 27 '22 18:09 utterances-bot

Hi, I have multiple nic, not all of them are always connected, this cause systemd-networkd-wait-online.service to fail and mount slowly. Adding --any to the service solve the issue. I don't know if using NetworkManager will face the same issue, but it's worth mentioning.

Another thing is that using x-systemd.automount, neither "auto" nor "noauto" will have any effect.

Hope it helps.

Jeff-WuYo avatar Sep 27 '22 18:09 Jeff-WuYo

Is there a benefit to doing this vs systemd unit files?

Findarato avatar Oct 07 '22 16:10 Findarato

I've (and apparently many others) had issues with fstab after a kernel update over a year ago. I didn't have much luck with systemd, but maybe I didn't spend enough time on it. I switched to using a script triggered by an @reboot sudo crontab to be rock-solid.

dayvid3 avatar Dec 03 '22 18:12 dayvid3