Search Suggest

How To Force fsck (Filesystem Consistency Check) After Reboot

fsck is a tool for checking and repairing a filesystem on Linux, macOS, and FreeBSD, similar to the CHKDSK Windows tool.

With old sysvinit and Upstart, users could force a disk check on next reboot using a simple command (sudo touch /forcefsck), but that's no longer the case nowadays, with most Linux distributions using systemd. This article explains how to force fsck to run at boot time in two ways, which work with systemd. You'll also find a command that shows when a partition was last checked by fsck, at the end of the article.

Using the steps below you'll force a filesystem consistency check each time your computer boots. There are also instructions for undoing this.

Đăng nhận xét