This section explains how to check existing file systems for errors.
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.
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.
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.