📄 icheck.8
字号:
.\" SCCSID: @(#)icheck.8 8.1 9/11/90.TH icheck 8 .SH Nameicheck \- check inode consistency.SH Syntax.B /etc/icheck[.B \-s] [.B \-b.I numbers ][ .I filesystem ].SH Description.NXR "icheck command".NXR "file system" "checking consistency".NXA "icheck command" "fsck command"The.PN icheckcommand is obsoleted for normal consistency checking by.MS fsck 8 ..PPThe.PN icheckcommand examines 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.PN icheckincludes a report of:.NXR "icheck command" "information reported".IP \(bu 4The total number of files and the numbers ofregular, directory, block special and character special files..IP \(bu 4The total number of blocks in use and the numbers of single-, double-, and triple-indirect blocks and directory blocks..IP \(bu 4The number of free blocks..IP \(bu 4The number of blocks missing, that is, not in any filenor in the free list..PPThe.PN \-soption causes.PN 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.PN \-soptioncauses the normal output reports to be suppressed..PPFollowing the.PN \-boption is a list of block numbers;whenever any of the named blocks turns up in a file,a diagnostic is produced..PPThe.PN icheckcommand is faster if the raw version of the special file is used,since it reads the i-list many blocks at a time..SH DiagnosticsFor duplicate blocksand bad blocks (which lie outside the file system).PN 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.PN 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.IR n ""blocks were found in the free list whichduplicate blocks either in some file or in the earlier part of the free list..SH Restrictions.NXR "icheck command" "restricted"Since.PN icheckis inherently two-pass in nature, extraneous diagnosticsmay be produced if applied to active file systems..PPIt believes even preposterous super-blocks andconsequently can get core images..SH FilesDefault file systems vary with installation..SH See Alsofs(5), clri(8), dcheck(8), fsck(8), ncheck(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -