s6-linux-utils: the s6-mount program
Keywords: s6 linux administration root utilities mount

s6-linux-utils
Software
skarnet.org

# The `s6-mount` program

`s6-mount` mounts filesystems.

## Interface

         s6-mount -a [ -z fstab ]
         s6-mount [ -n ] [ -r | -w ] [ -t fstype ] [ -o option[,option...] ] device mntpoint

- `s6-mount -a` mounts all partitions according to `/etc/fstab`.
- If the `-a` option is not given, `s6-mount` mounts device on mntpoint.
- `s6-mount` does not touch `/etc/mtab`.

## Exit codes

- 0: success
- 1: `mount()` returned `-EBUSY` — most likely, the filesystem is already mounted
- 100: wrong usage
- 111: system call failed
- n: `s6-mount -a` was called, and n fstab entries couldn't be mounted

## Options

- `-a` : process `/etc/fstab` instead of command line arguments
- `-z` fstab : read file at fstab instead of `/etc/fstab`
- `-n` : ignored
- `-t` fstype : filesystem is of type fstype. You probably need to specify this.
- `-r` : mount read-only
- `-w` : mount read-write (default)
- `-o` option : mount with option option. Currently recognized options: defaults, ro, rw, remount, sync, async, nodev, dev, noexec, exec, nosuid, suid, noatime, atime, nodiratime, diratime, bind, nobind, move, nomove. Unrecognized options are given directly to the kernel.