#FIG 2.1 80 2 1 3 0 1 -1 0 0 21 0.00000 1 0.000 64 144 5 5 64 144 69 144 2 1 0 3 -1 0 0 0 0.000 -1 0 0 19 49 859 49 9999 9999 2 1 0 3 -1 0 0 0 0.000 -1 0 0 19 629 859 629 9999 9999 4 0 19 18 0 -1 0 0.00000 4 21 379 39 39 Troubleshooting and Repairing a Linux System 4 0 31 36 0 -1 0 0.00000 4 45 574 79 99 Repairing Filesystems: Using e2fsck 4 0 16 32 0 -1 0 0.00000 4 38 206 79 154 e2fsck options 4 0 17 24 0 -1 0 0.00000 4 27 628 119 194 -a, -p: Automatically repair filesystem, no questions asked  4 0 17 24 0 -1 0 0.00000 4 27 608 119 226 -b : Get superblock from offset .  4 0 17 24 0 -1 0 0.00000 4 27 645 159 291 block offsets; 1, 8193, 16385, ... If you trash the initial portion 4 0 17 24 0 -1 0 0.00000 4 27 620 159 259 Know this option! Superblocks are generally stored at 8192 4 0 17 24 0 -1 0 0.00000 4 27 541 159 323 of a filesystem this may be the only way to recover. 4 0 17 24 0 -1 0 0.00000 4 27 738 119 354 -B : Set blocksize for superblock search (e.g. 1024, 2048) 4 0 17 24 0 -1 0 0.00000 4 27 517 119 386 -d: Print debugging output (e2fsck internals only) 4 0 17 24 0 -1 0 0.00000 4 27 331 119 418 -f: Force check even if fs clean 4 0 17 24 0 -1 0 0.00000 4 27 533 119 450 -l : Add to list of bad blocks 4 0 17 24 0 -1 0 0.00000 4 27 743 119 482 -L : Set bad blocks list to (replaces existing list) 4 0 17 24 0 -1 0 0.00000 4 27 604 119 514 -n: Open read-only, assume "no" answer to all questions 4 0 17 24 0 -1 0 0.00000 4 27 346 119 546 -v: Verbose output (very useful!) 4 0 17 24 0 -1 0 0.00000 4 27 434 119 578 -y: Assume "yes" answer to all questions