Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 1 | .\" -*- nroff -*- |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2 | .\" Copyright 1993, 1994, 1995 by Theodore Ts'o. All Rights Reserved. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 3 | .\" This file may be copied under the terms of the GNU Public License. |
| 4 | .\" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 5 | .TH E2FSCK 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@" |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 6 | .SH NAME |
Theodore Ts'o | a7ac1df | 2003-08-24 17:56:41 -0400 | [diff] [blame] | 7 | e2fsck \- check a Linux ext2/ext3 file system |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 8 | .SH SYNOPSIS |
| 9 | .B e2fsck |
| 10 | [ |
Theodore Ts'o | 1a855cb | 2007-08-10 23:58:56 -0400 | [diff] [blame] | 11 | .B \-pacnyrdfkvtDFV |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 12 | ] |
| 13 | [ |
| 14 | .B \-b |
| 15 | .I superblock |
| 16 | ] |
| 17 | [ |
| 18 | .B \-B |
| 19 | .I blocksize |
| 20 | ] |
| 21 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 22 | .BR \-l | \-L |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 23 | .I bad_blocks_file |
| 24 | ] |
Theodore Ts'o | efac9a1 | 1998-05-07 05:02:00 +0000 | [diff] [blame] | 25 | [ |
| 26 | .B \-C |
| 27 | .I fd |
| 28 | ] |
Theodore Ts'o | adee8d7 | 2001-07-23 00:17:49 -0400 | [diff] [blame] | 29 | @JDEV@[ |
| 30 | @JDEV@.B \-j |
| 31 | @JDEV@.I external-journal |
| 32 | @JDEV@] |
Theodore Ts'o | 0684a4f | 2002-08-17 10:19:44 -0400 | [diff] [blame] | 33 | [ |
| 34 | .B \-E |
| 35 | .I extended_options |
| 36 | ] |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 37 | .I device |
| 38 | .SH DESCRIPTION |
| 39 | .B e2fsck |
Theodore Ts'o | f044b4d | 2002-08-17 13:32:21 -0400 | [diff] [blame] | 40 | is used to check a Linux second extended file system (ext2fs). |
| 41 | .B E2fsck |
| 42 | also |
Theodore Ts'o | 8139367 | 2005-04-16 14:05:09 -0400 | [diff] [blame] | 43 | supports ext2 filesystems containing a journal, which are |
Theodore Ts'o | f044b4d | 2002-08-17 13:32:21 -0400 | [diff] [blame] | 44 | also sometimes known as ext3 filesystems, by first applying the journal |
| 45 | to the filesystem before continuing with normal |
| 46 | .B e2fsck |
| 47 | processing. After the journal has been applied, a filesystem will |
| 48 | normally be marked as clean. Hence, for ext3 filesystems, |
| 49 | .B e2fsck |
| 50 | will normally run the journal and exit, unless its superblock |
| 51 | indicates that further checking is required. |
Theodore Ts'o | 1e9a7e0 | 2001-11-24 16:40:57 -0500 | [diff] [blame] | 52 | .PP |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 53 | .I device |
Theodore Ts'o | 1e9a7e0 | 2001-11-24 16:40:57 -0500 | [diff] [blame] | 54 | is the device file where the filesystem is stored (e.g. |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 55 | .IR /dev/hdc1 ). |
Theodore Ts'o | 73d1d49 | 2005-06-19 21:04:12 -0400 | [diff] [blame] | 56 | .PP |
| 57 | Note that in general it is not safe to run |
| 58 | .B e2fsck |
| 59 | on mounted filesystems. The only exception is if the |
| 60 | .B \-n |
| 61 | option is specified, and |
| 62 | .BR \-c , |
| 63 | .BR \-l , |
| 64 | or |
| 65 | .B -L |
| 66 | options are |
| 67 | .I not |
| 68 | specified. However, even if it is safe to do so, the results printed by |
| 69 | .B e2fsck |
| 70 | are not valid if the filesystem is mounted. If |
| 71 | .B e2fsck |
| 72 | asks whether or not you should check a filesystem which is mounted, |
| 73 | the only correct answer is ``no''. Only experts who really know what |
Theodore Ts'o | 5fb86b4 | 2005-06-20 08:24:28 -0400 | [diff] [blame] | 74 | they are doing should consider answering this question in any other way. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 75 | .SH OPTIONS |
| 76 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 77 | .B \-a |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 78 | This option does the same thing as the |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 79 | .B \-p |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 80 | option. It is provided for backwards compatibility only; it is |
| 81 | suggested that people use |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 82 | .B \-p |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 83 | option whenever possible. |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 84 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 85 | .BI \-b " superblock" |
Theodore Ts'o | 24dd402 | 1998-02-01 00:16:40 +0000 | [diff] [blame] | 86 | Instead of using the normal superblock, use an alternative superblock |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 87 | specified by |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 88 | .IR superblock . |
| 89 | This option is normally used when the primary superblock has been |
Theodore Ts'o | a1ccadb | 1999-11-23 13:57:16 +0000 | [diff] [blame] | 90 | corrupted. The location of the backup superblock is dependent on the |
| 91 | filesystem's blocksize. For filesystems with 1k blocksizes, a backup |
| 92 | superblock can be found at block 8193; for filesystems with 2k |
Theodore Ts'o | 5f629b7 | 2001-05-01 20:01:08 +0000 | [diff] [blame] | 93 | blocksizes, at block 16384; and for 4k blocksizes, at block 32768. |
| 94 | .IP |
| 95 | Additional backup superblocks can be determined by using the |
| 96 | .B mke2fs |
| 97 | program using the |
| 98 | .B \-n |
| 99 | option to print out where the superblocks were created. The |
| 100 | .B \-b |
| 101 | option to |
| 102 | .BR mke2fs , |
| 103 | which specifies blocksize of the filesystem must be specified in order |
| 104 | for the superblock locations that are printed out to be accurate. |
| 105 | .IP |
| 106 | If an alternative superblock is specified and |
Theodore Ts'o | 24dd402 | 1998-02-01 00:16:40 +0000 | [diff] [blame] | 107 | the filesystem is not opened read-only, e2fsck will make sure that the |
| 108 | primary superblock is updated appropriately upon completion of the |
| 109 | filesystem check. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 110 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 111 | .BI \-B " blocksize" |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 112 | Normally, |
| 113 | .B e2fsck |
| 114 | will search for the superblock at various different |
| 115 | block sizes in an attempt to find the appropriate block size. |
| 116 | This search can be fooled in some cases. This option forces |
| 117 | .B e2fsck |
| 118 | to only try locating the superblock at a particular blocksize. |
| 119 | If the superblock is not found, |
| 120 | .B e2fsck |
| 121 | will terminate with a fatal error. |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 122 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 123 | .B \-c |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 124 | This option causes |
| 125 | .B e2fsck |
Theodore Ts'o | bba44f9 | 2005-12-09 18:18:06 -0500 | [diff] [blame] | 126 | to use |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 127 | .BR badblocks (8) |
Theodore Ts'o | bba44f9 | 2005-12-09 18:18:06 -0500 | [diff] [blame] | 128 | program to do a read-only scan of the device in order to find any bad |
| 129 | blocks. If any bad blocks are found, they are added to the bad block |
| 130 | inode to prevent them from being allocated to a file or directory. If |
| 131 | this option is specified twice, then the bad block scan will be done |
Theodore Ts'o | 3ed57c2 | 2001-12-24 15:01:59 -0500 | [diff] [blame] | 132 | using a non-destructive read-write test. |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 133 | .TP |
Theodore Ts'o | 77be4d2 | 2003-03-06 12:39:55 -0500 | [diff] [blame] | 134 | .BI \-C " fd" |
Theodore Ts'o | efac9a1 | 1998-05-07 05:02:00 +0000 | [diff] [blame] | 135 | This option causes |
| 136 | .B e2fsck |
| 137 | to write completion information to the specified file descriptor |
| 138 | so that the progress of the filesystem |
Theodore Ts'o | 5596def | 1999-07-19 15:27:37 +0000 | [diff] [blame] | 139 | check can be monitored. This option is typically used by programs |
| 140 | which are running |
| 141 | .BR e2fsck . |
Theodore Ts'o | be62523 | 2008-03-26 08:26:01 -0400 | [diff] [blame] | 142 | If the file descriptor number is negative, then absolute value of |
| 143 | the file descriptor will be used, and the progress information will be |
| 144 | suppressed initially. It can later be enabled by sending the |
| 145 | .B e2fsck |
| 146 | process a SIGUSR1 signal. |
Theodore Ts'o | 5596def | 1999-07-19 15:27:37 +0000 | [diff] [blame] | 147 | If the file descriptor specified is 0, |
Theodore Ts'o | efac9a1 | 1998-05-07 05:02:00 +0000 | [diff] [blame] | 148 | .B e2fsck |
Theodore Ts'o | 5596def | 1999-07-19 15:27:37 +0000 | [diff] [blame] | 149 | will print a completion bar as it goes about its business. This requires |
| 150 | that e2fsck is running on a video console or terminal. |
Theodore Ts'o | efac9a1 | 1998-05-07 05:02:00 +0000 | [diff] [blame] | 151 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 152 | .B \-d |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 153 | Print debugging output (useless unless you are debugging |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 154 | .BR e2fsck ). |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 155 | .TP |
Theodore Ts'o | 850d05e | 2002-07-25 00:00:08 -0400 | [diff] [blame] | 156 | .B \-D |
| 157 | Optimize directories in filesystem. This option causes e2fsck to |
| 158 | try to optimize all directories, either by reindexing them if the |
| 159 | filesystem supports directory indexing, or by sorting and compressing |
| 160 | directories for smaller directories, or for filesystems using |
| 161 | traditional linear directories. |
Theodore Ts'o | 1e5c6d3 | 2008-01-01 00:17:57 -0500 | [diff] [blame] | 162 | .IP |
| 163 | Even without the |
| 164 | .B \-D |
| 165 | option, |
| 166 | .B e2fsck |
| 167 | may sometimes optimize a few directories --- for example, if |
| 168 | directory indexing is enabled and a directory is not indexed and would |
| 169 | benefit from being indexed, or if the index structures are corrupted |
| 170 | and need to be rebuilt. The |
| 171 | .B \-D |
| 172 | option forces all directories in the filesystem to be optimized. This can |
| 173 | sometimes make them a little smaller and slightly faster to search, but |
| 174 | in practice, you should rarely need to use this option. |
Theodore Ts'o | a3d9d37 | 2008-02-26 12:50:51 -0500 | [diff] [blame] | 175 | .IP |
| 176 | The |
| 177 | .B \-D |
| 178 | option will detect directory entries with duplicate names in a single |
| 179 | directory, which e2fsck normally does not enforce for performance reasons. |
Theodore Ts'o | 850d05e | 2002-07-25 00:00:08 -0400 | [diff] [blame] | 180 | .TP |
Theodore Ts'o | 0684a4f | 2002-08-17 10:19:44 -0400 | [diff] [blame] | 181 | .BI \-E " extended_options" |
| 182 | Set e2fsck extended options. Extended options are comma |
| 183 | separated, and may take an argument using the equals ('=') sign. The |
| 184 | following options are supported: |
| 185 | .RS 1.2i |
| 186 | .TP |
| 187 | .BI ea_ver= extended_attribute_version |
Theodore Ts'o | 63b5e35 | 2008-08-10 22:43:24 -0400 | [diff] [blame] | 188 | Set the version of the extended attribute blocks which |
| 189 | .B e2fsck |
| 190 | will require while checking the filesystem. The version number may |
| 191 | be 1 or 2. The default extended attribute version format is 2. |
| 192 | .TP |
| 193 | .BI fragcheck |
| 194 | During pass 1, print a detailed report of any discontiguous blocks for |
| 195 | files in the filesystem. |
Theodore Ts'o | 0684a4f | 2002-08-17 10:19:44 -0400 | [diff] [blame] | 196 | .RE |
| 197 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 198 | .B \-f |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 199 | Force checking even if the file system seems clean. |
| 200 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 201 | .B \-F |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 202 | Flush the filesystem device's buffer caches before beginning. Only |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 203 | really useful for doing |
| 204 | .B e2fsck |
| 205 | time trials. |
Theodore Ts'o | adee8d7 | 2001-07-23 00:17:49 -0400 | [diff] [blame] | 206 | @JDEV@.TP |
| 207 | @JDEV@.BI \-j " external-journal" |
| 208 | @JDEV@Set the pathname where the external-journal for this filesystem can be |
| 209 | @JDEV@found. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 210 | .TP |
Theodore Ts'o | 4fb9d52 | 2004-02-24 00:16:09 -0500 | [diff] [blame] | 211 | .BI \-k |
| 212 | When combined with the |
| 213 | .B \-c |
| 214 | option, any existing bad blocks in the bad blocks list are preserved, |
| 215 | and any new bad blocks found by running |
| 216 | .BR badblocks (8) |
| 217 | will be added to the existing bad blocks list. |
| 218 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 219 | .BI \-l " filename" |
Theodore Ts'o | 3ed57c2 | 2001-12-24 15:01:59 -0500 | [diff] [blame] | 220 | Add the block numbers listed in the file specified by |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 221 | .I filename |
Theodore Ts'o | 4313932 | 1998-02-16 22:34:46 +0000 | [diff] [blame] | 222 | to the list of bad blocks. The format of this file is the same as the |
| 223 | one generated by the |
| 224 | .BR badblocks (8) |
Theodore Ts'o | 3ed57c2 | 2001-12-24 15:01:59 -0500 | [diff] [blame] | 225 | program. Note that the block numbers are based on the blocksize |
| 226 | of the filesystem. Hence, |
| 227 | .BR badblocks (8) |
| 228 | must be given the blocksize of the filesystem in order to obtain correct |
| 229 | results. As a result, it is much simpler and safer to use the |
| 230 | .B -c |
| 231 | option to |
| 232 | .BR e2fsck , |
| 233 | since it will assure that the correct parameters are passed to the |
| 234 | .B badblocks |
Theodore Ts'o | 4313932 | 1998-02-16 22:34:46 +0000 | [diff] [blame] | 235 | program. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 236 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 237 | .BI \-L " filename" |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 238 | Set the bad blocks list to be the list of blocks specified by |
| 239 | .IR filename . |
| 240 | (This option is the same as the |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 241 | .B \-l |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 242 | option, except the bad blocks list is cleared before the blocks listed |
| 243 | in the file are added to the bad blocks list.) |
| 244 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 245 | .B \-n |
| 246 | Open the filesystem read-only, and assume an answer of `no' to all |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 247 | questions. Allows |
| 248 | .B e2fsck |
| 249 | to be used non-interactively. (Note: if the |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 250 | .BR \-c , |
| 251 | .BR \-l , |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 252 | or |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 253 | .B \-L |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 254 | options are specified in addition to the |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 255 | .B \-n |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 256 | option, then the filesystem will be opened read-write, to permit the |
| 257 | bad-blocks list to be updated. However, no other changes will be made |
Theodore Ts'o | 84d3518 | 2005-12-09 17:28:56 -0500 | [diff] [blame] | 258 | to the filesystem.) This option |
| 259 | may not be specified at the same time as the |
| 260 | .B \-p |
| 261 | or |
| 262 | .B \-y |
| 263 | options. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 264 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 265 | .B \-p |
Theodore Ts'o | 84d3518 | 2005-12-09 17:28:56 -0500 | [diff] [blame] | 266 | Automatically repair ("preen") the file system. This option will case |
| 267 | .B e2fsck |
| 268 | to automatically |
| 269 | fix any filesystem problems that can be safely fixed without human |
| 270 | intervention. If |
| 271 | .B e2fsck |
| 272 | discovers a problem which may require the system administrator |
| 273 | to take additional corrective action, |
| 274 | .B e2fsck |
| 275 | will print a description of the problem and then exit with the value 4 |
| 276 | logically or'ed into the exit code. (See the \fBEXIT CODE\fR section.) |
| 277 | This option is normally used by the system's boot scripts. It may not |
| 278 | be specified at the same time as the |
| 279 | .B \-n |
| 280 | or |
| 281 | .B \-y |
| 282 | options. |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 283 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 284 | .B \-r |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 285 | This option does nothing at all; it is provided only for backwards |
| 286 | compatibility. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 287 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 288 | .B \-t |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 289 | Print timing statistics for |
| 290 | .BR e2fsck . |
| 291 | If this option is used twice, additional timing statistics are printed |
| 292 | on a pass by pass basis. |
| 293 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 294 | .B \-v |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 295 | Verbose mode. |
| 296 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 297 | .B \-V |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 298 | Print version information and exit. |
| 299 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 300 | .B \-y |
| 301 | Assume an answer of `yes' to all questions; allows |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 302 | .B e2fsck |
Theodore Ts'o | 84d3518 | 2005-12-09 17:28:56 -0500 | [diff] [blame] | 303 | to be used non-interactively. This option |
| 304 | may not be specified at the same time as the |
| 305 | .B \-n |
| 306 | or |
| 307 | .B \-p |
| 308 | options. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 309 | .SH EXIT CODE |
| 310 | The exit code returned by |
| 311 | .B e2fsck |
| 312 | is the sum of the following conditions: |
| 313 | .br |
| 314 | \ 0\ \-\ No errors |
| 315 | .br |
| 316 | \ 1\ \-\ File system errors corrected |
| 317 | .br |
| 318 | \ 2\ \-\ File system errors corrected, system should |
| 319 | .br |
Theodore Ts'o | 4cae045 | 2002-07-21 14:14:03 -0400 | [diff] [blame] | 320 | \ \ \ \ be rebooted |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 321 | .br |
| 322 | \ 4\ \-\ File system errors left uncorrected |
| 323 | .br |
| 324 | \ 8\ \-\ Operational error |
| 325 | .br |
| 326 | \ 16\ \-\ Usage or syntax error |
| 327 | .br |
Theodore Ts'o | 4cae045 | 2002-07-21 14:14:03 -0400 | [diff] [blame] | 328 | \ 32\ \-\ E2fsck canceled by user request |
| 329 | .br |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 330 | \ 128\ \-\ Shared library error |
| 331 | .br |
Theodore Ts'o | 5596def | 1999-07-19 15:27:37 +0000 | [diff] [blame] | 332 | .SH SIGNALS |
| 333 | The following signals have the following effect when sent to |
| 334 | .BR e2fsck . |
| 335 | .TP |
| 336 | .B SIGUSR1 |
| 337 | This signal causes |
| 338 | .B e2fsck |
Theodore Ts'o | be62523 | 2008-03-26 08:26:01 -0400 | [diff] [blame] | 339 | to start displaying a completion bar or emitting progress information. |
| 340 | (See discussion of the |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 341 | .B \-C |
Theodore Ts'o | 5596def | 1999-07-19 15:27:37 +0000 | [diff] [blame] | 342 | option.) |
| 343 | .TP |
| 344 | .B SIGUSR2 |
| 345 | This signal causes |
| 346 | .B e2fsck |
Theodore Ts'o | be62523 | 2008-03-26 08:26:01 -0400 | [diff] [blame] | 347 | to stop displaying a completion bar or emitting progress information. |
Theodore Ts'o | 5c57647 | 1997-04-29 15:29:49 +0000 | [diff] [blame] | 348 | .SH REPORTING BUGS |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 349 | Almost any piece of software will have bugs. If you manage to find a |
| 350 | filesystem which causes |
| 351 | .B e2fsck |
| 352 | to crash, or which |
| 353 | .B e2fsck |
| 354 | is unable to repair, please report it to the author. |
| 355 | .PP |
| 356 | Please include as much information as possible in your bug report. |
| 357 | Ideally, include a complete transcript of the |
| 358 | .B e2fsck |
Theodore Ts'o | 15f5051 | 2005-06-05 16:46:19 -0400 | [diff] [blame] | 359 | run, so I can see exactly what error messages are displayed. (Make sure |
| 360 | the messages printed by |
| 361 | .B e2fsck |
| 362 | are in English; if your system has been |
| 363 | configured so that |
| 364 | .BR e2fsck 's |
| 365 | messages have been translated into another language, please set the the |
| 366 | .B LC_ALL |
| 367 | environment variable to |
| 368 | .B C |
| 369 | so that the transcript of e2fsck's output will be useful to me.) |
| 370 | If you |
Theodore Ts'o | 8139367 | 2005-04-16 14:05:09 -0400 | [diff] [blame] | 371 | have a writable filesystem where the transcript can be stored, the |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 372 | .BR script (1) |
| 373 | program is a handy way to save the output of |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 374 | .B e2fsck |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 375 | to a file. |
| 376 | .PP |
| 377 | It is also useful to send the output of |
| 378 | .BR dumpe2fs (8). |
| 379 | If a specific inode or inodes seems to be giving |
| 380 | .B e2fsck |
| 381 | trouble, try running the |
| 382 | .BR debugfs (8) |
| 383 | command and send the output of the |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 384 | .BR stat (1u) |
| 385 | command run on the relevant inode(s). If the inode is a directory, the |
| 386 | .B debugfs |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 387 | .I dump |
| 388 | command will allow you to extract the contents of the directory inode, |
| 389 | which can sent to me after being first run through |
Theodore Ts'o | 15f5051 | 2005-06-05 16:46:19 -0400 | [diff] [blame] | 390 | .BR uuencode (1). |
| 391 | The most useful data you can send to help reproduce |
Theodore Ts'o | 9447f38 | 2006-05-22 17:59:37 -0400 | [diff] [blame] | 392 | the bug is a compressed raw image dump of the filesystem, generated using |
Theodore Ts'o | 15f5051 | 2005-06-05 16:46:19 -0400 | [diff] [blame] | 393 | .BR e2image (8). |
| 394 | See the |
| 395 | .BR e2image (8) |
| 396 | man page for more details. |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 397 | .PP |
| 398 | Always include the full version string which |
| 399 | .B e2fsck |
| 400 | displays when it is run, so I know which version you are running. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 401 | .SH AUTHOR |
| 402 | This version of |
| 403 | .B e2fsck |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 404 | was written by Theodore Ts'o <tytso@mit.edu>. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 405 | .SH SEE ALSO |
Theodore Ts'o | 9329866 | 2008-06-18 11:27:21 -0400 | [diff] [blame] | 406 | .BR e2fsck.conf (5), |
Theodore Ts'o | cd84823 | 2006-03-27 12:10:07 -0500 | [diff] [blame] | 407 | .BR badblocks (8), |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 408 | .BR dumpe2fs (8), |
Theodore Ts'o | 15f5051 | 2005-06-05 16:46:19 -0400 | [diff] [blame] | 409 | .BR debugfs (8), |
Theodore Ts'o | cd84823 | 2006-03-27 12:10:07 -0500 | [diff] [blame] | 410 | .BR e2image (8), |
| 411 | .BR mke2fs (8), |
| 412 | .BR tune2fs (8) |