Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Sorry for bad english.

How to set systemd for automatically force fsck disks after crash (hard poweroff)?

When I used sysvinit (in Arch Linux) as /sbin/init I used the hack: in the rc.local I create /forcefsck file; in the rc.local.shutdown I remove it. At boot-up rc.sysinit enable force fsck if /forcefsck exists.

How to do same in systemd? Maybe it has built-in facilities for automatic fsck after crush?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

As the author explains : systemd honours the sixth field in the fstab lines to do fsck.

You can also force fsck at boot time by passing fsck.mode=force as a kernel parameter

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.