E2FSCK

Section: Maintenance Commands (8)
Updated: November 1993
Index Return to Main Contents
 

NAME

e2fsck - check a Linux second extended file system  

SYNOPSIS

e2fsck [ -B super-block-location ] [ -acdflmrstv ] [ -b filename ] device  

DESCRIPTION

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

OPTIONS

-B super-block-location
Read the super block from the block specified in super-block-location. super-block-location is expressed in terms of 1024 bytes blocks.
On a second extended file system, there is usually one super block backup per 8192 blocks. Thus, the first backup can be used with -B 8193 , the second can be used with -B 16385 , and so on.
-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 e2fsck ).
-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 e2fsck 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

e2fsck 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

Please report bugs to the author.  

AVAILABILITY

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

SEE ALSO

mke2fs(8), tune2fs(8)


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXIT CODE
AUTHOR
BUGS
AVAILABILITY
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 04:11:02 GMT, December 07, 2024