Skip to content

fsck (File System Consistency checK)

Published On:
May 31, 2017
Last Updated:
May 31, 2017

Sometimes you are asked to run fsck manually when a UNIX system boots and presents you with the error:

UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

Automatic Yes To Everything

If you are repairing a hard drive with lots of errors, if can become tedious to manually say “yes” to each one. Instead, you can provide fsck with the -y option, which will automatically approve all changes. This is called non-interactive mode:

Terminal window
~$ fsck -y /dev/sda1