about summary refs log tree commit diff
path: root/doc/s6-mount.html
blob: 92c04d7ee27407dc7c908a8786dc4e21de6df79b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="Content-Language" content="en" />
    <title>s6-linux-utils: the s6-mount program</title>
    <meta name="Description" content="s6-linux-utils: the s6-mount program" />
    <meta name="Keywords" content="s6 linux administration root utilities mount" />
    <!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> -->
  </head>
<body>

<p>
<a href="index.html">s6-linux-utils</a><br />
<a href="//skarnet.org/software/">Software</a><br />
<a href="//skarnet.org/">skarnet.org</a>
</p>

<h1> The <tt>s6-mount</tt> program </h1>

<p>
<tt>s6-mount</tt> mounts filesystems.
</p>

<h2> Interface </h2>

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

<ul>
 <li> <tt>s6-mount -a</tt> mounts all partitions according to <tt>/etc/fstab</tt>. </li>
 <li> If the <tt>-a</tt> option is not given,
<tt>s6-mount</tt> mounts <em>device</em> on <em>mntpoint</em>. </li>
 <li> <tt>s6-mount</tt> does not touch <tt>/etc/mtab</tt>. </li>
</ul>

<h2> Exit codes </h2>

<ul>
 <li> 0: success </li>
 <li> 1: <tt>mount()</tt> returned <tt>-EBUSY</tt> &mdash; most likely, the filesystem is already mounted </li>
 <li> 100: wrong usage </li>
 <li> 111: system call failed </li>
 <li> <em>n</em>: <tt>s6-mount -a</tt> was called, and <em>n</em> fstab entries couldn't be mounted </li>
</ul>

<h2> Options </h2>

<ul>
 <li> <tt>-a</tt>&nbsp;: process <tt>/etc/fstab</tt> instead of command
line arguments </li>
 <li> <tt>-z</tt>&nbsp;<em>fstab</em>&nbsp;: read file at <em>fstab</em>
instead of <tt>/etc/fstab</tt> </li>
 <li> <tt>-n</tt>&nbsp;: ignored
 <li> <tt>-t</tt>&nbsp;<em>fstype</em>&nbsp;: filesystem is of type <em>fstype</em>.
You probably need to specify this. </li>
 <li> <tt>-r</tt>&nbsp;: mount read-only </li>
 <li> <tt>-w</tt>&nbsp;: mount read-write (default) </li>
 <li> <tt>-o</tt> <em>option</em>&nbsp;: mount with option <em>option</em>.
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. </li>
</ul>

</body>
</html>