Convert a path into the corresponding systemd mount unit name.
Section: fstab and Boot-Time Mounts
Build a systemd unit name for a path
bash
bash
systemd-escape -p --suffix=mount /mnt/dataExplanation
Convert a path into the corresponding systemd mount unit name.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing fstab and Boot-Time Mounts
Show UUIDs for fstab entries
Collect UUIDs and labels for robust /etc/fstab entries.
Reload systemd units after fstab change
Useful when fstab is consumed into mount units.