1SYSTEMD-FSCK@.SERVICE(8)     systemd-fsck@.service    SYSTEMD-FSCK@.SERVICE(8)
2
3
4

NAME

6       systemd-fsck@.service, systemd-fsck-root.service, systemd-fsck-
7       usr.service, systemd-fsck - File system checker logic
8

SYNOPSIS

10       systemd-fsck@.service
11
12       systemd-fsck-root.service
13
14       systemd-fsck-usr.service
15
16       /usr/lib/systemd/systemd-fsck
17

DESCRIPTION

19       systemd-fsck@.service, systemd-fsck-root.service, and
20       systemd-fsck-usr.service are services responsible for file system
21       checks. They are instantiated for each device that is configured for
22       file system checking.  systemd-fsck-root.service and
23       systemd-fsck-usr.service are responsible for file system checks on the
24       root and /usr file system, respectively, but only if the root
25       filesystem was not checked in the initrd.  systemd-fsck@.service is
26       used for all other file systems and for the root file system in the
27       initrd.
28
29       These services are started at boot if passno in /etc/fstab for the file
30       system is set to a value greater than zero, but only if it is also
31       configured to be mounted at boot (i.e. without "noauto" option). The
32       file system check for root is performed before the other file systems.
33       Other file systems may be checked in parallel, except when they are on
34       the same rotating disk.
35
36       systemd-fsck does not know any details about specific filesystems, and
37       simply executes file system checkers specific to each filesystem type
38       (fsck.type). These checkers will decide if the filesystem should
39       actually be checked based on the time since last check, number of
40       mounts, unclean unmount, etc.
41
42       systemd-fsck-root.service and systemd-fsck-usr.service will activate
43       reboot.target if fsck returns the "System should reboot" condition, or
44       emergency.target if fsck returns the "Filesystem errors left
45       uncorrected" condition.
46
47       systemd-fsck@.service will fail if fsck returns with either "System
48       should reboot" or "Filesystem errors left uncorrected" conditions. For
49       filesystems listed in /etc/fstab without "nofail" or "noauto" options,
50       "local-fs.target" will then activate emergency.target.
51

KERNEL COMMAND LINE

53       systemd-fsck understands these kernel command line parameters:
54
55       fsck.mode=
56           One of "auto", "force", "skip". Controls the mode of operation. The
57           default is "auto", and ensures that file system checks are done
58           when the file system checker deems them necessary.  "force"
59           unconditionally results in full file system checks.  "skip" skips
60           any file system checks.
61
62       fsck.repair=
63           One of "preen", "yes", "no". Controls the mode of operation. The
64           default is "preen", and will automatically repair problems that can
65           be safely fixed.  "yes" will answer yes to all questions by fsck
66           and "no" will answer no to all questions.
67

SEE ALSO

69       systemd(1), fsck(8), systemd-quotacheck.service(8), fsck.btrfs(8),
70       fsck.cramfs(8), fsck.ext4(8), fsck.fat(8), fsck.hfsplus(8),
71       fsck.minix(8), fsck.ntfs(8), fsck.xfs(8)
72
73
74
75systemd 254                                           SYSTEMD-FSCK@.SERVICE(8)
Impressum