⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 4.t

📁 早期freebsd实现
💻 T
📖 第 1 页 / 共 3 页
字号:
.\" Copyright (c) 1982, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"	@(#)4.t	8.1 (Berkeley) 6/5/93.\".ds RH Appendix A \- Fsck Error Conditions.NHAppendix A \- Fsck Error Conditions.NH 2 Conventions.PP.I Fsckisa multi-pass file system check program.Each file system pass invokes a different Phase of the.I fsckprogram.After the initial setup,.I fsckperforms successive Phases over each file system,checking blocks and sizes,path-names,connectivity,reference counts,and the map of free blocks,(possibly rebuilding it),and performs some cleanup..LPNormally.I fsckis run non-interactively to.I preenthe file systems after an unclean halt.While preen'ing a file system,it will only fix corruptions that are expectedto occur from an unclean halt.These actions are a proper subset of the actions that .I fsckwill take when it is running interactively.Throughout this appendix many errors have several optionsthat the operator can take.When an inconsistency is detected,.I fsckreports the error condition to the operator.If a response is required,.I fsckprints a prompt message andwaits for a response.When preen'ing most errors are fatal.For those that are expected,the response taken is noted.This appendix explains the meaning of each error condition,the possible responses, and the related error conditions..LPThe error conditions are organized by the.I Phaseof the.I fsckprogram in which they can occur.The error conditions that may occurin more than one Phasewill be discussed in initialization..NH 2 Initialization.PPBefore a file system check can be performed, certaintables have to be set up and certain files opened.This section concerns itself with the opening of files andthe initialization of tables.This section lists error conditions resulting fromcommand line options,memory requests,opening of files,status of files,file system size checks,and creation of the scratch file.All the initialization errors are fatalwhen the file system is being preen'ed..sp.LP.B "\fIC\fP option?".br\fIC\fP is not a legal option to.I fsck ;legal options are \-b, \-c, \-y, \-n, and \-p..I Fsckterminates on this error condition.See the.I fsck (8)manual entry for further detail..sp.LP.B "cannot alloc NNN bytes for blockmap".br.B "cannot alloc NNN bytes for freemap".br.B "cannot alloc NNN bytes for statemap".br.B "cannot alloc NNN bytes for lncntp".br.I Fsck 'srequest for memory for its virtualmemory tables failed.This should never happen..I Fsckterminates on this error condition.See a guru..sp.LP.B "Can't open checklist file: \fIF\fP".brThe file system checklist file\fIF\fP (usually.I /etc/fstab )can not be opened for reading..I Fsckterminates on this error condition.Check access modes of \fIF\fP..sp.LP.B "Can't stat root".br.I Fsck 'srequest for statistics about the root directory ``/'' failed.This should never happen..I Fsckterminates on this error condition.See a guru..sp.LP.B "Can't stat \fIF\fP".br.B "Can't make sense out of name \fIF\fP".br.I Fsck 'srequest for statistics about the file system \fIF\fP failed.When running manually,it ignores this file systemand continues checking the next file system given.Check access modes of \fIF\fP..sp.LP.B "Can't open \fIF\fP".br.I Fsck 'srequest attempt to open the file system \fIF\fP failed.When running manually, it ignores this file systemand continues checking the next file system given.Check access modes of \fIF\fP..sp.LP.B "\fIF\fP: (NO WRITE)".brEither the \-n flag was specified or.I fsck 'sattempt to open the file system \fIF\fP for writing failed.When running manually,all the diagnostics are printed out,but no modifications are attempted to fix them..sp.LP.B "file is not a block or character device; OK".brYou have given.I fscka regular file name by mistake.Check the type of the file specified..LPPossible responses to the OK prompt are:.IP YESignore this error condition..IP NOignore this file system and continues checkingthe next file system given..sp.LP.B "UNDEFINED OPTIMIZATION IN SUPERBLOCK (SET TO DEFAULT)".brThe superblock optimization parameter is neither OPT_TIMEnor OPT_SPACE..LPPossible responses to the SET TO DEFAULT prompt are:.IP YESThe superblock is set to request optimization to minimizerunning time of the system.(If optimization to minimize disk space utilization isdesired, it can be set using \fItunefs\fP(8).).IP NOignore this error condition..sp.LP.B "IMPOSSIBLE MINFREE=\fID\fP IN SUPERBLOCK (SET TO DEFAULT)".brThe superblock minimum space percentage is greater than 99%or less then 0%..LPPossible responses to the SET TO DEFAULT prompt are:.IP YESThe minfree parameter is set to 10%.(If some other percentage is desired,it can be set using \fItunefs\fP(8).).IP NOignore this error condition..sp.LP.B "IMPOSSIBLE INTERLEAVE=\fID\fP IN SUPERBLOCK (SET TO DEFAULT)".brThe file system interleave is less than or equal to zero..LPPossible responses to the SET TO DEFAULT prompt are:.IP YESThe interleave parameter is set to 1..IP NOignore this error condition..sp.LP.B "IMPOSSIBLE NPSECT=\fID\fP IN SUPERBLOCK (SET TO DEFAULT)".brThe number of physical sectors per track is less than the numberof usable sectors per track..LPPossible responses to the SET TO DEFAULT prompt are:.IP YESThe npsect parameter is set to the number of usable sectors per track..IP NOignore this error condition..sp.LPOne of the following messages will appear:.br.B "MAGIC NUMBER WRONG".br.B "NCG OUT OF RANGE".br.B "CPG OUT OF RANGE".br.B "NCYL DOES NOT JIVE WITH NCG*CPG".br.B "SIZE PREPOSTEROUSLY LARGE".br.B "TRASHED VALUES IN SUPER BLOCK".brand will be followed by the message:.br.B "\fIF\fP: BAD SUPER BLOCK: \fIB\fP".br.B "USE -b OPTION TO FSCK TO SPECIFY LOCATION OF AN ALTERNATE".br.B "SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck(8).".brThe super block has been corrupted. An alternative super block must be selected from among thoselisted by.I newfs(8) when the file system was created.For file systems with a blocksize less than 32K,specifying \-b 32 is a good first choice..sp.LP.B "INTERNAL INCONSISTENCY: \fIM\fP".br.I Fsck 'shas had an internal panic, whose message is specified as \fIM\fP.This should never happen.See a guru..sp.LP.B "CAN NOT SEEK: BLK \fIB\fP (CONTINUE)".br.I Fsck 'srequest for moving to a specified block number \fIB\fP inthe file system failed.This should never happen.See a guru..LPPossible responses to the CONTINUE prompt are:.IP YESattempt to continue to run the file system check.Often,however the problem will persist.This error condition will not allow a complete check of the file system.A second run of.I fsckshould be made to re-check this file system.If the block was part of the virtual memory buffercache,.I fsckwill terminate with the message ``Fatal I/O error''..IP NOterminate the program..sp.LP.B "CAN NOT READ: BLK \fIB\fP (CONTINUE)".br.I Fsck 'srequest for reading a specified block number \fIB\fP inthe file system failed.This should never happen.See a guru..LPPossible responses to the CONTINUE prompt are:.IP YESattempt to continue to run the file system check.It will retry the read and print out the message:.br.B "THE FOLLOWING SECTORS COULD NOT BE READ: \fIN\fP".brwhere \fIN\fP indicates the sectors that could not be read.If .I fsckever tries to write back one of the blocks on which the read failedit will print the message:.br.B "WRITING ZERO'ED BLOCK \fIN\fP TO DISK".brwhere \fIN\fP indicates the sector that was written with zero's.If the disk is experiencing hardware problems, the problem will persist.This error condition will not allow a complete check of the file system.A second run of.I fsckshould be made to re-check this file system.If the block was part of the virtual memory buffercache,.I fsckwill terminate with the message ``Fatal I/O error''..IP NOterminate the program..sp.LP.B "CAN NOT WRITE: BLK \fIB\fP (CONTINUE)".br.I Fsck 'srequest for writing a specified block number \fIB\fPin the file system failed.The disk is write-protected;check the write protect lock on the drive.If that is not the problem, see a guru..LPPossible responses to the CONTINUE prompt are:.IP YESattempt to continue to run the file system check.The write operation will be retried with the failed blocksindicated by the message:.br.B "THE FOLLOWING SECTORS COULD NOT BE WRITTEN: \fIN\fP".brwhere \fIN\fP indicates the sectors that could not be written.If the disk is experiencing hardware problems, the problem will persist.This error condition will not allow a complete check of the file system.A second run of.I fsckshould be made to re-check this file system.If the block was part of the virtual memory buffercache,.I fsckwill terminate with the message ``Fatal I/O error''..IP NOterminate the program..sp.LP.B "bad inode number DDD to ginode".brAn internal error has attempted to read non-existent inode \fIDDD\fP.This error causes .I fsckto exit.See a guru..NH 2 Phase 1 \- Check Blocks and Sizes.PPThis phase concerns itself withthe inode list.This section lists error conditions resulting fromchecking inode types,setting up the zero-link-count table,examining inode block numbers for bad or duplicate blocks,checking inode size,and checking inode format.All errors in this phase except.B "INCORRECT BLOCK COUNT"and.B "PARTIALLY TRUNCATED INODE"are fatal if the file system is being preen'ed..sp.LP.B "UNKNOWN FILE TYPE I=\fII\fP (CLEAR)".brThe mode word of the inode \fII\fP indicates that the inode is not aspecial block inode, special character inode, socket inode, regular inode,symbolic link, or directory inode..LPPossible responses to the CLEAR prompt are:.IP YESde-allocate inode \fII\fP by zeroing its contents.This will always invoke the UNALLOCATED error condition in Phase 2for each directory entry pointing to this inode..IP NOignore this error condition..sp.LP.B "PARTIALLY TRUNCATED INODE I=\fII\fP (SALVAGE)".br.I Fsckhas found inode \fII\fP whose size is shorter than the number ofblocks allocated to it.This condition should only occur if the system crashes while in themidst of truncating a file.When preen'ing the file system, .I fsckcompletes the truncation to the specified size..LPPossible responses to SALVAGE are:.IP YEScomplete the truncation to the size specified in the inode..IP NOignore this error condition..sp.LP.B "LINK COUNT TABLE OVERFLOW (CONTINUE)".brAn internal table for.I fsckcontaining allocated inodes with a link count ofzero cannot allocate more memory.Increase the virtual memory for.I fsck ..LPPossible responses to the CONTINUE prompt are:.IP YEScontinue with the program.This error condition will not allow a complete check of the file system.A second run of.I fsckshould be made to re-check this file system.If another allocated inode with a zero link count is found,this error condition is repeated..IP NOterminate the program..sp.LP.B "\fIB\fP BAD I=\fII\fP".brInode \fII\fP contains block number \fIB\fP with a numberlower than the number of the first data block in the file system orgreater than the number of the last blockin the file system.This error condition may invoke the

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -