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