📄 4.t
字号:
.sp.LP.B "BAD RETURN STATE \fIS\fP FROM DESCEND".brAn internal error has caused an impossible state \fIS\fP to be returnedfrom the routine that descends the file system directory structure..I Fsckexits.See a guru..sp.LP.B "BAD STATE \fIS\fP FOR ROOT INODE".brAn internal error has caused an impossible state \fIS\fP to be assignedto the root inode..I Fsckexits.See a guru..NH 2 Phase 3 \- Check Connectivity.PPThis phase concerns itself with the directory connectivity seen inPhase 2.This section lists error conditions resulting fromunreferenced directories,and missing or full.I lost+founddirectories..sp.LP.B "UNREF DIR I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP (RECONNECT)".brThe directory inode \fII\fP was not connected to a directory entrywhen the file system was traversed.The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, andmodify time \fIT\fP of directory inode \fII\fP are printed.When preen'ing, the directory is reconnected if its size is non-zero,otherwise it is cleared..LPPossible responses to the RECONNECT prompt are:.IP YESreconnect directory inode \fII\fP to the file system in thedirectory for lost files (usually \fIlost+found\fP).This may invoke the.I lost+founderror condition in Phase 3if there are problems connecting directory inode \fII\fP to \fIlost+found\fP.This may also invoke the CONNECTED error condition in Phase 3 if the linkwas successful..IP NOignore this error condition.This will always invoke the UNREF error condition in Phase 4..sp.LP.B "NO lost+found DIRECTORY (CREATE)".brThere is no.I lost+founddirectory in the root directory of the file system;When preen'ing.I fscktries to create a \fIlost+found\fP directory..LPPossible responses to the CREATE prompt are:.IP YEScreate a \fIlost+found\fP directory in the root of the file system.This may raise the message:.br.B "NO SPACE LEFT IN / (EXPAND)".brSee below for the possible responses.Inability to create a \fIlost+found\fP directory generates the message:.br.B "SORRY. CANNOT CREATE lost+found DIRECTORY".brand aborts the attempt to linkup the lost inode.This will always invoke the UNREF error condition in Phase 4..IP NOabort the attempt to linkup the lost inode.This will always invoke the UNREF error condition in Phase 4..sp.LP.B "lost+found IS NOT A DIRECTORY (REALLOCATE)".brThe entry for.I lost+foundis not a directory..LPPossible responses to the REALLOCATE prompt are:.IP YESallocate a directory inode, and change \fIlost+found\fP to reference it.The previous inode reference by the \fIlost+found\fP name is not cleared.Thus it will either be reclaimed as an UNREF'ed inode or have itslink count ADJUST'ed later in this Phase.Inability to create a \fIlost+found\fP directory generates the message:.br.B "SORRY. CANNOT CREATE lost+found DIRECTORY".brand aborts the attempt to linkup the lost inode.This will always invoke the UNREF error condition in Phase 4..IP NOabort the attempt to linkup the lost inode.This will always invoke the UNREF error condition in Phase 4..sp.LP.B "NO SPACE LEFT IN /lost+found (EXPAND)".brThere is no space to add another entry to the.I lost+founddirectory in the root directoryof the file system.When preen'ing the .I lost+founddirectory is expanded..LPPossible responses to the EXPAND prompt are:.IP YESthe .I lost+founddirectory is expanded to make room for the new entry.If the attempted expansion fails.I fsckprints the message:.br.B "SORRY. NO SPACE IN lost+found DIRECTORY".brand aborts the attempt to linkup the lost inode.This will always invoke the UNREF error condition in Phase 4.Clean out unnecessary entries in.I lost+found .This error is fatal if the file system is being preen'ed..IP NOabort the attempt to linkup the lost inode.This will always invoke the UNREF error condition in Phase 4..sp.LP.B "DIR I=\fII1\fP CONNECTED. PARENT WAS I=\fII2\fP".brThis is an advisory message indicating a directory inode \fII1\fP wassuccessfully connected to the.I lost+founddirectory.The parent inode \fII2\fP of the directory inode \fII1\fP isreplaced by the inode number of the.I lost+founddirectory..sp.LP.B "DIRECTORY \fIF\fP LENGTH \fIS\fP NOT MULTIPLE OF \fIB\fP (ADJUST).brA directory \fIF\fP has been found with size \fIS\fP that is nota multiple of the directory blocksize \fIB\fP(this can reoccur in Phase 3 if it is not adjusted in Phase 2)..LPPossible responses to the ADJUST prompt are:.IP YESthe length is rounded up to the appropriate block size.This error can occur on 4.2BSD file systems.Thus when preen'ing the file system only a warning is printedand the directory is adjusted..IP NOignore the error condition..sp.LP.B "BAD INODE \fIS\fP TO DESCEND".brAn internal error has caused an impossible state \fIS\fP to be passed to theroutine that descends the file system directory structure..I Fsckexits.See a guru..NH 2 Phase 4 \- Check Reference Counts.PPThis phase concerns itself with the link count informationseen in Phase 2 and Phase 3.This section lists error conditions resulting fromunreferenced files,missing or full.I lost+founddirectory,incorrect link counts for files, directories, symbolic links, or special files,unreferenced files, symbolic links, and directories,and bad or duplicate blocks in files, symbolic links, and directories.All errors in this phase are correctable if the file system is being preen'edexcept running out of space in the \fIlost+found\fP directory..sp.LP.B "UNREF FILE I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP (RECONNECT)".brInode \fII\fP was not connected to a directory entrywhen the file system was traversed.The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, andmodify time \fIT\fP of inode \fII\fP are printed.When preen'ing the file is cleared if either its size or itslink count is zero,otherwise it is reconnected..LPPossible responses to the RECONNECT prompt are:.IP YESreconnect inode \fII\fP to the file system in the directory forlost files (usually \fIlost+found\fP).This may invoke the.I lost+founderror condition in Phase 4if there are problems connecting inode \fII\fP to.I lost+found ..IP NOignore this error condition.This will always invoke the CLEAR error condition in Phase 4..sp.LP.B "(CLEAR)".brThe inode mentioned in the immediately previous error condition can not bereconnected.This cannot occur if the file system is being preen'ed,since lack of space to reconnect files is a fatal error..LPPossible responses to the CLEAR prompt are:.IP YESde-allocate the inode mentioned in the immediately previous error condition by zeroing its contents..IP NOignore this error condition..sp.LP.B "NO lost+found DIRECTORY (CREATE)".brThere is no.I lost+founddirectory in the root directory of the file system;When preen'ing.I fscktries to create a \fIlost+found\fP directory..LPPossible responses to the CREATE prompt are:.IP YEScreate a \fIlost+found\fP directory in the root of the file system.This may raise the message:.br.B "NO SPACE LEFT IN / (EXPAND)".brSee below for the possible responses.Inability to create a \fIlost+found\fP directory generates the message:.br.B "SORRY. CANNOT CREATE lost+found DIRECTORY".brand aborts the attempt to linkup the lost inode.This will always invoke the UNREF error condition in Phase 4..IP NOabort the attempt to linkup the lost inode.This will always invoke the UNREF error condition in Phase 4..sp.LP.B "lost+found IS NOT A DIRECTORY (REALLOCATE)".brThe entry for.I lost+foundis not a directory..LPPossible responses to the REALLOCATE prompt are:.IP YESallocate a directory inode, and change \fIlost+found\fP to reference it.The previous inode reference by the \fIlost+found\fP name is not cleared.Thus it will either be reclaimed as an UNREF'ed inode or have itslink count ADJUST'ed later in this Phase.Inability to create a \fIlost+found\fP directory generates the message:.br.B "SORRY. CANNOT CREATE lost+found DIRECTORY".brand aborts the attempt to linkup the lost inode.This will always invoke the UNREF error condition in Phase 4..IP NOabort the attempt to linkup the lost inode.This will always invoke the UNREF error condition in Phase 4..sp.LP.B "NO SPACE LEFT IN /lost+found (EXPAND)".brThere is no space to add another entry to the.I lost+founddirectory in the root directoryof the file system.When preen'ing the .I lost+founddirectory is expanded..LPPossible responses to the EXPAND prompt are:.IP YESthe .I lost+founddirectory is expanded to make room for the new entry.If the attempted expansion fails.I fsckprints the message:.br.B "SORRY. NO SPACE IN lost+found DIRECTORY".brand aborts the attempt to linkup the lost inode.This will always invoke the UNREF error condition in Phase 4.Clean out unnecessary entries in.I lost+found .This error is fatal if the file system is being preen'ed..IP NOabort the attempt to linkup the lost inode.This will always invoke the UNREF error condition in Phase 4..sp.LP.B "LINK COUNT \fItype\fP I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP COUNT=\fIX\fP SHOULD BE \fIY\fP (ADJUST)".brThe link count for inode \fII\fP,is \fIX\fP but should be \fIY\fP.The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, and modify time \fIT\fPare printed.When preen'ing the link count is adjusted unless the number of referencesis increasing, a condition that should never occur unless precipitatedby a hardware failure.When the number of references is increasing under preen mode,.I fsckexits with the message:.br.B "LINK COUNT INCREASING".LPPossible responses to the ADJUST prompt are:.IP YESreplace the link count of file inode \fII\fP with \fIY\fP..IP NOignore this error condition..sp.LP.B "UNREF \fItype\fP I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP (CLEAR)".brInode \fII\fP, was not connected to a directory entry when thefile system was traversed.The owner \fIO\fP, mode \fIM\fP, size \fIS\fP,and modify time \fIT\fP of inode \fII\fPare printed.When preen'ing,this is a file that was not connected because its size or link count was zero,hence it is cleared..LPPossible responses to the CLEAR prompt are:.IP YESde-allocate inode \fII\fP by zeroing its contents..IP NOignore this error condition..sp.LP.B "BAD/DUP \fItype\fP I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP (CLEAR)".brPhase 1 or Phase 1b have found duplicate blocksor bad blocks associated withinode \fII\fP.The owner \fIO\fP, mode \fIM\fP, size \fIS\fP,and modify time \fIT\fP of inode \fII\fPare printed.This error cannot arise when the file system is being preen'ed,as it would have caused a fatal error earlier..LPPossible responses to the CLEAR prompt are:.IP YESde-allocate inode \fII\fP by zeroing its contents..IP NOignore this error condition..NH 2 Phase 5 - Check Cyl groups.PPThis phase concerns itself with the free-block and used-inode maps.This section lists error conditions resulting fromallocated blocks in the free-block maps,free blocks missing from free-block maps,and the total free-block count incorrect.It also lists error conditions resulting fromfree inodes in the used-inode maps,allocated inodes missing from used-inode maps,and the total used-inode count incorrect..sp.LP.B "CG \fIC\fP: BAD MAGIC NUMBER".brThe magic number of cylinder group \fIC\fP is wrong.This usually indicates that the cylinder group maps have been destroyed.When running manually the cylinder group is marked as needingto be reconstructed.This error is fatal if the file system is being preen'ed..sp.LP.B "BLK(S) MISSING IN BIT MAPS (SALVAGE)".brA cylinder group block map is missing some free blocks.During preen'ing the maps are reconstructed..LPPossible responses to the SALVAGE prompt are:.IP YESreconstruct the free block map..IP NOignore this error condition..sp.LP.B "SUMMARY INFORMATION BAD (SALVAGE)".brThe summary information was found to be incorrect.When preen'ing,the summary information is recomputed..LPPossible responses to the SALVAGE prompt are:.IP YESreconstruct the summary information..IP NOignore this error condition..sp.LP.B "FREE BLK COUNT(S) WRONG IN SUPERBLOCK (SALVAGE)".brThe superblock free block information was found to be incorrect.When preen'ing,the superblock free block information is recomputed..LPPossible responses to the SALVAGE prompt are:.IP YESreconstruct the superblock free block information..IP NOignore this error condition..NH 2 Cleanup.PPOnce a file system has been checked, a few cleanup functions are performed.This section lists advisory messages aboutthe file systemand modify status of the file system..sp.LP.B "\fIV\fP files, \fIW\fP used, \fIX\fP free (\fIY\fP frags, \fIZ\fP blocks)".brThis is an advisory message indicating thatthe file system checked contained\fIV\fP files using\fIW\fP fragment sized blocks leaving\fIX\fP fragment sized blocks free in the file system.The numbers in parenthesis breaks the free count down into\fIY\fP free fragments and\fIZ\fP free full sized blocks..sp.LP.B "***** REBOOT UNIX *****".brThis is an advisory message indicating thatthe root file system has been modified by.I fsck.If UNIX is not rebooted immediately,the work done by.I fsckmay be undone by the in-core copies of tablesUNIX keeps.When preen'ing,.I fsckwill exit with a code of 4.The standard auto-reboot script distributed with 4.3BSD interprets an exit code of 4 by issuing a reboot system call..sp.LP.B "***** FILE SYSTEM WAS MODIFIED *****".brThis is an advisory message indicating thatthe current file system was modified by.I fsck.If this file system is mounted or is the current root file system,.I fsckshould be halted and UNIX rebooted.If UNIX is not rebooted immediately,the work done by.I fsckmay be undone by the in-core copies of tablesUNIX keeps.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -