Managing Systemd Mounts
WARNING:
This documentation is a draft and is not meant for production use. Branch: OL10-FSADMIN
Systemd provides a powerful way to manage file system mounts by using mount units.
All mount points defined in the file system mount table, or fstab, are processed by systemd at boot and are treated as ephemeral systemd mount targets.
However, by defining a systemd mount target explicitly, you can take advantage of many of systemd's broader capabilities. For example, you can set dependencies so that a mount is only performed after a certain dependency, such as network availability, is reached.
Systemd mount targets provide more configurable options, can provide better logging around system mounts, and can improve error handling and troubleshooting.
See the systemd.mount(5)
manual page and
Oracle Linux 10: System Management with
systemd for more information.
You can view all system mounts, including the ephemeral mount targets loaded from the
fstab by using the systemctl list-units -t mount
command:
sudo systemctl list-units -t mount
Using systemd mount
Targets
You can optionally create systemd mount
targets to manage file
system mounts that take advantage of other systemd capabilities.
Tip:
If you define systemd mount targets, it can be useful to include a comment in/etc/fstab
so that system administrators are more
aware that a newer convention is in use on the system.