system enabled verified low v1.0.0

mount

Mount a filesystem

📋 Live Preview
mount -a {all} -c {no-canonicalize} -f {fake} -F {fork} -T {fstab}
๐Ÿ“Ž all ๐Ÿ“Ž no-canonicalize ๐Ÿ“Ž fake ๐Ÿ“Ž fork ๐Ÿ“Ž fstab
mount -a {all} -c {no-canonicalize} -f {fake} -F {fork} -T {fstab}

Sandbox: execFile · Timeout: 30s

Capabilities

system.storage.mount
system.storage.usage
system.storage.mount

Parameters

Name Type Required Default Description Aliases
all string No - mount all filesystems mentioned in fstab -a, --all
no-canonicalize string No - don't canonicalize paths -c, --no-canonicalize
fake string No - dry run; skip the mount(2) syscall -f, --fake
fork string No - fork off for each device (use with -a) -F, --fork
fstab file No - alternative file to /etc/fstab -T, --fstab <path>
internal-only string No - don't call the mount.<type> helpers -i, --internal-only
show-labels string No - show also filesystem labels -l, --show-labels
map-groups string No - add the specified GID map to an ID-mapped mount --map-users <inner>:<outer>:<count> add the specified UID map to an ID-mapped mount --map-users /proc/<pid>/ns/user specify the user namespace for an... --map-groups <inner>
mkdir string No - alias to '-o X-mount.mkdir[=<mode>]' -m, --mkdir
no-mtab string No - don't write to /etc/mtab -n, --no-mtab
options-mode string No - what to do with options loaded from fstab --options-source <source> mount options source --options-source-force force use of options from fstab/mtab --onlyonce check if filesystem is already mounted --options-mode <mode>
options array No - comma-separated list of mount options -o, --options <list>
test-opts array No - Set the test-opts parameter -O, -a, --test-opts <list>
read-only string No - mount the filesystem read-only (same as -o ro) -r, --read-only
types array No - limit the set of filesystem types -t, --types <list>
source string No - explicitly specifies source (path, label, uuid) --source <src>
target string No - explicitly specifies mountpoint --target <target>
target-prefix file No - specifies path used for all mountpoints --target-prefix <path>
verbose string No - say what is being done -v, --verbose
rw string No - Set the rw parameter -w, -w, --rw, --read-write
namespace string No - perform mount in another namespace -N, --namespace <ns>
help string No - display this help -h, --help
version string No - display version -V, --version
label string No - synonym for LABEL=<label> -L, --label <label>
uuid string No - synonym for UUID=<uuid> -U, --uuid <uuid>
bind string No - mount a subtree somewhere else (same as -o bind) -B, --bind
move string No - move a subtree to some other place -M, --move
rbind string No - mount a subtree and all submounts somewhere else -R, --rbind
make-shared string No - mark a subtree as shared --make-shared
make-slave string No - mark a subtree as slave --make-slave
make-private string No - mark a subtree as private --make-private
make-rprivate string No - recursively mark a whole subtree as private --make-rprivate
make-rshared string No - recursively mark a whole subtree as shared --make-rshared
make-rslave string No - recursively mark a whole subtree as slave --make-rslave
make-runbindable string No - recursively mark a whole subtree as unbindable --make-runbindable
make-unbindable string No - mark a subtree as unbindable --make-unbindable
map_users boolean No - <outer>:<count> --map-users
onlyonce boolean No - check if filesystem is already mounted --onlyonce
options_source boolean No - --options-source
options_source_force boolean No - --options-source-force

Examples

Basic usage with all

mount ${all}

Display help message

mount --help

Mount a temporary filesystem (TMPFS) of 4GB to '/mnt'. The contents will vanish when you reboot, but this can be very useful when working with things like bootstrap tarballs or temporary storages for sensitive data.

mount -t tmpfs -o mode=755,size=4096M tmpfs /mnt

Documentation

mount โ€” Mount a filesystem

Overview

mount is a command-line utility for mount a filesystem.

Usage

mount -a {all} -c {no-canonicalize} -f {fake} -F {fork} -T {fstab}