|FSCK_EXT2FS(8)||System Manager's Manual||FSCK_EXT2FS(8)|
fsck_ext2fsperforms interactive file system consistency checks and repairs the filesystem specified. It is normally invoked from fsck(8). The kernel takes care that only a restricted class of innocuous file system inconsistencies can happen unless hardware or software failures intervene. These are limited to the following:
fsck_ext2fsin “preen” mode (with the
-poption) will correct; if it encounters other inconsistencies, it exits with an abnormal return status. For each corrected inconsistency one or more lines will be printed identifying the file system on which the correction will take place, and the nature of the correction. After successfully correcting a file system,
fsck_ext2fswill print the number of files on that file system and the number of used and free blocks. If sent a
fsck_ext2fswill finish the file system checks, then exit with an abnormal return status. Without the
fsck_ext2fsaudits and interactively repairs inconsistent conditions for the filesystem. If the file system is inconsistent, the operator is prompted for concurrence before each correction is attempted. It should be noted that some of the corrective actions which are not correctable under the
-poption will result in some loss of data. The amount and severity of data lost may be determined from the diagnostic output. The default action for each consistency correction is to wait for the operator to respond “yes” or “no”. If the operator does not have write permission on the file system,
fsck_ext2fswill default to a
-naction. The following flags are interpreted by
fsck_ext2fswill not check the file system. This option forces
fsck_ext2fsto check the file system, regardless of the state of the clean flag.
fsck_ext2fsexcept for “CONTINUE?”, which is assumed to be affirmative. The filesystem will not be opened for writing. This is the default for file systems to be checked that are concurrently mounted writable.
fsck_ext2fs; this should be used with great caution as this is a free license to continue after essentially unlimited trouble has been encountered.
-noptions are specified, the user may force
fsck_ext2fsto assume an answer of “yes” to all the remaining questions by replying to a question with a value of “F”. Inconsistencies checked are as follows:
fsck_ext2fsare fully enumerated and explained in Appendix A of Fsck_ffs - The UNIX File System Check Program. fs(5), fstab(5), fsck(8), mount_ext2fs(8), rc(8)
|October 14, 2015||OpenBSD-current|