From b29db9adcbc07832fe8d627fdc3d36e4c8a6bbf8 Mon Sep 17 00:00:00 2001 From: Varad Rane <72779597+varadrane7@users.noreply.github.com> Date: Sun, 23 Jul 2023 12:37:54 +0530 Subject: [PATCH] systemd-mount: add page; systemd-umount: add alias page (#10509) * systemd-mount: add page; systemd-umount: add alias page --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/linux/systemd-mount.md | 32 ++++++++++++++++++++++++++++++++ pages/linux/systemd-umount.md | 7 +++++++ 2 files changed, 39 insertions(+) create mode 100644 pages/linux/systemd-mount.md create mode 100644 pages/linux/systemd-umount.md diff --git a/pages/linux/systemd-mount.md b/pages/linux/systemd-mount.md new file mode 100644 index 000000000..5da8b0c64 --- /dev/null +++ b/pages/linux/systemd-mount.md @@ -0,0 +1,32 @@ +# systemd-mount + +> Establish and destroy transient mount or auto-mount points. +> More information: . + +- Mount a file system (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 file system (image or block device) at a specific location: + +`systemd-mount {{path/to/file_or_device}} {{path/to/mount_point}}` + +- Show a list of all local, known block devices with file systems that may be mounted: + +`systemd-mount --list` + +- Create an automount point that mounts the actual file system at the time of first access: + +`systemd-mount --automount=yes {{path/to/file_or_device}}` + +- Unmount one or more devices: + +`systemd-mount --umount {{path/to/mount_point_or_device1}} {{path/to/mount_point_or_device2}}` + +- Mount a file system (image or block device) with a specific file system type: + +`systemd-mount --type={{file_system_type}} {{path/to/file_or_device}} {{path/to/mount_point}}` + +- Mount a file system (image or block device) with additional mount options: + +`systemd-mount --options={{mount_options}} {{path/to/file_or_device}} {{path/to/mount_point}}` diff --git a/pages/linux/systemd-umount.md b/pages/linux/systemd-umount.md new file mode 100644 index 000000000..d43fdb074 --- /dev/null +++ b/pages/linux/systemd-umount.md @@ -0,0 +1,7 @@ +# systemd-umount + +> This command is an alias of `systemd-mount --umount`. + +- View documentation for the original command: + +`tldr systemd-mount`