mount: add --mkdir example (#9555)

* mount: add --mkdir example

* remove unneeded space

* Update pages/common/mount.md
This commit is contained in:
Cyrus Yip 2022-11-29 03:22:44 +08:00 committed by GitHub
parent 9272721e5a
commit 70e2ec60cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}}`