odfsfsck(8) CLIX odfsfsck(8)
NAME
odfsfsck - Checks and repairs Optical WORM ODFS file systems
SYNOPSIS
/etc/odfsfsck [-y] [-Q] [-n] [-o] [-O] special
FLAGS
-y Assumes a yes response to all questions asked by the odfsfsck
command.
-n Assumes a no response to all questions asked by the odfsfsck command.
-Q Performs a quick check for blank blocks instead of checking the
entire disk. This flag must be used with caution, since it means
that the command will check only a portion of the disk for blank
blocks and assume that the remaining part is also blank.
-o Writes out the ``orphaned'' files to the lost+found directory.
-O Optimizes the recovery during the times when there is not enough disk
space left to complete the recovery. This could happen when the disk
is almost full and the file system requires a check. This flag must
be used with extreme caution.
-F Forces a file system check. Used when it is required to force the
file system to perform a check even when messages report everything
is fine. This flag is to be used in the case when a user knows that
the file system is suspect, but the normal check does not detect it.
DESCRIPTION
The odfsfsck command audits and interactively repairs inconsistent
conditions for Optical WORM ODFS file systems. If the file system is
consistent, the command returns with the file system OK reply. If the file
system is inconsistent, the user is prompted for confirmation before each
correction is attempted. The default action for each correction is to
wait for the user to repond yes or no.
The odfsfsck command ensures that the blocks beyond the latest superblock
are all blank. For file systems that have only been written for a small
portion, this check could take a long time. To speed up the process of
checking, the -Q flag could be used. However, it should be noted that use
of this flag results in making some assumptions about the blank blocks
based on the testing of a few blocks.
The special must be either a block or a character device file for the
drive. Inconsistencies checked for include the following:
2/94 - Intergraph Corporation 1
odfsfsck(8) CLIX odfsfsck(8)
1. Correct location of super block.
2. Validity of super block.
3. Validity of the map blocks and their links.
4. Validity of the inode list.
5. Ensure that the entire directory tree is available.
6. Incorrect link counts. Orphaned files can either be deleted, or put
in the lost+found directory, with the names corresponding to their
inode numbers.
EXAMPLE
To check the optical WORM ODFS file system on the special device for the
WORM optical disk connected to SCSI ID 3 and respond yes to all of the
questions asked by odfsfsck, key in the following command:
odfsfsck -y /dev/dsk/ods3u0
NOTES
The odfsfsck command requires superuser privileges.
EXIT VALUES
The odfsfsck command exits with a value of 0 if successful. If
unsuccessful, it exits with a nonzero value.
RELATED INFORMATION
Commands: fsck(8), fstyp(8)
2 Intergraph Corporation - 2/94