ChorusOS 4.0 File System Administration Guide

3.4 How to Check 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 arun /bin/fsck raw_device
    

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

Checking an MS-DOS File System

    Create the file system using the fsck_dos command as follows:


    host% rsh target arun /bin/fsck_dos 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_dos display information on the file system in use. In case of errors, both fsck and fsck_dos attempt a recovery procedure, optionally requiring confirmation. If you want to run either command in non-interactive mode, use the -y option.