]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - share/doc/smm/03.fsck/4.t
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / share / doc / smm / 03.fsck / 4.t
1 .\" Copyright (c) 1982, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 4. Neither the name of the University nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\"     $FreeBSD$
29 .\"     @(#)4.t 8.1 (Berkeley) 6/5/93
30 .\"
31 .ds RH Appendix A \- Fsck_ffs Error Conditions
32 .NH
33 Appendix A \- Fsck_ffs Error Conditions
34 .NH 2 
35 Conventions
36 .PP
37 .I Fsck_ffs
38 is
39 a multi-pass file system check program.
40 Each file system pass invokes a different Phase of the
41 .I fsck_ffs
42 program.
43 After the initial setup,
44 .I fsck_ffs
45 performs successive Phases over each file system,
46 checking blocks and sizes,
47 path-names,
48 connectivity,
49 reference counts,
50 and the map of free blocks,
51 (possibly rebuilding it),
52 and performs some cleanup.
53 .LP
54 Normally
55 .I fsck_ffs
56 is run non-interactively to
57 .I preen
58 the file systems after an unclean halt.
59 While preen'ing a file system,
60 it will only fix corruptions that are expected
61 to occur from an unclean halt.
62 These actions are a proper subset of the actions that 
63 .I fsck_ffs
64 will take when it is running interactively.
65 Throughout this appendix many errors have several options
66 that the operator can take.
67 When an inconsistency is detected,
68 .I fsck_ffs
69 reports the error condition to the operator.
70 If a response is required,
71 .I fsck_ffs
72 prints a prompt message and
73 waits for a response.
74 When preen'ing most errors are fatal.
75 For those that are expected,
76 the response taken is noted.
77 This appendix explains the meaning of each error condition,
78 the possible responses, and the related error conditions.
79 .LP
80 The error conditions are organized by the
81 .I Phase
82 of the
83 .I fsck_ffs
84 program in which they can occur.
85 The error conditions that may occur
86 in more than one Phase
87 will be discussed in initialization.
88 .NH 2 
89 Initialization
90 .PP
91 Before a file system check can be performed, certain
92 tables have to be set up and certain files opened.
93 This section concerns itself with the opening of files and
94 the initialization of tables.
95 This section lists error conditions resulting from
96 command line options,
97 memory requests,
98 opening of files,
99 status of files,
100 file system size checks,
101 and creation of the scratch file.
102 All the initialization errors are fatal
103 when the file system is being preen'ed.
104 .sp
105 .LP
106 .B "\fIC\fP option?"
107 .br
108 \fIC\fP is not a legal option to
109 .I fsck_ffs ;
110 legal options are \-b, \-c, \-y, \-n, and \-p.
111 .I Fsck_ffs
112 terminates on this error condition.
113 See the
114 .I fsck_ffs (8)
115 manual entry for further detail.
116 .sp
117 .LP
118 .B "cannot alloc NNN bytes for blockmap"
119 .br
120 .B "cannot alloc NNN bytes for freemap"
121 .br
122 .B "cannot alloc NNN bytes for statemap"
123 .br
124 .B "cannot alloc NNN bytes for lncntp"
125 .br
126 .I Fsck_ffs 's
127 request for memory for its virtual
128 memory tables failed.
129 This should never happen.
130 .I Fsck_ffs
131 terminates on this error condition.
132 See a guru.
133 .sp
134 .LP
135 .B "Can't open checklist file: \fIF\fP"
136 .br
137 The file system checklist file
138 \fIF\fP (usually
139 .I /etc/fstab )
140 can not be opened for reading.
141 .I Fsck_ffs
142 terminates on this error condition.
143 Check access modes of \fIF\fP.
144 .sp
145 .LP
146 .B "Can't stat root"
147 .br
148 .I Fsck_ffs 's
149 request for statistics about the root directory ``/'' failed.
150 This should never happen.
151 .I Fsck_ffs
152 terminates on this error condition.
153 See a guru.
154 .sp
155 .LP
156 .B "Can't stat \fIF\fP"
157 .br
158 .B "Can't make sense out of name \fIF\fP"
159 .br
160 .I Fsck_ffs 's
161 request for statistics about the file system \fIF\fP failed.
162 When running manually,
163 it ignores this file system
164 and continues checking the next file system given.
165 Check access modes of \fIF\fP.
166 .sp
167 .LP
168 .B "Can't open \fIF\fP"
169 .br
170 .I Fsck_ffs 's
171 request attempt to open the file system \fIF\fP failed.
172 When running manually, it ignores this file system
173 and continues checking the next file system given.
174 Check access modes of \fIF\fP.
175 .sp
176 .LP
177 .B "\fIF\fP: (NO WRITE)"
178 .br
179 Either the \-n flag was specified or
180 .I fsck_ffs 's
181 attempt to open the file system \fIF\fP for writing failed.
182 When running manually,
183 all the diagnostics are printed out,
184 but no modifications are attempted to fix them.
185 .sp
186 .LP
187 .B "file is not a block or character device; OK"
188 .br
189 You have given
190 .I fsck_ffs
191 a regular file name by mistake.
192 Check the type of the file specified.
193 .LP
194 Possible responses to the OK prompt are:
195 .IP YES
196 ignore this error condition.
197 .IP NO
198 ignore this file system and continues checking
199 the next file system given.
200 .sp
201 .LP
202 .B "UNDEFINED OPTIMIZATION IN SUPERBLOCK (SET TO DEFAULT)"
203 .br
204 The superblock optimization parameter is neither OPT_TIME
205 nor OPT_SPACE.
206 .LP
207 Possible responses to the SET TO DEFAULT prompt are:
208 .IP YES
209 The superblock is set to request optimization to minimize
210 running time of the system.
211 (If optimization to minimize disk space utilization is
212 desired, it can be set using \fItunefs\fP(8).)
213 .IP NO
214 ignore this error condition.
215 .sp
216 .LP
217 .B "IMPOSSIBLE MINFREE=\fID\fP IN SUPERBLOCK (SET TO DEFAULT)"
218 .br
219 The superblock minimum space percentage is greater than 99%
220 or less then 0%.
221 .LP
222 Possible responses to the SET TO DEFAULT prompt are:
223 .IP YES
224 The minfree parameter is set to 10%.
225 (If some other percentage is desired,
226 it can be set using \fItunefs\fP(8).)
227 .IP NO
228 ignore this error condition.
229 .sp
230 .LP
231 .B "IMPOSSIBLE INTERLEAVE=\fID\fP IN SUPERBLOCK (SET TO DEFAULT)"
232 .br
233 The file system interleave is less than or equal to zero.
234 .LP
235 Possible responses to the SET TO DEFAULT prompt are:
236 .IP YES
237 The interleave parameter is set to 1.
238 .IP NO
239 ignore this error condition.
240 .sp
241 .LP
242 .B "IMPOSSIBLE NPSECT=\fID\fP IN SUPERBLOCK (SET TO DEFAULT)"
243 .br
244 The number of physical sectors per track is less than the number
245 of usable sectors per track.
246 .LP
247 Possible responses to the SET TO DEFAULT prompt are:
248 .IP YES
249 The npsect parameter is set to the number of usable sectors per track.
250 .IP NO
251 ignore this error condition.
252 .sp
253 .LP
254 One of the following messages will appear:
255 .br
256 .B "MAGIC NUMBER WRONG"
257 .br
258 .B "NCG OUT OF RANGE"
259 .br
260 .B "CPG OUT OF RANGE"
261 .br
262 .B "NCYL DOES NOT JIVE WITH NCG*CPG"
263 .br
264 .B "SIZE PREPOSTEROUSLY LARGE"
265 .br
266 .B "TRASHED VALUES IN SUPER BLOCK"
267 .br
268 and will be followed by the message:
269 .br
270 .B "\fIF\fP: BAD SUPER BLOCK: \fIB\fP"
271 .br
272 .B "USE -b OPTION TO FSCK_FFS TO SPECIFY LOCATION OF AN ALTERNATE"
273 .br
274 .B "SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck_ffs(8)."
275 .br
276 The super block has been corrupted. 
277 An alternative super block must be selected from among those
278 listed by
279 .I newfs
280 (8) when the file system was created.
281 For file systems with a blocksize less than 32K,
282 specifying \-b 32 is a good first choice.
283 .sp
284 .LP
285 .B "INTERNAL INCONSISTENCY: \fIM\fP"
286 .br
287 .I Fsck_ffs 's
288 has had an internal panic, whose message is specified as \fIM\fP.
289 This should never happen.
290 See a guru.
291 .sp
292 .LP
293 .B "CAN NOT SEEK: BLK \fIB\fP (CONTINUE)"
294 .br
295 .I Fsck_ffs 's
296 request for moving to a specified block number \fIB\fP in
297 the file system failed.
298 This should never happen.
299 See a guru.
300 .LP
301 Possible responses to the CONTINUE prompt are:
302 .IP YES
303 attempt to continue to run the file system check.
304 Often,
305 however the problem will persist.
306 This error condition will not allow a complete check of the file system.
307 A second run of
308 .I fsck_ffs
309 should be made to re-check this file system.
310 If the block was part of the virtual memory buffer
311 cache,
312 .I fsck_ffs
313 will terminate with the message ``Fatal I/O error''.
314 .IP NO
315 terminate the program.
316 .sp
317 .LP
318 .B "CAN NOT READ: BLK \fIB\fP (CONTINUE)"
319 .br
320 .I Fsck_ffs 's
321 request for reading a specified block number \fIB\fP in
322 the file system failed.
323 This should never happen.
324 See a guru.
325 .LP
326 Possible responses to the CONTINUE prompt are:
327 .IP YES
328 attempt to continue to run the file system check.
329 It will retry the read and print out the message:
330 .br
331 .B "THE FOLLOWING SECTORS COULD NOT BE READ: \fIN\fP"
332 .br
333 where \fIN\fP indicates the sectors that could not be read.
334 If 
335 .I fsck_ffs
336 ever tries to write back one of the blocks on which the read failed
337 it will print the message:
338 .br
339 .B "WRITING ZERO'ED BLOCK \fIN\fP TO DISK"
340 .br
341 where \fIN\fP indicates the sector that was written with zero's.
342 If the disk is experiencing hardware problems, the problem will persist.
343 This error condition will not allow a complete check of the file system.
344 A second run of
345 .I fsck_ffs
346 should be made to re-check this file system.
347 If the block was part of the virtual memory buffer
348 cache,
349 .I fsck_ffs
350 will terminate with the message ``Fatal I/O error''.
351 .IP NO
352 terminate the program.
353 .sp
354 .LP
355 .B "CAN NOT WRITE: BLK \fIB\fP (CONTINUE)"
356 .br
357 .I Fsck_ffs 's
358 request for writing a specified block number \fIB\fP
359 in the file system failed.
360 The disk is write-protected;
361 check the write protect lock on the drive.
362 If that is not the problem, see a guru.
363 .LP
364 Possible responses to the CONTINUE prompt are:
365 .IP YES
366 attempt to continue to run the file system check.
367 The write operation will be retried with the failed blocks
368 indicated by the message:
369 .br
370 .B "THE FOLLOWING SECTORS COULD NOT BE WRITTEN: \fIN\fP"
371 .br
372 where \fIN\fP indicates the sectors that could not be written.
373 If the disk is experiencing hardware problems, the problem will persist.
374 This error condition will not allow a complete check of the file system.
375 A second run of
376 .I fsck_ffs
377 should be made to re-check this file system.
378 If the block was part of the virtual memory buffer
379 cache,
380 .I fsck_ffs
381 will terminate with the message ``Fatal I/O error''.
382 .IP NO
383 terminate the program.
384 .sp
385 .LP
386 .B "bad inode number DDD to ginode"
387 .br
388 An internal error has attempted to read non-existent inode \fIDDD\fP.
389 This error causes 
390 .I fsck_ffs
391 to exit.
392 See a guru.
393 .NH 2 
394 Phase 1 \- Check Blocks and Sizes
395 .PP
396 This phase concerns itself with
397 the inode list.
398 This section lists error conditions resulting from
399 checking inode types,
400 setting up the zero-link-count table,
401 examining inode block numbers for bad or duplicate blocks,
402 checking inode size,
403 and checking inode format.
404 All errors in this phase except
405 .B "INCORRECT BLOCK COUNT"
406 and
407 .B "PARTIALLY TRUNCATED INODE"
408 are fatal if the file system is being preen'ed.
409 .sp
410 .LP
411 .B "UNKNOWN FILE TYPE I=\fII\fP (CLEAR)"
412 .br
413 The mode word of the inode \fII\fP indicates that the inode is not a
414 special block inode, special character inode, socket inode, regular inode,
415 symbolic link, or directory inode.
416 .LP
417 Possible responses to the CLEAR prompt are:
418 .IP YES
419 de-allocate inode \fII\fP by zeroing its contents.
420 This will always invoke the UNALLOCATED error condition in Phase 2
421 for each directory entry pointing to this inode.
422 .IP NO
423 ignore this error condition.
424 .sp
425 .LP
426 .B "PARTIALLY TRUNCATED INODE I=\fII\fP (SALVAGE)"
427 .br
428 .I Fsck_ffs
429 has found inode \fII\fP whose size is shorter than the number of
430 blocks allocated to it.
431 This condition should only occur if the system crashes while in the
432 midst of truncating a file.
433 When preen'ing the file system, 
434 .I fsck_ffs
435 completes the truncation to the specified size.
436 .LP
437 Possible responses to SALVAGE are:
438 .IP YES
439 complete the truncation to the size specified in the inode.
440 .IP NO
441 ignore this error condition.
442 .sp
443 .LP
444 .B "LINK COUNT TABLE OVERFLOW (CONTINUE)"
445 .br
446 An internal table for
447 .I fsck_ffs
448 containing allocated inodes with a link count of
449 zero cannot allocate more memory.
450 Increase the virtual memory for
451 .I fsck_ffs .
452 .LP
453 Possible responses to the CONTINUE prompt are:
454 .IP YES
455 continue with the program.
456 This error condition will not allow a complete check of the file system.
457 A second run of
458 .I fsck_ffs
459 should be made to re-check this file system.
460 If another allocated inode with a zero link count is found,
461 this error condition is repeated.
462 .IP NO
463 terminate the program.
464 .sp
465 .LP
466 .B "\fIB\fP BAD I=\fII\fP"
467 .br
468 Inode \fII\fP contains block number \fIB\fP with a number
469 lower than the number of the first data block in the file system or
470 greater than the number of the last block
471 in the file system.
472 This error condition may invoke the
473 .B "EXCESSIVE BAD BLKS"
474 error condition in Phase 1 (see next paragraph) if
475 inode \fII\fP has too many block numbers outside the file system range.
476 This error condition will always invoke the
477 .B "BAD/DUP"
478 error condition in Phase 2 and Phase 4.
479 .sp
480 .LP
481 .B "EXCESSIVE BAD BLKS I=\fII\fP (CONTINUE)"
482 .br
483 There is more than a tolerable number (usually 10) of blocks with a number
484 lower than the number of the first data block in the file system or greater than
485 the number of last block in the file system associated with inode \fII\fP.
486 .LP
487 Possible responses to the CONTINUE prompt are:
488 .IP YES
489 ignore the rest of the blocks in this inode
490 and continue checking with the next inode in the file system.
491 This error condition will not allow a complete check of the file system.
492 A second run of
493 .I fsck_ffs
494 should be made to re-check this file system.
495 .IP NO
496 terminate the program.
497 .sp
498 .LP
499 .B "BAD STATE DDD TO BLKERR"
500 .br
501 An internal error has scrambled 
502 .I fsck_ffs 's
503 state map to have the impossible value \fIDDD\fP.
504 .I Fsck_ffs
505 exits immediately. 
506 See a guru.
507 .sp
508 .LP
509 .B "\fIB\fP DUP I=\fII\fP"
510 .br
511 Inode \fII\fP contains block number \fIB\fP that is already claimed by
512 another inode.
513 This error condition may invoke the
514 .B "EXCESSIVE DUP BLKS"
515 error condition in Phase 1 if
516 inode \fII\fP has too many block numbers claimed by other inodes.
517 This error condition will always invoke Phase 1b and the
518 .B "BAD/DUP"
519 error condition in Phase 2 and Phase 4.
520 .sp
521 .LP
522 .B "EXCESSIVE DUP BLKS I=\fII\fP (CONTINUE)"
523 .br
524 There is more than a tolerable number (usually 10) of blocks claimed by other
525 inodes.
526 .LP
527 Possible responses to the CONTINUE prompt are:
528 .IP YES
529 ignore the rest of the blocks in this inode
530 and continue checking with the next inode in the file system.
531 This error condition will not allow a complete check of the file system.
532 A second run of
533 .I fsck_ffs
534 should be made to re-check this file system.
535 .IP NO
536 terminate the program.
537 .sp
538 .LP
539 .B "DUP TABLE OVERFLOW (CONTINUE)"
540 .br
541 An internal table in
542 .I fsck_ffs
543 containing duplicate block numbers cannot allocate any more space.
544 Increase the amount of virtual memory available to
545 .I fsck_ffs .
546 .LP
547 Possible responses to the CONTINUE prompt are:
548 .IP YES
549 continue with the program.
550 This error condition will not allow a complete check of the file system.
551 A second run of
552 .I fsck_ffs
553 should be made to re-check this file system.
554 If another duplicate block is found, this error condition will repeat.
555 .IP NO
556 terminate the program.
557 .sp
558 .LP
559 .B "PARTIALLY ALLOCATED INODE I=\fII\fP (CLEAR)"
560 .br
561 Inode \fII\fP is neither allocated nor unallocated.
562 .LP
563 Possible responses to the CLEAR prompt are:
564 .IP YES
565 de-allocate inode \fII\fP by zeroing its contents.
566 .IP NO
567 ignore this error condition.
568 .sp
569 .LP
570 .B "INCORRECT BLOCK COUNT I=\fII\fP (\fIX\fP should be \fIY\fP) (CORRECT)"
571 .br
572 The block count for inode \fII\fP is \fIX\fP blocks,
573 but should be \fIY\fP blocks.
574 When preen'ing the count is corrected.
575 .LP
576 Possible responses to the CORRECT prompt are:
577 .IP YES
578 replace the block count of inode \fII\fP with \fIY\fP.
579 .IP NO
580 ignore this error condition.
581 .NH 2 
582 Phase 1B: Rescan for More Dups
583 .PP
584 When a duplicate block is found in the file system, the file system is
585 rescanned to find the inode that previously claimed that block.
586 This section lists the error condition when the duplicate block is found.
587 .sp
588 .LP
589 .B "\fIB\fP DUP I=\fII\fP"
590 .br
591 Inode \fII\fP contains block number \fIB\fP that
592 is already claimed by another inode.
593 This error condition will always invoke the
594 .B "BAD/DUP"
595 error condition in Phase 2.
596 You can determine which inodes have overlapping blocks by examining
597 this error condition and the DUP error condition in Phase 1.
598 .NH 2 
599 Phase 2 \- Check Pathnames
600 .PP
601 This phase concerns itself with removing directory entries
602 pointing to
603 error conditioned inodes
604 from Phase 1 and Phase 1b.
605 This section lists error conditions resulting from
606 root inode mode and status,
607 directory inode pointers in range,
608 and directory entries pointing to bad inodes,
609 and directory integrity checks.
610 All errors in this phase are fatal if the file system is being preen'ed,
611 except for directories not being a multiple of the blocks size
612 and extraneous hard links.
613 .sp
614 .LP
615 .B "ROOT INODE UNALLOCATED (ALLOCATE)"
616 .br
617 The root inode (usually inode number 2) has no allocate mode bits.
618 This should never happen.
619 .LP
620 Possible responses to the ALLOCATE prompt are:
621 .IP YES
622 allocate inode 2 as the root inode.
623 The files and directories usually found in the root will be recovered
624 in Phase 3 and put into
625 .I lost+found .
626 If the attempt to allocate the root fails,
627 .I fsck_ffs
628 will exit with the message:
629 .br
630 .B "CANNOT ALLOCATE ROOT INODE" .
631 .IP NO
632 .I fsck_ffs
633 will exit.
634 .sp
635 .LP
636 .B "ROOT INODE NOT DIRECTORY (REALLOCATE)"
637 .br
638 The root inode (usually inode number 2)
639 is not directory inode type.
640 .LP
641 Possible responses to the REALLOCATE prompt are:
642 .IP YES
643 clear the existing contents of the root inode
644 and reallocate it.
645 The files and directories usually found in the root will be recovered
646 in Phase 3 and put into
647 .I lost+found .
648 If the attempt to allocate the root fails,
649 .I fsck_ffs
650 will exit with the message:
651 .br
652 .B "CANNOT ALLOCATE ROOT INODE" .
653 .IP NO
654 .I fsck_ffs
655 will then prompt with
656 .B "FIX"
657 .LP
658 Possible responses to the FIX prompt are:
659 .IP YES
660 replace the root inode's type to be a directory.
661 If the root inode's data blocks are not directory blocks,
662 many error conditions will be produced.
663 .IP NO
664 terminate the program.
665 .sp
666 .LP
667 .B "DUPS/BAD IN ROOT INODE (REALLOCATE)"
668 .br
669 Phase 1 or Phase 1b have found duplicate blocks
670 or bad blocks in the root inode (usually inode number 2) for the file system.
671 .LP
672 Possible responses to the REALLOCATE prompt are:
673 .IP YES
674 clear the existing contents of the root inode
675 and reallocate it.
676 The files and directories usually found in the root will be recovered
677 in Phase 3 and put into
678 .I lost+found .
679 If the attempt to allocate the root fails,
680 .I fsck_ffs
681 will exit with the message:
682 .br
683 .B "CANNOT ALLOCATE ROOT INODE" .
684 .IP NO
685 .I fsck_ffs
686 will then prompt with
687 .B "CONTINUE" .
688 .LP
689 Possible responses to the CONTINUE prompt are:
690 .IP YES
691 ignore the
692 .B "DUPS/BAD"
693 error condition in the root inode and
694 attempt to continue to run the file system check.
695 If the root inode is not correct,
696 then this may result in many other error conditions.
697 .IP NO
698 terminate the program.
699 .sp
700 .LP
701 .B "NAME TOO LONG \fIF\fP"
702 .br
703 An excessively long path name has been found.
704 This usually indicates loops in the file system name space.
705 This can occur if the super user has made circular links to directories.
706 The offending links must be removed (by a guru).
707 .sp
708 .LP
709 .B "I OUT OF RANGE I=\fII\fP NAME=\fIF\fP (REMOVE)"
710 .br
711 A directory entry \fIF\fP has an inode number \fII\fP that is greater than
712 the end of the inode list.
713 .LP
714 Possible responses to the REMOVE prompt are:
715 .IP YES
716 the directory entry \fIF\fP is removed.
717 .IP NO
718 ignore this error condition.
719 .sp
720 .LP
721 .B "UNALLOCATED I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP \fItype\fP=\fIF\fP (REMOVE)"
722 .br
723 A directory or file entry \fIF\fP points to an unallocated inode \fII\fP.
724 The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, modify time \fIT\fP,
725 and name \fIF\fP are printed.
726 .LP
727 Possible responses to the REMOVE prompt are:
728 .IP YES
729 the directory entry \fIF\fP is removed.
730 .IP NO
731 ignore this error condition.
732 .sp
733 .LP
734 .B "DUP/BAD I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP \fItype\fP=\fIF\fP (REMOVE)"
735 .br
736 Phase 1 or Phase 1b have found duplicate blocks or bad blocks
737 associated with directory or file entry \fIF\fP, inode \fII\fP.
738 The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, modify time \fIT\fP,
739 and directory name \fIF\fP are printed.
740 .LP
741 Possible responses to the REMOVE prompt are:
742 .IP YES
743 the directory entry \fIF\fP is removed.
744 .IP NO
745 ignore this error condition.
746 .sp
747 .LP
748 .B "ZERO LENGTH DIRECTORY I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (REMOVE)"
749 .br
750 A directory entry \fIF\fP has a size \fIS\fP that is zero.
751 The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, modify time \fIT\fP,
752 and directory name \fIF\fP are printed.
753 .LP
754 Possible responses to the REMOVE prompt are:
755 .IP YES
756 the directory entry \fIF\fP is removed;
757 this will always invoke the BAD/DUP error condition in Phase 4.
758 .IP NO
759 ignore this error condition.
760 .sp
761 .LP
762 .B "DIRECTORY TOO SHORT I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
763 .br
764 A directory \fIF\fP has been found whose size \fIS\fP
765 is less than the minimum size directory.
766 The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, modify time \fIT\fP,
767 and directory name \fIF\fP are printed.
768 .LP
769 Possible responses to the FIX prompt are:
770 .IP YES
771 increase the size of the directory to the minimum directory size.
772 .IP NO
773 ignore this directory.
774 .sp
775 .LP
776 .B "DIRECTORY \fIF\fP LENGTH \fIS\fP NOT MULTIPLE OF \fIB\fP (ADJUST)
777 .br
778 A directory \fIF\fP has been found with size \fIS\fP that is not
779 a multiple of the directory blocksize \fIB\fP.
780 .LP
781 Possible responses to the ADJUST prompt are:
782 .IP YES
783 the length is rounded up to the appropriate block size.
784 This error can occur on 4.2BSD file systems.
785 Thus when preen'ing the file system only a warning is printed
786 and the directory is adjusted.
787 .IP NO
788 ignore the error condition.
789 .sp
790 .LP
791 .B "DIRECTORY CORRUPTED I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (SALVAGE)"
792 .br
793 A directory with an inconsistent internal state has been found.
794 .LP
795 Possible responses to the FIX prompt are:
796 .IP YES
797 throw away all entries up to the next directory boundary (usually 512-byte)
798 boundary.
799 This drastic action can throw away up to 42 entries,
800 and should be taken only after other recovery efforts have failed.
801 .IP NO
802 skip up to the next directory boundary and resume reading,
803 but do not modify the directory.
804 .sp
805 .LP
806 .B "BAD INODE NUMBER FOR `.' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
807 .br
808 A directory \fII\fP has been found whose inode number for `.' does
809 does not equal \fII\fP.
810 .LP
811 Possible responses to the FIX prompt are:
812 .IP YES
813 change the inode number for `.' to be equal to \fII\fP.
814 .IP NO
815 leave the inode number for `.' unchanged.
816 .sp
817 .LP
818 .B "MISSING `.' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
819 .br
820 A directory \fII\fP has been found whose first entry is unallocated.
821 .LP
822 Possible responses to the FIX prompt are:
823 .IP YES
824 build an entry for `.' with inode number equal to \fII\fP.
825 .IP NO
826 leave the directory unchanged.
827 .sp
828 .LP
829 .B "MISSING `.' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP"
830 .br
831 .B "CANNOT FIX, FIRST ENTRY IN DIRECTORY CONTAINS \fIF\fP"
832 .br
833 A directory \fII\fP has been found whose first entry is \fIF\fP.
834 .I Fsck_ffs
835 cannot resolve this problem. 
836 The file system should be mounted and the offending entry \fIF\fP
837 moved elsewhere.
838 The file system should then be unmounted and
839 .I fsck_ffs
840 should be run again.
841 .sp
842 .LP
843 .B "MISSING `.' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP"
844 .br
845 .B "CANNOT FIX, INSUFFICIENT SPACE TO ADD `.'"
846 .br
847 A directory \fII\fP has been found whose first entry is not `.'.
848 .I Fsck_ffs
849 cannot resolve this problem as it should never happen.
850 See a guru.
851 .sp
852 .LP
853 .B "EXTRA `.' ENTRY I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
854 .br
855 A directory \fII\fP has been found that has more than one entry for `.'.
856 .LP
857 Possible responses to the FIX prompt are:
858 .IP YES
859 remove the extra entry for `.'.
860 .IP NO
861 leave the directory unchanged.
862 .sp
863 .LP
864 .B "BAD INODE NUMBER FOR `..' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
865 .br
866 A directory \fII\fP has been found whose inode number for `..' does
867 does not equal the parent of \fII\fP.
868 .LP
869 Possible responses to the FIX prompt are:
870 .IP YES
871 change the inode number for `..' to be equal to the parent of \fII\fP
872 (``\fB..\fP'' in the root inode points to itself).
873 .IP NO
874 leave the inode number for `..' unchanged.
875 .sp
876 .LP
877 .B "MISSING `..' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
878 .br
879 A directory \fII\fP has been found whose second entry is unallocated.
880 .LP
881 Possible responses to the FIX prompt are:
882 .IP YES
883 build an entry for `..' with inode number equal to the parent of \fII\fP
884 (``\fB..\fP'' in the root inode points to itself).
885 .IP NO
886 leave the directory unchanged.
887 .sp
888 .LP
889 .B "MISSING `..' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP"
890 .br
891 .B "CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS \fIF\fP"
892 .br
893 A directory \fII\fP has been found whose second entry is \fIF\fP.
894 .I Fsck_ffs
895 cannot resolve this problem. 
896 The file system should be mounted and the offending entry \fIF\fP
897 moved elsewhere.
898 The file system should then be unmounted and
899 .I fsck_ffs
900 should be run again.
901 .sp
902 .LP
903 .B "MISSING `..' I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP"
904 .br
905 .B "CANNOT FIX, INSUFFICIENT SPACE TO ADD `..'"
906 .br
907 A directory \fII\fP has been found whose second entry is not `..'.
908 .I Fsck_ffs
909 cannot resolve this problem.
910 The file system should be mounted and the second entry in the directory
911 moved elsewhere.
912 The file system should then be unmounted and
913 .I fsck_ffs
914 should be run again.
915 .sp
916 .LP
917 .B "EXTRA `..' ENTRY I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP DIR=\fIF\fP (FIX)"
918 .br
919 A directory \fII\fP has been found that has more than one entry for `..'.
920 .LP
921 Possible responses to the FIX prompt are:
922 .IP YES
923 remove the extra entry for `..'.
924 .IP NO
925 leave the directory unchanged.
926 .sp
927 .LP
928 .B "\fIN\fP IS AN EXTRANEOUS HARD LINK TO A DIRECTORY \fID\fP (REMOVE)
929 .br
930 .I Fsck_ffs
931 has found a hard link, \fIN\fP, to a directory, \fID\fP.
932 When preen'ing the extraneous links are ignored.
933 .LP
934 Possible responses to the REMOVE prompt are:
935 .IP YES
936 delete the extraneous entry, \fIN\fP.
937 .IP NO
938 ignore the error condition.
939 .sp
940 .LP
941 .B "BAD INODE \fIS\fP TO DESCEND"
942 .br
943 An internal error has caused an impossible state \fIS\fP to be passed to the
944 routine that descends the file system directory structure.
945 .I Fsck_ffs
946 exits.
947 See a guru.
948 .sp
949 .LP
950 .B "BAD RETURN STATE \fIS\fP FROM DESCEND"
951 .br
952 An internal error has caused an impossible state \fIS\fP to be returned
953 from the routine that descends the file system directory structure.
954 .I Fsck_ffs
955 exits.
956 See a guru.
957 .sp
958 .LP
959 .B "BAD STATE \fIS\fP FOR ROOT INODE"
960 .br
961 An internal error has caused an impossible state \fIS\fP to be assigned
962 to the root inode.
963 .I Fsck_ffs
964 exits.
965 See a guru.
966 .NH 2 
967 Phase 3 \- Check Connectivity
968 .PP
969 This phase concerns itself with the directory connectivity seen in
970 Phase 2.
971 This section lists error conditions resulting from
972 unreferenced directories,
973 and missing or full
974 .I lost+found
975 directories.
976 .sp
977 .LP
978 .B "UNREF DIR I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP (RECONNECT)"
979 .br
980 The directory inode \fII\fP was not connected to a directory entry
981 when the file system was traversed.
982 The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, and
983 modify time \fIT\fP of directory inode \fII\fP are printed.
984 When preen'ing, the directory is reconnected if its size is non-zero,
985 otherwise it is cleared.
986 .LP
987 Possible responses to the RECONNECT prompt are:
988 .IP YES
989 reconnect directory inode \fII\fP to the file system in the
990 directory for lost files (usually \fIlost+found\fP).
991 This may invoke the
992 .I lost+found
993 error condition in Phase 3
994 if there are problems connecting directory inode \fII\fP to \fIlost+found\fP.
995 This may also invoke the CONNECTED error condition in Phase 3 if the link
996 was successful.
997 .IP NO
998 ignore this error condition.
999 This will always invoke the UNREF error condition in Phase 4.
1000 .sp
1001 .LP
1002 .B "NO lost+found DIRECTORY (CREATE)"
1003 .br
1004 There is no
1005 .I lost+found
1006 directory in the root directory of the file system;
1007 When preen'ing
1008 .I fsck_ffs
1009 tries to create a \fIlost+found\fP directory.
1010 .LP
1011 Possible responses to the CREATE prompt are:
1012 .IP YES
1013 create a \fIlost+found\fP directory in the root of the file system.
1014 This may raise the message:
1015 .br
1016 .B "NO SPACE LEFT IN / (EXPAND)"
1017 .br
1018 See below for the possible responses.
1019 Inability to create a \fIlost+found\fP directory generates the message:
1020 .br
1021 .B "SORRY. CANNOT CREATE lost+found DIRECTORY"
1022 .br
1023 and aborts the attempt to linkup the lost inode.
1024 This will always invoke the UNREF error condition in Phase 4.
1025 .IP NO
1026 abort the attempt to linkup the lost inode.
1027 This will always invoke the UNREF error condition in Phase 4.
1028 .sp
1029 .LP
1030 .B "lost+found IS NOT A DIRECTORY (REALLOCATE)"
1031 .br
1032 The entry for
1033 .I lost+found
1034 is not a directory.
1035 .LP
1036 Possible responses to the REALLOCATE prompt are:
1037 .IP YES
1038 allocate a directory inode, and change \fIlost+found\fP to reference it.
1039 The previous inode reference by the \fIlost+found\fP name is not cleared.
1040 Thus it will either be reclaimed as an UNREF'ed inode or have its
1041 link count ADJUST'ed later in this Phase.
1042 Inability to create a \fIlost+found\fP directory generates the message:
1043 .br
1044 .B "SORRY. CANNOT CREATE lost+found DIRECTORY"
1045 .br
1046 and aborts the attempt to linkup the lost inode.
1047 This will always invoke the UNREF error condition in Phase 4.
1048 .IP NO
1049 abort the attempt to linkup the lost inode.
1050 This will always invoke the UNREF error condition in Phase 4.
1051 .sp
1052 .LP
1053 .B "NO SPACE LEFT IN /lost+found (EXPAND)"
1054 .br
1055 There is no space to add another entry to the
1056 .I lost+found
1057 directory in the root directory
1058 of the file system.
1059 When preen'ing the 
1060 .I lost+found
1061 directory is expanded.
1062 .LP
1063 Possible responses to the EXPAND prompt are:
1064 .IP YES
1065 the 
1066 .I lost+found
1067 directory is expanded to make room for the new entry.
1068 If the attempted expansion fails
1069 .I fsck_ffs
1070 prints the message:
1071 .br
1072 .B "SORRY. NO SPACE IN lost+found DIRECTORY"
1073 .br
1074 and aborts the attempt to linkup the lost inode.
1075 This will always invoke the UNREF error condition in Phase 4.
1076 Clean out unnecessary entries in
1077 .I lost+found .
1078 This error is fatal if the file system is being preen'ed.
1079 .IP NO
1080 abort the attempt to linkup the lost inode.
1081 This will always invoke the UNREF error condition in Phase 4.
1082 .sp
1083 .LP
1084 .B "DIR I=\fII1\fP CONNECTED. PARENT WAS I=\fII2\fP"
1085 .br
1086 This is an advisory message indicating a directory inode \fII1\fP was
1087 successfully connected to the
1088 .I lost+found
1089 directory.
1090 The parent inode \fII2\fP of the directory inode \fII1\fP is
1091 replaced by the inode number of the
1092 .I lost+found
1093 directory.
1094 .sp
1095 .LP
1096 .B "DIRECTORY \fIF\fP LENGTH \fIS\fP NOT MULTIPLE OF \fIB\fP (ADJUST)
1097 .br
1098 A directory \fIF\fP has been found with size \fIS\fP that is not
1099 a multiple of the directory blocksize \fIB\fP
1100 (this can reoccur in Phase 3 if it is not adjusted in Phase 2).
1101 .LP
1102 Possible responses to the ADJUST prompt are:
1103 .IP YES
1104 the length is rounded up to the appropriate block size.
1105 This error can occur on 4.2BSD file systems.
1106 Thus when preen'ing the file system only a warning is printed
1107 and the directory is adjusted.
1108 .IP NO
1109 ignore the error condition.
1110 .sp
1111 .LP
1112 .B "BAD INODE \fIS\fP TO DESCEND"
1113 .br
1114 An internal error has caused an impossible state \fIS\fP to be passed to the
1115 routine that descends the file system directory structure.
1116 .I Fsck_ffs
1117 exits.
1118 See a guru.
1119 .NH 2 
1120 Phase 4 \- Check Reference Counts
1121 .PP
1122 This phase concerns itself with the link count information
1123 seen in Phase 2 and Phase 3.
1124 This section lists error conditions resulting from
1125 unreferenced files,
1126 missing or full
1127 .I lost+found
1128 directory,
1129 incorrect link counts for files, directories, symbolic links, or special files,
1130 unreferenced files, symbolic links, and directories,
1131 and bad or duplicate blocks in files, symbolic links, and directories.
1132 All errors in this phase are correctable if the file system is being preen'ed
1133 except running out of space in the \fIlost+found\fP directory.
1134 .sp
1135 .LP
1136 .B "UNREF FILE I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP (RECONNECT)"
1137 .br
1138 Inode \fII\fP was not connected to a directory entry
1139 when the file system was traversed.
1140 The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, and
1141 modify time \fIT\fP of inode \fII\fP are printed.
1142 When preen'ing the file is cleared if either its size or its
1143 link count is zero,
1144 otherwise it is reconnected.
1145 .LP
1146 Possible responses to the RECONNECT prompt are:
1147 .IP YES
1148 reconnect inode \fII\fP to the file system in the directory for
1149 lost files (usually \fIlost+found\fP).
1150 This may invoke the
1151 .I lost+found
1152 error condition in Phase 4
1153 if there are problems connecting inode \fII\fP to
1154 .I lost+found .
1155 .IP NO
1156 ignore this error condition.
1157 This will always invoke the CLEAR error condition in Phase 4.
1158 .sp
1159 .LP
1160 .B "(CLEAR)"
1161 .br
1162 The inode mentioned in the immediately previous error condition can not be
1163 reconnected.
1164 This cannot occur if the file system is being preen'ed,
1165 since lack of space to reconnect files is a fatal error.
1166 .LP
1167 Possible responses to the CLEAR prompt are:
1168 .IP YES
1169 de-allocate the inode mentioned in the immediately previous error condition by zeroing its contents.
1170 .IP NO
1171 ignore this error condition.
1172 .sp
1173 .LP
1174 .B "NO lost+found DIRECTORY (CREATE)"
1175 .br
1176 There is no
1177 .I lost+found
1178 directory in the root directory of the file system;
1179 When preen'ing
1180 .I fsck_ffs
1181 tries to create a \fIlost+found\fP directory.
1182 .LP
1183 Possible responses to the CREATE prompt are:
1184 .IP YES
1185 create a \fIlost+found\fP directory in the root of the file system.
1186 This may raise the message:
1187 .br
1188 .B "NO SPACE LEFT IN / (EXPAND)"
1189 .br
1190 See below for the possible responses.
1191 Inability to create a \fIlost+found\fP directory generates the message:
1192 .br
1193 .B "SORRY. CANNOT CREATE lost+found DIRECTORY"
1194 .br
1195 and aborts the attempt to linkup the lost inode.
1196 This will always invoke the UNREF error condition in Phase 4.
1197 .IP NO
1198 abort the attempt to linkup the lost inode.
1199 This will always invoke the UNREF error condition in Phase 4.
1200 .sp
1201 .LP
1202 .B "lost+found IS NOT A DIRECTORY (REALLOCATE)"
1203 .br
1204 The entry for
1205 .I lost+found
1206 is not a directory.
1207 .LP
1208 Possible responses to the REALLOCATE prompt are:
1209 .IP YES
1210 allocate a directory inode, and change \fIlost+found\fP to reference it.
1211 The previous inode reference by the \fIlost+found\fP name is not cleared.
1212 Thus it will either be reclaimed as an UNREF'ed inode or have its
1213 link count ADJUST'ed later in this Phase.
1214 Inability to create a \fIlost+found\fP directory generates the message:
1215 .br
1216 .B "SORRY. CANNOT CREATE lost+found DIRECTORY"
1217 .br
1218 and aborts the attempt to linkup the lost inode.
1219 This will always invoke the UNREF error condition in Phase 4.
1220 .IP NO
1221 abort the attempt to linkup the lost inode.
1222 This will always invoke the UNREF error condition in Phase 4.
1223 .sp
1224 .LP
1225 .B "NO SPACE LEFT IN /lost+found (EXPAND)"
1226 .br
1227 There is no space to add another entry to the
1228 .I lost+found
1229 directory in the root directory
1230 of the file system.
1231 When preen'ing the 
1232 .I lost+found
1233 directory is expanded.
1234 .LP
1235 Possible responses to the EXPAND prompt are:
1236 .IP YES
1237 the 
1238 .I lost+found
1239 directory is expanded to make room for the new entry.
1240 If the attempted expansion fails
1241 .I fsck_ffs
1242 prints the message:
1243 .br
1244 .B "SORRY. NO SPACE IN lost+found DIRECTORY"
1245 .br
1246 and aborts the attempt to linkup the lost inode.
1247 This will always invoke the UNREF error condition in Phase 4.
1248 Clean out unnecessary entries in
1249 .I lost+found .
1250 This error is fatal if the file system is being preen'ed.
1251 .IP NO
1252 abort the attempt to linkup the lost inode.
1253 This will always invoke the UNREF error condition in Phase 4.
1254 .sp
1255 .LP
1256 .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)"
1257 .br
1258 The link count for inode \fII\fP,
1259 is \fIX\fP but should be \fIY\fP.
1260 The owner \fIO\fP, mode \fIM\fP, size \fIS\fP, and modify time \fIT\fP
1261 are printed.
1262 When preen'ing the link count is adjusted unless the number of references
1263 is increasing, a condition that should never occur unless precipitated
1264 by a hardware failure.
1265 When the number of references is increasing under preen mode,
1266 .I fsck_ffs
1267 exits with the message:
1268 .br
1269 .B "LINK COUNT INCREASING"
1270 .LP
1271 Possible responses to the ADJUST prompt are:
1272 .IP YES
1273 replace the link count of file inode \fII\fP with \fIY\fP.
1274 .IP NO
1275 ignore this error condition.
1276 .sp
1277 .LP
1278 .B "UNREF \fItype\fP I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP (CLEAR)"
1279 .br
1280 Inode \fII\fP, was not connected to a directory entry when the
1281 file system was traversed.
1282 The owner \fIO\fP, mode \fIM\fP, size \fIS\fP,
1283 and modify time \fIT\fP of inode \fII\fP
1284 are printed.
1285 When preen'ing,
1286 this is a file that was not connected because its size or link count was zero,
1287 hence it is cleared.
1288 .LP
1289 Possible responses to the CLEAR prompt are:
1290 .IP YES
1291 de-allocate inode \fII\fP by zeroing its contents.
1292 .IP NO
1293 ignore this error condition.
1294 .sp
1295 .LP
1296 .B "BAD/DUP \fItype\fP I=\fII\fP OWNER=\fIO\fP MODE=\fIM\fP SIZE=\fIS\fP MTIME=\fIT\fP (CLEAR)"
1297 .br
1298 Phase 1 or Phase 1b have found duplicate blocks
1299 or bad blocks associated with
1300 inode \fII\fP.
1301 The owner \fIO\fP, mode \fIM\fP, size \fIS\fP,
1302 and modify time \fIT\fP of inode \fII\fP
1303 are printed.
1304 This error cannot arise when the file system is being preen'ed,
1305 as it would have caused a fatal error earlier.
1306 .LP
1307 Possible responses to the CLEAR prompt are:
1308 .IP YES
1309 de-allocate inode \fII\fP by zeroing its contents.
1310 .IP NO
1311 ignore this error condition.
1312 .NH 2 
1313 Phase 5 - Check Cyl groups
1314 .PP
1315 This phase concerns itself with the free-block and used-inode maps.
1316 This section lists error conditions resulting from
1317 allocated blocks in the free-block maps,
1318 free blocks missing from free-block maps,
1319 and the total free-block count incorrect.
1320 It also lists error conditions resulting from
1321 free inodes in the used-inode maps,
1322 allocated inodes missing from used-inode maps,
1323 and the total used-inode count incorrect.
1324 .sp
1325 .LP
1326 .B "CG \fIC\fP: BAD MAGIC NUMBER"
1327 .br
1328 The magic number of cylinder group \fIC\fP is wrong.
1329 This usually indicates that the cylinder group maps have been destroyed.
1330 When running manually the cylinder group is marked as needing
1331 to be reconstructed.
1332 This error is fatal if the file system is being preen'ed.
1333 .sp
1334 .LP
1335 .B "BLK(S) MISSING IN BIT MAPS (SALVAGE)"
1336 .br
1337 A cylinder group block map is missing some free blocks.
1338 During preen'ing the maps are reconstructed.
1339 .LP
1340 Possible responses to the SALVAGE prompt are:
1341 .IP YES
1342 reconstruct the free block map.
1343 .IP NO
1344 ignore this error condition.
1345 .sp
1346 .LP
1347 .B "SUMMARY INFORMATION BAD (SALVAGE)"
1348 .br
1349 The summary information was found to be incorrect.
1350 When preen'ing,
1351 the summary information is recomputed.
1352 .LP
1353 Possible responses to the SALVAGE prompt are:
1354 .IP YES
1355 reconstruct the summary information.
1356 .IP NO
1357 ignore this error condition.
1358 .sp
1359 .LP
1360 .B "FREE BLK COUNT(S) WRONG IN SUPERBLOCK (SALVAGE)"
1361 .br
1362 The superblock free block information was found to be incorrect.
1363 When preen'ing,
1364 the superblock free block information is recomputed.
1365 .LP
1366 Possible responses to the SALVAGE prompt are:
1367 .IP YES
1368 reconstruct the superblock free block information.
1369 .IP NO
1370 ignore this error condition.
1371 .NH 2 
1372 Cleanup
1373 .PP
1374 Once a file system has been checked, a few cleanup functions are performed.
1375 This section lists advisory messages about
1376 the file system
1377 and modify status of the file system.
1378 .sp
1379 .LP
1380 .B "\fIV\fP files, \fIW\fP used, \fIX\fP free (\fIY\fP frags, \fIZ\fP blocks)"
1381 .br
1382 This is an advisory message indicating that
1383 the file system checked contained
1384 \fIV\fP files using
1385 \fIW\fP fragment sized blocks leaving
1386 \fIX\fP fragment sized blocks free in the file system.
1387 The numbers in parenthesis breaks the free count down into
1388 \fIY\fP free fragments and
1389 \fIZ\fP free full sized blocks.
1390 .sp
1391 .LP
1392 .B "***** REBOOT UNIX *****"
1393 .br
1394 This is an advisory message indicating that
1395 the root file system has been modified by
1396 .I fsck_ffs.
1397 If UNIX is not rebooted immediately,
1398 the work done by
1399 .I fsck_ffs
1400 may be undone by the in-core copies of tables
1401 UNIX keeps.
1402 When preen'ing,
1403 .I fsck_ffs
1404 will exit with a code of 4.
1405 The standard auto-reboot script distributed with 4.3BSD 
1406 interprets an exit code of 4 by issuing a reboot system call.
1407 .sp
1408 .LP
1409 .B "***** FILE SYSTEM WAS MODIFIED *****"
1410 .br
1411 This is an advisory message indicating that
1412 the current file system was modified by
1413 .I fsck_ffs.
1414 If this file system is mounted or is the current root file system,
1415 .I fsck_ffs
1416 should be halted and UNIX rebooted.
1417 If UNIX is not rebooted immediately,
1418 the work done by
1419 .I fsck_ffs
1420 may be undone by the in-core copies of tables
1421 UNIX keeps.