ChorusOS 5.0 System Administrator's Guide

Checking File System Integrity

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.


Checking a UFS File System

    Check the file system using the fsck command as follows:


    host% rsh target fsck raw_device
    

    where raw_device is a raw mode special file indicating a partition such as /dev/rda0a.

Checking an MS-DOS File System

    Check the file system using the fsck command as follows:


    host% rsh target fsck_msdos raw_device
    

    where raw_device is a raw mode special file indicating a partition such as /dev/rhd0a.

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.