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