# info > mount

---
type: CommandReference
command: mount
mode: man
section: 8
source: man-pages
---

## Quick Reference

- `mount` — list all mounted filesystems
- `mount -t type device dir` — mount a filesystem
- `mount -a` — mount all filesystems from /etc/fstab
- `mount --bind olddir newdir` — bind mount a subtree
- `mount --move olddir newdir` — move a mounted tree
- `mount -o remount,rw /dir` — remount a filesystem read-write
- `mount -o loop file dir` — mount a file as a loop device
- `mount -U uuid dir` — mount by UUID

## Name

mount — mount a filesystem

## Synopsis

mount [-h|-V]
mount [-l] [-t fstype]
mount -a [-fFnrsvw] [-t fstype] [-O optlist]
mount [-fnrsvw] [-o options] device|mountpoint
mount [-fnrsvw] [-t fstype] [-o options] device mountpoint
mount --bind|--rbind|--move olddir newdir
mount --make-[shared|slave|private|unbindable|rshared|rslave|rprivate|runbindable] mountpoint
## Options

### General

- `-a, --all` — mount all filesystems in /etc/fstab (except noauto)
- `-B, --bind` — bind mount a subtree
- `-c, --no-canonicalize` — do not canonicalize paths
- `-f, --fake` — dry run, everything except the system call
- `-F, --fork` — fork for each mount (with -a, parallel)
- `-i, --internal-only` — do not call mount helper
- `-L, --label` — mount by label
- `-l, --show-labels` — add labels to mount output
- `-M, --move` — move a mounted tree
- `-n, --no-mtab` — do not write to /etc/mtab
- `-N, --namespace` — perform mount in given namespace
- `-O, --test-opts` — limit filesystems to those with given options
- `-o, --options` — mount options (comma-separated list)
- `--options-mode` — how to combine fstab vs command-line options (ignore, append, prepend, replace)
- `--options-source` — where to read default options (fstab, mtab, disable)
- `--options-source-force` — always read fstab even if device and dir specified
- `-R, --rbind` — recursive bind mount
- `-r, --read-only` — mount read-only
- `-s` — tolerate sloppy mount options
- `--source` — explicitly specify the device argument
- `--target` — explicitly specify the mountpoint argument
- `--target-prefix` — prepend directory to all mount targets
- `-T, --fstab` — alternative fstab file
- `-t, --types` — filesystem type(s)
- `-U, --uuid` — mount by UUID
- `-v, --verbose` — verbose mode
- `-w, --rw, --read-write` — mount read-write
- `-V, --version` — display version
- `-h, --help` — help

### Filesystem-Independent Mount Options

- `async` / `sync` — asynchronous or synchronous I/O
- `atime` / `noatime` / `relatime` / `strictatime` / `lazytime` — access time behavior
- `auto` / `noauto` — whether mount -a includes this filesystem
- `context=`, `fscontext=`, `defcontext=`, `rootcontext=` — SELinux contexts
- `defaults` — rw, suid, dev, exec, auto, nouser, async
- `dev` / `nodev` — interpret block/char devices
- `diratime` / `nodiratime` — directory access time updates
- `dirsync` — synchronous directory updates
- `exec` / `noexec` — permit execution of binaries
- `group` — allow mount if user in group of device
- `iversion` / `noiversion` — inode version field
- `mand` / `nomand` — mandatory locks
- `_netdev` — network-attached device
- `nofail` — do not report errors if device missing
- `owner` — allow mount if user owns device
- `remount` — remount an already-mounted filesystem (change options)
- `ro` / `rw` — read-only / read-write
- `suid` / `nosuid` — honor set-user-ID bits
- `silent` / `loud` — error reporting
- `user` / `nouser` / `users` — who can mount/unmount
- `X-*` / `x-*` — application-specific options (X-* not stored, x-* stored)
- `X-mount.mkdir` — create mountpoint directory if missing
- `nosymfollow` — do not follow symlinks during path resolution

### Bind/Move/Propagation

- `--bind` / `--rbind` — bind mount (recursive with --rbind)
- `--move` — move a mount tree
- `--make-shared` / `--make-slave` / `--make-private` / `--make-unbindable` — set propagation type
- `--make-rshared` / `--make-rslave` / `--make-rprivate` / `--make-runbindable` — recursive propagation

### Loop Device

- `loop=/dev/loopN` — specify loop device
- `offset=N` — start offset in file
- `sizelimit=N` — maximum size of loop device

### Verity (dm-verity, experimental)

- `verity.hashdevice=path` — hash tree device
- `verity.roothash=hex` — root hash
- `verity.roothashfile=path` — file containing root hash
- `verity.hashoffset=offset` — offset if hash embedded in source
- `verity.fecdevice=path` — FEC device (optional)
- `verity.fecoffset=offset` — FEC offset
- `verity.fecroots=value` — parity bytes (default 2)
- `verity.roothashsig=path` — PKCS#7 signature of root hash

## Examples

shell
# Mount a filesystem by device
mount /dev/sda1 /mnt

# Mount by UUID
mount -U "a1b2c3d4-..." /mnt

# Bind mount
mount --bind /olddir /newdir

# Remount read-only
mount -o remount,ro /mnt

# Mount all filesystems from /etc/fstab
mount -a

# Mount a file as a loop device
mount /tmp/disk.img /mnt -o loop

# Mount a network filesystem
mount -t nfs server:/export /mnt

# Create a read-only bind mount
mount --bind /olddir /newdir
mount -o remount,bind,ro /olddir /newdir
## See Also

- [mount(2)](http://localhost/phpMan.php/man/mount/2/markdown)
- [umount(2)](http://localhost/phpMan.php/man/umount/2/markdown)
- [fstab(5)](http://localhost/phpMan.php/man/fstab/5/markdown)
- [filesystems(5)](http://localhost/phpMan.php/man/filesystems/5/markdown)
- [nfs(5)](http://localhost/phpMan.php/man/nfs/5/markdown)
- [xfs(5)](http://localhost/phpMan.php/man/xfs/5/markdown)
- [mount_namespaces(7)](http://localhost/phpMan.php/man/mount_namespaces/7/markdown)
- [findmnt(8)](http://localhost/phpMan.php/man/findmnt/8/markdown)
- [losetup(8)](http://localhost/phpMan.php/man/losetup/8/markdown)
- [lsblk(8)](http://localhost/phpMan.php/man/lsblk/8/markdown)
- [umount(8)](http://localhost/phpMan.php/man/umount/8/markdown)

## Exit Codes

- `0` — success
- `1` — incorrect invocation or permissions
- `2` — system error (out of memory, cannot fork, no more loop devices)
- `4` — internal mount bug
- `8` — user interrupt
- `16` — problems writing or locking /etc/mtab
- `32` — mount failure
- `64` — some mount succeeded (only with `mount -a`)