If x-systemd.automount entries are modified in /etc/fstab, how do I get systemd to reparse the entries?
Asked
Active
Viewed 6,185 times
1 Answers
7
I could not find clear documentation on how to get systemd to reparse /etc/fstab automounts without rebooting, so:
systemctl daemon-reloadwill regenerate the units files in /run/systemd/generator but doesn't start new automounts or stop ones removed from fstab.systemctl start newmount.automountwill start the mount. The .automount extension is required, as systemd assumes .service if not extension is specified.systemctl stop oldmount.automountwill remove a mount not longer in fstabsystemctl reset-failedwill stop a previously failed removed mount from appearing in status messages.