Debian Codegraph @

upstream/debian-unstable/man8/[email protected]

raw
1 '\" t
2 .TH "SYSTEMD\-FSCK@\&.SERVICE" "8" "" "systemd 261~rc3" "[email protected]"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 .ie \n(.g .ds Aq \(aq
11 .el .ds Aq '
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
16 .nh
17 .\" disable justification (adjust text to left margin only)
18 .ad l
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
22 .SH "NAME"
23 [email protected], systemd-fsck-root.service, systemd-fsck-usr.service, systemd-fsck \- File system checker logic
24 .SH "SYNOPSIS"
25 .PP
26 .RS 4
27 systemd\-fsck@\&.service
28 .RE
29 .RS 4
30 systemd\-fsck\-root\&.service
31 .RE
32 .RS 4
33 systemd\-fsck\-usr\&.service
34 .RE
35 .RS 4
36 /usr/lib/systemd/systemd\-fsck
37 .RE
38 .SH "DESCRIPTION"
39 .PP
40 systemd\-fsck@\&.service,
41 systemd\-fsck\-root\&.service, and
42 systemd\-fsck\-usr\&.service
43 are services responsible for file system checks\&. They are instantiated for each device that is configured for file system checking\&.
44 systemd\-fsck\-root\&.service
45 and
46 systemd\-fsck\-usr\&.service
47 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\&.
48 systemd\-fsck@\&.service
49 is used for all other file systems and for the root file system in the initrd\&.
50 .PP
51 These services are started at boot if
52 \fBpassno\fR
53 in
54 /etc/fstab
55 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
56 "noauto"
57 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\&.
58 .PP
59 systemd\-fsck
60 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\&.
61 .PP
62 systemd\-fsck\-root\&.service
63 and
64 systemd\-fsck\-usr\&.service
65 will activate
66 reboot\&.target
67 if
68 \fBfsck\fR(8)
69 returns the "System should reboot" condition, or
70 emergency\&.target
71 if
72 \fBfsck\fR
73 returns the "Filesystem errors left uncorrected" condition\&.
74 .PP
75 systemd\-fsck@\&.service
76 will fail if
77 \fBfsck\fR(8)
78 returns either the "System should reboot" or the "Filesystem errors left uncorrected" condition\&. For filesystems listed in
79 /etc/fstab
80 without
81 "nofail"
82 or
83 "noauto"
84 options,
85 local\-fs\&.target
86 will then activate
87 emergency\&.target\&.
88 .SH "KERNEL COMMAND LINE"
89 .PP
90 \fBsystemd\-fsck\fR
91 understands these kernel command line parameters:
92 .PP
93 \fIfsck\&.mode=\fR
94 .RS 4
95 One of
96 "auto",
97 "force",
98 "skip"\&. Controls the mode of operation\&. The default is
99 "auto", and ensures that file system checks are done when the file system checker deems them necessary\&.
100 "force"
101 unconditionally results in full file system checks\&.
102 "skip"
103 skips any file system checks\&.
104 .sp
105 Added in version 186\&.
106 .RE
107 .PP
108 \fIfsck\&.repair=\fR
109 .RS 4
110 One of
111 "preen",
112 "yes",
113 "no"\&. Controls the mode of operation\&. The default is
114 "preen", and will automatically repair problems that can be safely fixed\&.
115 "yes"
116 will answer yes to all questions by fsck and
117 "no"
118 will answer no to all questions\&.
119 .sp
120 Added in version 213\&.
121 .RE
122 .SH "CREDENTIALS"
123 .PP
124 \fBsystemd\-fsck\fR
125 supports the service credentials logic as implemented by
126 \fIImportCredential=\fR/\fILoadCredential=\fR/\fISetCredential=\fR
127 (see
128 \fBsystemd.exec\fR(5)
129 for details)\&. The following credentials are used when passed in:
130 .PP
131 \fIfsck\&.mode\fR, \fIfsck\&.repair\fR
132 .RS 4
133 The contents of the credentials are parsed as same as the kernel command line options with the same name\&. See above for more details\&.
134 .sp
135 Added in version 258\&.
136 .RE
137 .PP
138 Note that by default the
139 systemd\-fsck@\&.service,
140 systemd\-fsck\-root\&.service, and
141 systemd\-fsck\-usr\&.service
142 unit files are set up to inherit both
143 \fIfsck\&.mode\fR
144 and
145 \fIfsck\&.repair\fR
146 credentials from the service manager\&.
147 .SH "SEE ALSO"
148 .PP
149 \fBsystemd\fR(1), \fBfsck\fR(8), \[email protected]\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)