summaryrefslogtreecommitdiffstats
path: root/upstream/fedora-rawhide/man8/systemd-fsck@.service.8
blob: 5c1cbe90b7cdf2b473950896b1af772906890e6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
'\" t
.TH "SYSTEMD\-FSCK@\&.SERVICE" "8" "" "systemd 255" "systemd-fsck@.service"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
systemd-fsck@.service, systemd-fsck-root.service, systemd-fsck-usr.service, systemd-fsck \- File system checker logic
.SH "SYNOPSIS"
.PP
systemd\-fsck@\&.service
.PP
systemd\-fsck\-root\&.service
.PP
systemd\-fsck\-usr\&.service
.PP
/usr/lib/systemd/systemd\-fsck
.SH "DESCRIPTION"
.PP
systemd\-fsck@\&.service,
systemd\-fsck\-root\&.service, and
systemd\-fsck\-usr\&.service
are services responsible for file system checks\&. They are instantiated for each device that is configured for file system checking\&.
systemd\-fsck\-root\&.service
and
systemd\-fsck\-usr\&.service
are responsible for file system checks on the root and /usr file system, respectively, but only if the root filesystem was not checked in the initrd\&.
systemd\-fsck@\&.service
is used for all other file systems and for the root file system in the initrd\&.
.PP
These services are started at boot if
\fBpassno\fR
in
/etc/fstab
for the file system is set to a value greater than zero, but only if it is also configured to be mounted at boot (i\&.e\&. without
"noauto"
option)\&. 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 on the same rotating disk\&.
.PP
systemd\-fsck
does not know any details about specific filesystems, and simply executes file system checkers specific to each filesystem type (fsck\&.\fItype\fR)\&. These checkers will decide if the filesystem should actually be checked based on the time since last check, number of mounts, unclean unmount, etc\&.
.PP
systemd\-fsck\-root\&.service
and
systemd\-fsck\-usr\&.service
will activate
reboot\&.target
if
\fBfsck\fR
returns the "System should reboot" condition, or
emergency\&.target
if
\fBfsck\fR
returns the "Filesystem errors left uncorrected" condition\&.
.PP
systemd\-fsck@\&.service
will fail if
\fBfsck\fR
returns with either "System should reboot" or "Filesystem errors left uncorrected" conditions\&. For filesystems listed in
/etc/fstab
without
"nofail"
or
"noauto"
options,
"local\-fs\&.target"
will then activate
emergency\&.target\&.
.SH "KERNEL COMMAND LINE"
.PP
\fBsystemd\-fsck\fR
understands these kernel command line parameters:
.PP
\fIfsck\&.mode=\fR
.RS 4
One of
"auto",
"force",
"skip"\&. Controls the mode of operation\&. The default is
"auto", and ensures that file system checks are done when the file system checker deems them necessary\&.
"force"
unconditionally results in full file system checks\&.
"skip"
skips any file system checks\&.
.sp
Added in version 186\&.
.RE
.PP
\fIfsck\&.repair=\fR
.RS 4
One of
"preen",
"yes",
"no"\&. Controls the mode of operation\&. The default is
"preen", and will automatically repair problems that can be safely fixed\&.
"yes"
will answer yes to all questions by fsck and
"no"
will answer no to all questions\&.
.sp
Added in version 213\&.
.RE
.SH "SEE ALSO"
.PP
\fBsystemd\fR(1),
\fBfsck\fR(8),
\fBsystemd-quotacheck.service\fR(8),
\fBfsck.btrfs\fR(8),
\fBfsck.cramfs\fR(8),
\fBfsck.ext4\fR(8),
\fBfsck.fat\fR(8),
\fBfsck.hfsplus\fR(8),
\fBfsck.minix\fR(8),
\fBfsck.ntfs\fR(8),
\fBfsck.xfs\fR(8)