home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / share / doc / smm / 05.fsck / 4.t < prev    next >
Encoding:
Text File  |  1991-04-17  |  40.3 KB  |  1,425 lines

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