FSCK.EXT2(8)

NAME
fsck.ext2 - check a Linux second extended file system

SYNOPSIS
fsck.ext2 [ -acdflmrstv ] [ -b filename ] device

DESCRIPTION
fsck.ext2 is used to check a Linux second extended file system.
device is the special file corresponding to the device (e.g /dev/hdXX).

OPTIONS

-a  Automatically repair the file system without any questions (use this option with caution).

-b filename
    Read the bad blocks list from filename.

-c  Check the file system for bad blocks.

-d  Print debugging output (useless unless you are debugging fsck.ext2 ).

-f  Force checking even if the file system seems clean.

-l  List all the file names in the file system.

-m  Check that the device is not mounted.

-r  Interactively repair the file system (ask for confirmations).

-s  List the super block before checking the file system.

-t  Check the file system for bad blocks.

-v  Verbose mode.

EXIT CODE
The exit code returned by fsck.ext2 is the sum of the following conditions:
    0    - No errors
    1    - File system errors corrected
    2    - File system errors corrected, system should
      be rebooted if file system was mounted
    4    - File system errors left uncorrected
    8    - Operational error
    16    - Usage or syntax error
    128    - Shared library error

AUTHOR
fsck.ext2 is based on efsck(8) which is based itself on fsck(8) written by Linus Torvalds <torvalds@cs.helsinki.fi> for the minix file system.
Remy Card <card@masi.ibp.fr> has adapted it for the second extended file system and is maintaining it.
Wayne Davison <davison@borland.com> has contributed lots of nice features.

BUGS
fsck.ext2 cannot repair corrupted super block or block descriptors yet.
Please report other bugs to the author.

AVAILABILITY
fsck.ext2 is available for anonymous ftp from ftp.ibp.fr (132.227.60.2) in /pub/linux/BETA/ext2fs.

SEE ALSO
mke2fs(8), tune2fs(8)