commands.sh

systemd-mount

linux

Establish and destroy transient mount or auto-mount points.

More info →

Options (3)

-u, --umountboolean

Unmount one or more devices

Example: systemd-mount {{[-u|--umount]}} {{path/to/mount_point_or_device1 path/to/mount_point_or_device2 ...}}
-t, --typeboolean

Mount a filesystem (image or block device) with a specific filesystem type

Example: systemd-mount {{[-t|--type]}} {{file_system_type}} {{path/to/file_or_device}} {{path/to/mount_point}}
-o, --optionsboolean

Mount a filesystem (image or block device) with additional mount options

Example: systemd-mount {{[-o|--options]}} {{mount_options}} {{path/to/file_or_device}} {{path/to/mount_point}}

Examples (7)

Mount a filesystem (image or block device) at `/run/media/system/LABEL` where LABEL is the filesystem label or the device name if there is no label

systemd-mount path/to/file_or_device

Mount a filesystem (image or block device) at a specific location

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

List all local, known block devices with filesystems that may be mounted

Create an automount point that mounts the actual filesystem at the time of first access

systemd-mount --automount yes path/to/file_or_device

Unmount one or more devices

systemd-mount [-u|--umount] path/to/mount_point_or_device1 path/to/mount_point_or_device2 ...

Mount a filesystem (image or block device) with a specific filesystem type

systemd-mount [-t|--type] file_system_type path/to/file_or_device path/to/mount_point

Mount a filesystem (image or block device) with additional mount options

systemd-mount [-o|--options] mount_options path/to/file_or_device path/to/mount_point
made by @shridhargupta | data from tldr-pages