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