ICHECK(8) — Unix Programmer’s Manual
NAME
icheck − filesystem storage consistency check
SYNOPSIS
/etc/icheck [ options ] [ filesystem ]
DESCRIPTION
Note: Icheck is obsoleted for normal consistency checking by fsck(8).
Icheck examines a filesystem, builds a bit map of used blocks, and compares this bit map to the free list maintained on the filesystem. If the filesystem is not specified, a set of default filesystems is checked. The normal output of icheck are attached to the system; “ubglue.s” contains a set of interrupt service routines for devices attached to the QBUS; “makefile” is used by make(1) in building the system. Also output is a set of header files which contain the number of various devices that will be compiled into the system, and a set of swap configuration files which contain definitions for the disk areas to be used for swapping, the root filesystem, argument processing, anddes the following information:
•The total number of files and the numbers of regular, directory, block special and character special files.
•The total number of blocks in use and the numbers of single-, double-, and triple-indirect blocks and directory blocks.
•The number of free blocks.
•The number of blocks missing; i.e., neither in any file nor in the free list.
OPTIONS
−b numbers Following this option is a list of block numbers. Whenever any of the named blocks turns up in a file, a diagnostic is produced.
−s Causes icheck to ignore the actual free list and reconstruct a new one by rewriting the super-block of the filesystem. The filesystem should be dismounted while this is done. If this is not possible (for example, if the root filesystem has to be salvaged) care should be taken to see that the system is quiescent and that it is rebooted immediately afterwards so that the old, bad in-core copy of the super-block will not continue to be used. Notice also that the words in the super-block which indicate the size of the free list and of the i-list are believed. If the super-block has been curdled these words will have to be patched. The −s option causes the normal output reports to be suppressed.
Icheck is faster if the raw version of the special file is used, since it reads the i-list many blocks at a time.
FILES
Default filesystems vary with installation.
SEE ALSO
fsck(8), dcheck(8), ncheck(8), fs(5), clri(8)
DIAGNOSTICS
For duplicate blocks and bad blocks (which lie outside the filesystem) icheck announces the difficulty, the i-number, and the kind of block involved. If a read error is encountered, the block number of the bad block is printed and icheck considers it to contain 0. “Bad freeblock” means that a block number outside the available space was encountered i
4th Berkeley Distribution — 1 August 1985