PROGRAMS

# fsck (File System Consistency checK)

## Overview

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:

~\$ fsck -y /dev/sda1