1mke2fs -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 16384 2Filesystem label= 3OS type: Linux 4Block size=1024 (log=0) 5Fragment size=1024 (log=0) 64096 inodes, 16384 blocks 7819 blocks (5.00%) reserved for the super user 8First data block=1 9Maximum filesystem blocks=8421376 1016 block groups 111024 blocks per group, 1024 fragments per group 12256 inodes per group 13Superblock backups stored on blocks: 14 1025, 3073, 5121, 7169, 9217 15 16Writing inode tables: 0/16 1/16 2/16 3/16 4/16 5/16 6/16 7/16 8/16 9/1610/1611/1612/1613/1614/1615/16done 17Writing superblocks and filesystem accounting information: done 18 19Pass 1: Checking inodes, blocks, and sizes 20Pass 2: Checking directory structure 21Pass 3: Checking directory connectivity 22Pass 4: Checking reference counts 23Pass 5: Checking group summary information 24test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 25Exit status is 0 26----------------------------------------------- 27 28debugfs -R ''set_inode_field <7> block[2] 42'' -w ./test.img 29Exit status is 0 30Resize inode not valid. Recreate? yes 31 32Pass 1: Checking inodes, blocks, and sizes 33Pass 2: Checking directory structure 34Pass 3: Checking directory connectivity 35Pass 4: Checking reference counts 36Pass 5: Checking group summary information 37Free blocks count wrong for group #0 (717, counted=718). 38Fix? yes 39 40Free blocks count wrong (14276, counted=14277). 41Fix? yes 42 43 44test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** 45test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 46Exit status is 1 47Pass 1: Checking inodes, blocks, and sizes 48Pass 2: Checking directory structure 49Pass 3: Checking directory connectivity 50Pass 4: Checking reference counts 51Pass 5: Checking group summary information 52test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 53Exit status is 0 54----------------------------------------------- 55 56debugfs -R ''clri <7>'' -w ./test.img 57Exit status is 0 58Resize inode not valid. Recreate? yes 59 60Pass 1: Checking inodes, blocks, and sizes 61Pass 2: Checking directory structure 62Pass 3: Checking directory connectivity 63Pass 4: Checking reference counts 64Pass 5: Checking group summary information 65Free blocks count wrong for group #0 (717, counted=718). 66Fix? yes 67 68Free blocks count wrong (14276, counted=14277). 69Fix? yes 70 71 72test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** 73test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 74Exit status is 1 75Pass 1: Checking inodes, blocks, and sizes 76Pass 2: Checking directory structure 77Pass 3: Checking directory connectivity 78Pass 4: Checking reference counts 79Pass 5: Checking group summary information 80test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 81Exit status is 0 82----------------------------------------------- 83 84debugfs -R ''set_inode_field <7> bmap[524] 57'' -w ./test.img 85Exit status is 0 86Resize inode not valid. Recreate? yes 87 88Pass 1: Checking inodes, blocks, and sizes 89Pass 2: Checking directory structure 90Pass 3: Checking directory connectivity 91Pass 4: Checking reference counts 92Pass 5: Checking group summary information 93Free blocks count wrong for group #0 (717, counted=718). 94Fix? yes 95 96Free blocks count wrong (14276, counted=14277). 97Fix? yes 98 99 100test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** 101test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 102Exit status is 1 103Pass 1: Checking inodes, blocks, and sizes 104Pass 2: Checking directory structure 105Pass 3: Checking directory connectivity 106Pass 4: Checking reference counts 107Pass 5: Checking group summary information 108test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks 109Exit status is 0 110----------------------------------------------- 111 112debugfs -R ''set_super_value reserved_gdt_blocks 15679'' -w ./test.img 113Exit status is 0 114Corruption found in superblock. (reserved_gdt_blocks = 15679). 115 116The superblock could not be read or does not describe a correct ext2 117filesystem. If the device is valid and it really contains an ext2 118filesystem (and not swap or ufs or something else), then the superblock 119is corrupt, and you might try running e2fsck with an alternate superblock: 120 e2fsck -b 1025 <device> 121 122Exit status is 8 123----------------------------------------------- 124 125debugfs -R ''set_super_value reserved_gdt_blocks 32'' -w ./test.img 126Exit status is 0 127Pass 1: Checking inodes, blocks, and sizes 128Pass 2: Checking directory structure 129Pass 3: Checking directory connectivity 130Pass 4: Checking reference counts 131Pass 5: Checking group summary information 132Block bitmap differences: -(35--258) -(1059--1282) -(3107--3330) -(5155--5378) -(7203--7426) -(9251--9474) 133Fix? yes 134 135Free blocks count wrong for group #0 (718, counted=942). 136Fix? yes 137 138Free blocks count wrong for group #1 (732, counted=956). 139Fix? yes 140 141Free blocks count wrong for group #3 (732, counted=956). 142Fix? yes 143 144Free blocks count wrong for group #5 (732, counted=956). 145Fix? yes 146 147Free blocks count wrong for group #7 (732, counted=956). 148Fix? yes 149 150Free blocks count wrong for group #9 (732, counted=956). 151Fix? yes 152 153Free blocks count wrong (14277, counted=15621). 154Fix? yes 155 156 157test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** 158test_filesys: 11/4096 files (0.0% non-contiguous), 763/16384 blocks 159Exit status is 1 160Pass 1: Checking inodes, blocks, and sizes 161Pass 2: Checking directory structure 162Pass 3: Checking directory connectivity 163Pass 4: Checking reference counts 164Pass 5: Checking group summary information 165test_filesys: 11/4096 files (0.0% non-contiguous), 763/16384 blocks 166Exit status is 0 167