Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ icheck(8) — Ultrix-11 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

filsys(5)

clri(8)

dcheck(8)

fsck(8)

ncheck(8)

icheck(8)

NAME

icheck − file system storage consistency check

SYNTAX

icheck [ −s ]  [ −b numbers ] filesystem

DESCRIPTION

The icheck command examines a file system, builds a bit map of used blocks, and compares this bit map against the free list maintained on the file system.  A file system must be specified since there are no default file systems.  The normal output of icheck includes a report of:

•Total number of files and the numbers of regular, directory, block special and character special files. 

•Total number of blocks in use and the numbers of single-, double-, and triple-indirect blocks and directory blocks. 

•Number of free blocks. 

•Number of blocks missing; that is, not in any file nor in the free list. 

The −s option causes icheck to ignore the actual free list and reconstruct a new one by rewriting the superblock of the file system.  The file system should be dismounted while this is done.  If this is not possible, for example, if the root file system has to be salvaged, care should be taken that the system is quiescent and that it is rebooted immediately afterwards so that the old, bad in-core copy of the superblock will not continue to be used.  Notice also that the words in the superblock which indicate the size of the free list and of the i-list are reactivated.  If the superblock has been corrupted, these words will have to be patched.  The −s option causes the normal output reports to be suppressed. 

Following the −b option is a list of block numbers; whenever any of the named blocks turns up in a file, a diagnostic is produced. 

The icheck command is faster if the raw version of the special file is used, since it reads the i-list many blocks at a time. 

RESTRICTIONS

Since icheck is inherently two-pass in nature, extraneous diagnostics may be produced if applied to active file systems. 
It believes even invalid superblocks and consequently can get core images.

DIAGNOSTICS

For duplicate blocks and bad blocks, which lie outside the file system, 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 in the free list.  ´n dups in free’ means that n blocks were found in the free list which duplicate blocks either in some file or in the earlier part of the free list. 

RESTRICTIONS

Since icheck is inherently two-pass in nature, extraneous diagnostics may be produced if applied to active file systems. 
It believes even invalid superblocks and consequently can get core images.

The fsck(8) command provides a more comprehensive file system check. 

FILES

There is no default file system name. 

SEE ALSO

filsys(5), clri(8), dcheck(8), fsck(8), ncheck(8)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026