]>
Commit | Line | Data |
---|---|---|
a32f224a LP |
1 | <?xml version="1.0"?> |
2 | <!--*-nxml-*--> | |
12b42c76 | 3 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
a32f224a LP |
4 | <!-- |
5 | This file is part of systemd. | |
6 | ||
7 | Copyright 2012 Lennart Poettering | |
8 | ||
9 | systemd is free software; you can redistribute it and/or modify it | |
10 | under the terms of the GNU Lesser General Public License as published by | |
11 | the Free Software Foundation; either version 2.1 of the License, or | |
12 | (at your option) any later version. | |
13 | ||
14 | systemd is distributed in the hope that it will be useful, but | |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
17 | Lesser General Public License for more details. | |
18 | ||
19 | You should have received a copy of the GNU Lesser General Public License | |
20 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
21 | --> | |
22 | <refentry id="systemd-fsck@.service"> | |
23 | ||
798d3a52 ZJS |
24 | <refentryinfo> |
25 | <title>systemd-fsck@.service</title> | |
26 | <productname>systemd</productname> | |
27 | ||
28 | <authorgroup> | |
29 | <author> | |
30 | <contrib>Developer</contrib> | |
31 | <firstname>Lennart</firstname> | |
32 | <surname>Poettering</surname> | |
33 | <email>lennart@poettering.net</email> | |
34 | </author> | |
35 | </authorgroup> | |
36 | </refentryinfo> | |
37 | ||
38 | <refmeta> | |
39 | <refentrytitle>systemd-fsck@.service</refentrytitle> | |
40 | <manvolnum>8</manvolnum> | |
41 | </refmeta> | |
42 | ||
43 | <refnamediv> | |
44 | <refname>systemd-fsck@.service</refname> | |
45 | <refname>systemd-fsck-root.service</refname> | |
46 | <refname>systemd-fsck</refname> | |
47 | <refpurpose>File system checker logic</refpurpose> | |
48 | </refnamediv> | |
49 | ||
50 | <refsynopsisdiv> | |
51 | <para><filename>systemd-fsck@.service</filename></para> | |
52 | <para><filename>systemd-fsck-root.service</filename></para> | |
12b42c76 | 53 | <para><filename>/usr/lib/systemd/systemd-fsck</filename></para> |
798d3a52 ZJS |
54 | </refsynopsisdiv> |
55 | ||
56 | <refsect1> | |
57 | <title>Description</title> | |
58 | ||
59 | <para><filename>systemd-fsck@.service</filename> and | |
60 | <filename>systemd-fsck-root.service</filename> are services | |
61 | responsible for file system checks. They are instantiated for each | |
62 | device that is configured for file system checking. | |
63 | <filename>systemd-fsck-root.service</filename> is responsible for | |
349ca6e6 | 64 | file system checks on the root file system, but only if the |
7ca41557 | 65 | root filesystem was not checked in the initramfs. |
798d3a52 ZJS |
66 | <filename>systemd-fsck@.service</filename> is used for all other |
67 | file systems and for the root file system in the initramfs.</para> | |
68 | ||
a8eaaee7 | 69 | <para>These services are started at boot if |
798d3a52 ZJS |
70 | <option>passno</option> in <filename>/etc/fstab</filename> for the |
71 | file system is set to a value greater than zero. The file system | |
72 | check for root is performed before the other file systems. Other | |
a8eaaee7 | 73 | file systems may be checked in parallel, except when they are on |
798d3a52 ZJS |
74 | the same rotating disk.</para> |
75 | ||
76 | <para><filename>systemd-fsck</filename> does not know any details | |
77 | about specific filesystems, and simply executes file system | |
78 | checkers specific to each filesystem type | |
79 | (<filename>/sbin/fsck.*</filename>). This helper will decide if | |
80 | the filesystem should actually be checked based on the time since | |
81 | last check, number of mounts, unclean unmount, etc.</para> | |
82 | ||
96d9117a | 83 | <para>If a file system check fails for a service without |
a80170f5 DR |
84 | <option>nofail</option>, emergency mode is activated, by isolating |
85 | to <filename>emergency.target</filename>.</para> | |
798d3a52 ZJS |
86 | </refsect1> |
87 | ||
88 | <refsect1> | |
89 | <title>Kernel Command Line</title> | |
90 | ||
2dcf2a17 LW |
91 | <para><filename>systemd-fsck</filename> understands these kernel |
92 | command line parameters:</para> | |
798d3a52 ZJS |
93 | |
94 | <variablelist class='kernel-commandline-options'> | |
95 | <varlistentry> | |
96 | <term><varname>fsck.mode=</varname></term> | |
97 | ||
98 | <listitem><para>One of <literal>auto</literal>, | |
99 | <literal>force</literal>, <literal>skip</literal>. Controls | |
100 | the mode of operation. The default is <literal>auto</literal>, | |
101 | and ensures that file system checks are done when the file | |
102 | system checker deems them necessary. <literal>force</literal> | |
103 | unconditionally results in full file system checks. | |
104 | <literal>skip</literal> skips any file system | |
105 | checks.</para></listitem> | |
106 | </varlistentry> | |
107 | ||
108 | <varlistentry> | |
109 | <term><varname>fsck.repair=</varname></term> | |
110 | ||
111 | <listitem><para>One of <literal>preen</literal>, | |
112 | <literal>yes</literal>, <literal>no</literal>. Controls the | |
2dcf2a17 | 113 | mode of operation. The default is <literal>preen</literal>, |
798d3a52 | 114 | and will automatically repair problems that can be safely |
2dcf2a17 | 115 | fixed. <literal>yes</literal> will answer yes to all |
798d3a52 ZJS |
116 | questions by fsck and <literal>no</literal> will answer no to |
117 | all questions. </para></listitem> | |
118 | </varlistentry> | |
119 | </variablelist> | |
120 | </refsect1> | |
121 | ||
122 | <refsect1> | |
123 | <title>See Also</title> | |
124 | <para> | |
125 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
a80170f5 | 126 | <citerefentry project='man-pages'><refentrytitle>fsck</refentrytitle><manvolnum>8</manvolnum></citerefentry>, |
798d3a52 | 127 | <citerefentry><refentrytitle>systemd-quotacheck.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>, |
a80170f5 DR |
128 | <citerefentry project='man-pages'><refentrytitle>fsck.btrfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>, |
129 | <citerefentry project='man-pages'><refentrytitle>fsck.cramfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
130 | <citerefentry project='man-pages'><refentrytitle>fsck.ext4</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
131 | <citerefentry project='man-pages'><refentrytitle>fsck.fat</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
132 | <citerefentry project='man-pages'><refentrytitle>fsck.hfsplus</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
133 | <citerefentry project='man-pages'><refentrytitle>fsck.minix</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
134 | <citerefentry project='man-pages'><refentrytitle>fsck.ntfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
135 | <citerefentry project='man-pages'><refentrytitle>fsck.xfs</refentrytitle><manvolnum>8</manvolnum></citerefentry> | |
798d3a52 ZJS |
136 | </para> |
137 | </refsect1> | |
a32f224a LP |
138 | |
139 | </refentry> |