5.4. Checking File System Integrity

This section explains how to check existing file systems for errors.

[Note]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.

Procedure 5.5. Checking a UFS File System

Procedure 5.6. Checking an MS-DOS File System

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.