fsck: Force a filesystem check on next reboot

I haven't had to use this too often but I've had a few occasions where I had to troubleshoot timing issues in the boot process. Mainly where a service tries to start before the disks are available. We suspected that an fsck was stopping the filesystem from being mounted but the service was started anyways.

In order to test our theories we had to force a fsck on reboot.

Example:

# touch /forcefsck
Avatar
Benjamin Cane
Principal Engineer, Vice President

Benjamin Cane is Principal Engineer at American Express. He has more than 16 years of experience with roles in both systems and software engineering. He leverages both his systems and software skills to build end-to-end platforms. Platforms, purpose built for performance and resiliency. Benjamin is also the author of Red Hat Enterprise Linux - Troubleshooting Guide (2015, Packt Publishing), and he has published many popular articles on topics such as Linux, Docker, Python, Go and Performance Tuning. Thoughts and Opinions expressed in my articles are my own.

Next
Previous

Related