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