You are not logged in.
Anybody has a clue how to do that without rebooting the computer?
"Mounts listed in /etc/fstab will be converted into native units dynamically at boot and when the configuration of the system manager is reloaded."
P.S. If the latter means issueing "systemctl reload-daemon", it does not work. I guess the "and" does not really mean "reboot & reload", that'd be crazy.
cheers!
Milan
Last edited by MilanKnizek (2015-05-05 19:41:47)
--
Milan Knizek
http://knizek.net
Offline
I imagine (not tested) that you can just re-run /usr/lib/systemd/system-generators/systemd-fstab-generator
See
man systemd-fstab-generator
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Thanks for pointing to that. I tried it already before, though. No new automount unit was created (checked with "systemctl list-units --all"). Tested on new samba entry in /etc/fstab.
Last edited by MilanKnizek (2015-01-31 16:39:03)
--
Milan Knizek
http://knizek.net
Offline
I have tried this and failed. It doesn't seem to be possible. I resorted to a manual loop over the fstab; checking for each path if it's mounted already
Offline
If you run the generator as described above, it writes to /tmp which is not what you want. You need to give it 3 arguments:
/usr/lib/systemd/system-generators/systemd-fstab-generator /run/systemd/generator '' ''
works for me. You will see errors for all existing generated units; you can ignore these. You don't need to do systemctl daemon-reload.
Last edited by starfry (2015-02-09 10:07:05)
Offline
@starfry: thanks for the info.
P.S. Interestingly google did not help much, systemd still seems to fall short on tutorials. I'll report a bug on that to systemd.
--
Milan Knizek
http://knizek.net
Offline
First:
# systemctl daemon-reload
followed by:
# systemctl restart remote-fs.target
or
# systemctl restart local-fs.target
depending on filesystem type
Offline
First:
# systemctl daemon-reload
followed by:
# systemctl restart remote-fs.target
or
# systemctl restart local-fs.target
depending on filesystem type
Thanks, that was it!
--
Milan Knizek
http://knizek.net
Offline
Thank you edacval!
I can't believe this was so easy to address and yet so hard to find.
Offline