Mount Removable Media With systemd-mount

Create a transient mount point that works with desktop auto-mounting.

LinuxFilesservicesdiskMedium risk
Run systemd-mount /dev/sdb1 /mnt/usb to mount a device for the current session.

01Command

Command
$ systemd-mount /dev/sdb1 /mnt/usb

02What it does

systemd-mount creates a temporary mount unit and, when run as a normal user with polkit, can mount removable devices without an fstab entry. That makes it scriptable on workstations where sudo access should be limited, and systemd-umount cleans it up.

03Risk

RiskMedium risk
RequirementsPreinstalled on systemd Linux (util-linux)
!Warning: Transient mounts disappear on reboot; for permanent mounts edit fstab or create a mount unit.

04Undo

Undo
$ systemd-umount /mnt/usb

05Sources

Last verified: 2026-10-13 · Category: System & Settings

06Related solutions