From 70e2ec60cf4043aed9e25ba233d7db0a299843e7 Mon Sep 17 00:00:00 2001 From: Cyrus Yip <60951091+CyrusYip@users.noreply.github.com> Date: Tue, 29 Nov 2022 03:22:44 +0800 Subject: [PATCH] mount: add --mkdir example (#9555) * mount: add --mkdir example * remove unneeded space * Update pages/common/mount.md --- pages/common/mount.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/mount.md b/pages/common/mount.md index e5366f3a4..257a78a9f 100644 --- a/pages/common/mount.md +++ b/pages/common/mount.md @@ -11,6 +11,10 @@ `mount -t {{filesystem_type}} {{path/to/device_file}} {{path/to/target_directory}}` +- Create a specific directory if it does not exist and mount a device to it: + +`mount --mkdir {{path/to/device_file}} {{path/to/target_directory}}` + - Mount a CD-ROM device (with the filetype ISO9660) to `/cdrom` (readonly): `mount -t {{iso9660}} -o ro {{/dev/cdrom}} {{/cdrom}}`