systemd-mount Command Examples

Establish and destroy transient mount or auto-mount points. More information: https://www.freedesktop.org/software/systemd/man/systemd-mount.html.

systemd-mount {{path/to/file_or_device}}

systemd-mount {{path/to/file_or_device}} {{path/to/mount_point}}

systemd-mount --list

systemd-mount --automount=yes {{path/to/file_or_device}}

systemd-mount --umount {{path/to/mount_point_or_device1}} {{path/to/mount_point_or_device2}}

systemd-mount --type={{file_system_type}} {{path/to/file_or_device}} {{path/to/mount_point}}

systemd-mount --options={{mount_options}} {{path/to/file_or_device}} {{path/to/mount_point}}