]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/systemd-fsck@.service.xml
tree-wide: remove Lennart's copyright lines
[thirdparty/systemd.git] / man / systemd-fsck@.service.xml
1 <?xml version="1.0"?>
2 <!--*-nxml-*-->
3 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4 <!--
5 SPDX-License-Identifier: LGPL-2.1+
6 -->
7 <refentry id="systemd-fsck@.service">
8
9 <refentryinfo>
10 <title>systemd-fsck@.service</title>
11 <productname>systemd</productname>
12
13 <authorgroup>
14 <author>
15 <contrib>Developer</contrib>
16 <firstname>Lennart</firstname>
17 <surname>Poettering</surname>
18 <email>lennart@poettering.net</email>
19 </author>
20 </authorgroup>
21 </refentryinfo>
22
23 <refmeta>
24 <refentrytitle>systemd-fsck@.service</refentrytitle>
25 <manvolnum>8</manvolnum>
26 </refmeta>
27
28 <refnamediv>
29 <refname>systemd-fsck@.service</refname>
30 <refname>systemd-fsck-root.service</refname>
31 <refname>systemd-fsck</refname>
32 <refpurpose>File system checker logic</refpurpose>
33 </refnamediv>
34
35 <refsynopsisdiv>
36 <para><filename>systemd-fsck@.service</filename></para>
37 <para><filename>systemd-fsck-root.service</filename></para>
38 <para><filename>/usr/lib/systemd/systemd-fsck</filename></para>
39 </refsynopsisdiv>
40
41 <refsect1>
42 <title>Description</title>
43
44 <para><filename>systemd-fsck@.service</filename> and
45 <filename>systemd-fsck-root.service</filename> are services
46 responsible for file system checks. They are instantiated for each
47 device that is configured for file system checking.
48 <filename>systemd-fsck-root.service</filename> is responsible for
49 file system checks on the root file system, but only if the
50 root filesystem was not checked in the initramfs.
51 <filename>systemd-fsck@.service</filename> is used for all other
52 file systems and for the root file system in the initramfs.</para>
53
54 <para>These services are started at boot if
55 <option>passno</option> in <filename>/etc/fstab</filename> for the
56 file system is set to a value greater than zero. The file system
57 check for root is performed before the other file systems. Other
58 file systems may be checked in parallel, except when they are on
59 the same rotating disk.</para>
60
61 <para><filename>systemd-fsck</filename> does not know any details
62 about specific filesystems, and simply executes file system
63 checkers specific to each filesystem type
64 (<filename>/sbin/fsck.*</filename>). These checkers will decide if
65 the filesystem should actually be checked based on the time since
66 last check, number of mounts, unclean unmount, etc.</para>
67
68 <para>If a file system check fails for a service without
69 <option>nofail</option>, emergency mode is activated, by isolating
70 to <filename>emergency.target</filename>.</para>
71 </refsect1>
72
73 <refsect1>
74 <title>Kernel Command Line</title>
75
76 <para><filename>systemd-fsck</filename> understands these kernel
77 command line parameters:</para>
78
79 <variablelist class='kernel-commandline-options'>
80 <varlistentry>
81 <term><varname>fsck.mode=</varname></term>
82
83 <listitem><para>One of <literal>auto</literal>,
84 <literal>force</literal>, <literal>skip</literal>. Controls
85 the mode of operation. The default is <literal>auto</literal>,
86 and ensures that file system checks are done when the file
87 system checker deems them necessary. <literal>force</literal>
88 unconditionally results in full file system checks.
89 <literal>skip</literal> skips any file system
90 checks.</para></listitem>
91 </varlistentry>
92
93 <varlistentry>
94 <term><varname>fsck.repair=</varname></term>
95
96 <listitem><para>One of <literal>preen</literal>,
97 <literal>yes</literal>, <literal>no</literal>. Controls the
98 mode of operation. The default is <literal>preen</literal>,
99 and will automatically repair problems that can be safely
100 fixed. <literal>yes</literal> will answer yes to all
101 questions by fsck and <literal>no</literal> will answer no to
102 all questions. </para></listitem>
103 </varlistentry>
104 </variablelist>
105 </refsect1>
106
107 <refsect1>
108 <title>See Also</title>
109 <para>
110 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
111 <citerefentry project='man-pages'><refentrytitle>fsck</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
112 <citerefentry><refentrytitle>systemd-quotacheck.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
113 <citerefentry project='man-pages'><refentrytitle>fsck.btrfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
114 <citerefentry project='man-pages'><refentrytitle>fsck.cramfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
115 <citerefentry project='man-pages'><refentrytitle>fsck.ext4</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
116 <citerefentry project='man-pages'><refentrytitle>fsck.fat</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
117 <citerefentry project='man-pages'><refentrytitle>fsck.hfsplus</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
118 <citerefentry project='man-pages'><refentrytitle>fsck.minix</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
119 <citerefentry project='man-pages'><refentrytitle>fsck.ntfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
120 <citerefentry project='man-pages'><refentrytitle>fsck.xfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>
121 </para>
122 </refsect1>
123
124 </refentry>