This section explains how to check existing file systems for errors.
![]() | Note |
|---|---|
Before mounting a local file system with read-write access or as the root file system, and after any system crash, it is strongly recommended that you check the file systems you plan to mount. | |
If no errors are found, both fsck and fsck_msdos display information on the file system in use. In case of errors, both fsck and fsck_msdos attempt a recovery procedure, optionally requiring confirmation. If you want to run either command in non-interactive mode, use the -y option.