6

If x-systemd.automount entries are modified in /etc/fstab, how do I get systemd to reparse the entries?

gerard
  • 335

1 Answers1

7

I could not find clear documentation on how to get systemd to reparse /etc/fstab automounts without rebooting, so:

  • systemctl daemon-reload will regenerate the units files in /run/systemd/generator but doesn't start new automounts or stop ones removed from fstab.
  • systemctl start newmount.automount will start the mount. The .automount extension is required, as systemd assumes .service if not extension is specified.
  • systemctl stop oldmount.automount will remove a mount not longer in fstab
  • systemctl reset-failed will stop a previously failed removed mount from appearing in status messages.
hayalci
  • 3,721
gerard
  • 335