1 mke2fs -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 16384 2 Creating filesystem with 16384 1k blocks and 4096 inodes 3 Superblock backups stored on blocks: 4 1025, 3073, 5121, 7169, 9217 5 6 Allocating group tables: done 7 Writing inode tables: done 8 Writing superblocks and filesystem accounting information: done 9 10 Pass 1: Checking inodes, blocks, and sizes 11 Pass 2: Checking directory structure 12 Pass 3: Checking directory connectivity 13 Pass 4: Checking reference counts 14 Pass 5: Checking group summary information 15 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 16 Exit status is 0 17 ----------------------------------------------- 18 19 debugfs -R ''set_inode_field <7> block[2] 42'' -w test.img 20 Exit status is 0 21 Resize inode not valid. Recreate? yes 22 23 Pass 1: Checking inodes, blocks, and sizes 24 Pass 2: Checking directory structure 25 Pass 3: Checking directory connectivity 26 Pass 4: Checking reference counts 27 Pass 5: Checking group summary information 28 Free blocks count wrong for group #0 (717, counted=718). 29 Fix? yes 30 31 Free blocks count wrong (14276, counted=14277). 32 Fix? yes 33 34 35 test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** 36 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 37 Exit status is 1 38 Pass 1: Checking inodes, blocks, and sizes 39 Pass 2: Checking directory structure 40 Pass 3: Checking directory connectivity 41 Pass 4: Checking reference counts 42 Pass 5: Checking group summary information 43 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 44 Exit status is 0 45 ----------------------------------------------- 46 47 debugfs -R ''clri <7>'' -w test.img 48 Exit status is 0 49 Resize inode not valid. Recreate? yes 50 51 Pass 1: Checking inodes, blocks, and sizes 52 Pass 2: Checking directory structure 53 Pass 3: Checking directory connectivity 54 Pass 4: Checking reference counts 55 Pass 5: Checking group summary information 56 Free blocks count wrong for group #0 (717, counted=718). 57 Fix? yes 58 59 Free blocks count wrong (14276, counted=14277). 60 Fix? yes 61 62 63 test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** 64 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 65 Exit status is 1 66 Pass 1: Checking inodes, blocks, and sizes 67 Pass 2: Checking directory structure 68 Pass 3: Checking directory connectivity 69 Pass 4: Checking reference counts 70 Pass 5: Checking group summary information 71 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 72 Exit status is 0 73 ----------------------------------------------- 74 75 debugfs -R ''set_inode_field <7> bmap[524] 57'' -w test.img 76 Exit status is 0 77 Resize inode not valid. Recreate? yes 78 79 Pass 1: Checking inodes, blocks, and sizes 80 Pass 2: Checking directory structure 81 Pass 3: Checking directory connectivity 82 Pass 4: Checking reference counts 83 Pass 5: Checking group summary information 84 Free blocks count wrong for group #0 (717, counted=718). 85 Fix? yes 86 87 Free blocks count wrong (14276, counted=14277). 88 Fix? yes 89 90 91 test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** 92 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 93 Exit status is 1 94 Pass 1: Checking inodes, blocks, and sizes 95 Pass 2: Checking directory structure 96 Pass 3: Checking directory connectivity 97 Pass 4: Checking reference counts 98 Pass 5: Checking group summary information 99 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 100 Exit status is 0 101 ----------------------------------------------- 102 103 debugfs -R ''set_super_value reserved_gdt_blocks 15679'' -w test.img 104 Exit status is 0 105 ext2fs_check_desc: Corrupt group descriptor: bad block for block bitmap 106 ../e2fsck/e2fsck: Group descriptors look bad... trying backup blocks... 107 Pass 1: Checking inodes, blocks, and sizes 108 Pass 2: Checking directory structure 109 Pass 3: Checking directory connectivity 110 Pass 4: Checking reference counts 111 Pass 5: Checking group summary information 112 113 test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** 114 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 115 Exit status is 1 116 ----------------------------------------------- 117 118 debugfs -R ''set_super_value reserved_gdt_blocks 32'' -w test.img 119 Exit status is 0 120 Pass 1: Checking inodes, blocks, and sizes 121 Pass 2: Checking directory structure 122 Pass 3: Checking directory connectivity 123 Pass 4: Checking reference counts 124 Pass 5: Checking group summary information 125 Block bitmap differences: -(35--258) -(1059--1282) -(3107--3330) -(5155--5378) -(7203--7426) -(9251--9474) 126 Fix? yes 127 128 Free blocks count wrong for group #0 (718, counted=942). 129 Fix? yes 130 131 Free blocks count wrong for group #1 (732, counted=956). 132 Fix? yes 133 134 Free blocks count wrong for group #3 (732, counted=956). 135 Fix? yes 136 137 Free blocks count wrong for group #5 (732, counted=956). 138 Fix? yes 139 140 Free blocks count wrong for group #7 (732, counted=956). 141 Fix? yes 142 143 Free blocks count wrong for group #9 (732, counted=956). 144 Fix? yes 145 146 Free blocks count wrong (14277, counted=15621). 147 Fix? yes 148 149 150 test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** 151 test_filesys: 11/4096 files (0.0% non-contiguous), 763/16384 blocks 152 Exit status is 1 153 Pass 1: Checking inodes, blocks, and sizes 154 Pass 2: Checking directory structure 155 Pass 3: Checking directory connectivity 156 Pass 4: Checking reference counts 157 Pass 5: Checking group summary information 158 test_filesys: 11/4096 files (0.0% non-contiguous), 763/16384 blocks 159 Exit status is 0 160