mirror of
https://git.proxmox.com/git/systemd
synced 2025-05-29 10:01:12 +00:00
71 lines
6.4 KiB
HTML
71 lines
6.4 KiB
HTML
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>systemd-fsck@.service</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style>
|
|
a.headerlink {
|
|
color: #c60f0f;
|
|
font-size: 0.8em;
|
|
padding: 0 4px 0 4px;
|
|
text-decoration: none;
|
|
visibility: hidden;
|
|
}
|
|
|
|
a.headerlink:hover {
|
|
background-color: #c60f0f;
|
|
color: white;
|
|
}
|
|
|
|
h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
|
|
visibility: visible;
|
|
}
|
|
</style><a href="index.html">Index </a>·
|
|
<a href="systemd.directives.html">Directives </a>·
|
|
<a href="../python-systemd/index.html">Python </a>·
|
|
<a href="../libudev/index.html">libudev </a>·
|
|
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 219</span><hr><div class="refentry"><a name="systemd-fsck@.service"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>systemd-fsck@.service, systemd-fsck-root.service, systemd-fsck — File system checker logic</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">systemd-fsck@.service</code></p><p><code class="filename">systemd-fsck-root.service</code></p><p><code class="filename">/usr/lib/systemd/systemd-fsck</code></p></div><div class="refsect1"><a name="idm139804347501968"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description">¶</a></h2><p><code class="filename">systemd-fsck@.service</code> and
|
|
<code class="filename">systemd-fsck-root.service</code> are services
|
|
responsible for file system checks. They are instantiated for each
|
|
device that is configured for file system checking.
|
|
<code class="filename">systemd-fsck-root.service</code> is responsible for
|
|
file system checks on the root file system, but in only if the
|
|
root filesystem wasn't checked in the initramfs.
|
|
<code class="filename">systemd-fsck@.service</code> is used for all other
|
|
file systems and for the root file system in the initramfs.</p><p>Those services are started at boot if
|
|
<code class="option">passno</code> in <code class="filename">/etc/fstab</code> for the
|
|
file system is set to a value greater than zero. The file system
|
|
check for root is performed before the other file systems. Other
|
|
file systems may be checked in parallel, except when they are one
|
|
the same rotating disk.</p><p><code class="filename">systemd-fsck</code> does not know any details
|
|
about specific filesystems, and simply executes file system
|
|
checkers specific to each filesystem type
|
|
(<code class="filename">/sbin/fsck.*</code>). This helper will decide if
|
|
the filesystem should actually be checked based on the time since
|
|
last check, number of mounts, unclean unmount, etc.</p><p><code class="filename">systemd-fsck</code> will forward file system
|
|
checking progress to the console. If a file system check fails for
|
|
a service without <code class="option">nofail</code>, emergency mode is
|
|
activated, by isolating to
|
|
<code class="filename">emergency.target</code>.</p></div><div class="refsect1"><a name="idm139804347491856"></a><h2 id="Kernel Command Line">Kernel Command Line<a class="headerlink" title="Permalink to this headline" href="#Kernel%20Command%20Line">¶</a></h2><p><code class="filename">systemd-fsck</code> understands one kernel
|
|
command line parameter:</p><div class="variablelist"><dl class="variablelist"><dt id="fsck.mode="><span class="term"><code class="varname">fsck.mode=</code></span><a class="headerlink" title="Permalink to this term" href="#fsck.mode=">¶</a></dt><dd><p>One of "<code class="literal">auto</code>",
|
|
"<code class="literal">force</code>", "<code class="literal">skip</code>". Controls
|
|
the mode of operation. The default is "<code class="literal">auto</code>",
|
|
and ensures that file system checks are done when the file
|
|
system checker deems them necessary. "<code class="literal">force</code>"
|
|
unconditionally results in full file system checks.
|
|
"<code class="literal">skip</code>" skips any file system
|
|
checks.</p></dd><dt id="fsck.repair="><span class="term"><code class="varname">fsck.repair=</code></span><a class="headerlink" title="Permalink to this term" href="#fsck.repair=">¶</a></dt><dd><p>One of "<code class="literal">preen</code>",
|
|
"<code class="literal">yes</code>", "<code class="literal">no</code>". Controls the
|
|
mode of operation. The default is "<code class="literal"> preen</code>",
|
|
and will automatically repair problems that can be safely
|
|
fixed. "<code class="literal">yes </code>" will answer yes to all
|
|
questions by fsck and "<code class="literal">no</code>" will answer no to
|
|
all questions. </p></dd></dl></div></div><div class="refsect1"><a name="idm139804351428688"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also">¶</a></h2><p>
|
|
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
|
|
<a href="fsck.html"><span class="citerefentry"><span class="refentrytitle">fsck</span>(8)</span></a>,
|
|
<a href="systemd-quotacheck.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-quotacheck.service</span>(8)</span></a>,
|
|
<a href="fsck.btrfs.html"><span class="citerefentry"><span class="refentrytitle">fsck.btrfs</span>(8)</span></a>,
|
|
<a href="fsck.cramfs.html"><span class="citerefentry"><span class="refentrytitle">fsck.cramfs</span>(8)</span></a>,
|
|
<a href="fsck.ext4.html"><span class="citerefentry"><span class="refentrytitle">fsck.ext4</span>(8)</span></a>,
|
|
<a href="fsck.fat.html"><span class="citerefentry"><span class="refentrytitle">fsck.fat</span>(8)</span></a>,
|
|
<a href="fsck.hfsplus.html"><span class="citerefentry"><span class="refentrytitle">fsck.hfsplus</span>(8)</span></a>,
|
|
<a href="fsck.minix.html"><span class="citerefentry"><span class="refentrytitle">fsck.minix</span>(8)</span></a>,
|
|
<a href="fsck.ntfs.html"><span class="citerefentry"><span class="refentrytitle">fsck.ntfs</span>(8)</span></a>,
|
|
<a href="fsck.xfs.html"><span class="citerefentry"><span class="refentrytitle">fsck.xfs</span>(8)</span></a>
|
|
</p></div></div></body></html>
|