commands

mount — Attach a filesystem

Attach a filesystem to the namespace; listing with no arguments is supported but findmnt is preferred for structured output. Mounting can conceal existing directory entries and requires authorization. Use a fresh private workspace; live operations are VM-only.

Formal Syntax & Structure

linux syntaxlinux
mount [OPTIONS] SOURCE TARGET

Parameters & Attributes

NameTypeDescription
SOURCEoperandFilesystem source
TARGEToperandMount directory
-ooptionMount options

Return Value

exit status and output

For util-linux mount, 0 indicates success; nonzero status may encode invocation, system, or mount failures, and multi-target operations may partially succeed. Verify actual mount state separately with findmnt.

Working Example

Example Snippetlinux
mount --help | grep -E "^ *-o," | awk '{print $1}'
Linux Reference