📄 icheck.8
字号:
.th ICHECK VIII 2/9/75.sh NAMEicheck \*- file system storage consistency check.sh SYNOPSIS.bd icheck[.bd \*-s] [.bd \*-bnumbers ][ filesystem ].sh DESCRIPTION.it Icheckexamines a file system,builds a bit map of used blocks,and compares this bit map againstthe free list maintained on the file system.If the file system is not specified,a set of default file systemsis checked.The normal output of.it icheckincludes a report of.s3.lp +4 0The number of blocks missing; i.e. not in any filenor in the free list,.lp +4 0The number of special files,.lp +4 0The total number of files,.lp +4 0The number of large and huge files,.lp +4 0The number of directories,.lp +4 0The number of indirect blocks,and the number of double-indirect blocks in huge files,.lp +4 0The number of blocks used in files,.lp +4 0The number of free blocks..s3.i0The.bd \*-sflag causes.it icheckto ignore the actual free list and reconstruct a new oneby rewriting the super-block of the file system.The file system should be dismounted while this is done;if this is not possible (for example ifthe root file system has to be salvaged)care should be taken that the system is quiescent and thatit is rebooted immediately afterwards so that the old, bad in-corecopy of the super-block will not continue to be used.Notice also thatthe words in the super-blockwhich indicate the size of the free list and of thei-list are believed.If the super-block has been curdledthese words will have to be patched.The.bd \*-sflagcauses the normal output reports to be suppressed..s3Following the.bd \-bflag is a list of block numbers;whenever any of the named blocks turns up in a file,a diagnostic is produced..s3.it Icheckis faster if the raw version of the special file is used,since it reads the i-list many blocks at a time..sh FILESCurrently, /dev/rrk2and /dev/rrp0are the default file systems..sh "SEE ALSO"dcheck (VIII), ncheck (VIII),fs (V), clri (VIII), restor(VIII).sh DIAGNOSTICSFor duplicate blocksand bad blocks (which lie outside the file system).it icheckannounces 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.it icheckconsiders it to contain 0.``Bad freeblock'' means thata block number outside the available space was encountered in the free list.``\fIn\fR dups in free''means that \fIn\fR blocks were found in the free list whichduplicate blocks either in some file or in the earlier part of the free list..sh BUGSSince.it icheckis inherently two-pass in nature, extraneous diagnosticsmay be produced if applied to active file systems..brIt believes even preposterous super-blocks andconsequently can get core images.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -