1 mke2fs -F -O resize_inode -b 1024 -g 1024 test.img 16384
4 Block size=1024 (log=0)
5 Fragment size=1024 (log=0)
6 4096 inodes, 16384 blocks
7 819 blocks (5.00%) reserved for the super user
9 Maximum filesystem blocks=8421376
11 1024 blocks per group, 1024 fragments per group
13 Superblock backups stored on blocks:
14 1025, 3073, 5121, 7169, 9217
16 Writing inode tables: 0/16
\b\b\b\b\b 1/16
\b\b\b\b\b 2/16
\b\b\b\b\b 3/16
\b\b\b\b\b 4/16
\b\b\b\b\b 5/16
\b\b\b\b\b 6/16
\b\b\b\b\b 7/16
\b\b\b\b\b 8/16
\b\b\b\b\b 9/16
\b\b\b\b\b10/16
\b\b\b\b\b11/16
\b\b\b\b\b12/16
\b\b\b\b\b13/16
\b\b\b\b\b14/16
\b\b\b\b\b15/16
\b\b\b\b\bdone
17 Writing superblocks and filesystem accounting information: done
19 Pass 1: Checking inodes, blocks, and sizes
20 Pass 2: Checking directory structure
21 Pass 3: Checking directory connectivity
22 Pass 4: Checking reference counts
23 Pass 5: Checking group summary information
24 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
26 -----------------------------------------------
28 debugfs -R ''set_inode <7> block[2] 42'' -w ./test.img
30 Resize inode not valid. Recreate? yes
32 Pass 1: Checking inodes, blocks, and sizes
33 Pass 2: Checking directory structure
34 Pass 3: Checking directory connectivity
35 Pass 4: Checking reference counts
36 Pass 5: Checking group summary information
37 Free blocks count wrong for group #0 (717, counted=718).
40 Free blocks count wrong (14276, counted=14277).
44 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
45 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
47 Pass 1: Checking inodes, blocks, and sizes
48 Pass 2: Checking directory structure
49 Pass 3: Checking directory connectivity
50 Pass 4: Checking reference counts
51 Pass 5: Checking group summary information
52 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
54 -----------------------------------------------
56 debugfs -R ''clri <7>'' -w ./test.img
58 Resize inode not valid. Recreate? yes
60 Pass 1: Checking inodes, blocks, and sizes
61 Pass 2: Checking directory structure
62 Pass 3: Checking directory connectivity
63 Pass 4: Checking reference counts
64 Pass 5: Checking group summary information
65 Free blocks count wrong for group #0 (717, counted=718).
68 Free blocks count wrong (14276, counted=14277).
72 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
73 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
75 Pass 1: Checking inodes, blocks, and sizes
76 Pass 2: Checking directory structure
77 Pass 3: Checking directory connectivity
78 Pass 4: Checking reference counts
79 Pass 5: Checking group summary information
80 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
82 -----------------------------------------------
84 debugfs -R ''set_inode <7> bmap[524] 57'' -w ./test.img
86 Resize inode not valid. Recreate? yes
88 Pass 1: Checking inodes, blocks, and sizes
89 Pass 2: Checking directory structure
90 Pass 3: Checking directory connectivity
91 Pass 4: Checking reference counts
92 Pass 5: Checking group summary information
93 Free blocks count wrong for group #0 (717, counted=718).
96 Free blocks count wrong (14276, counted=14277).
100 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
101 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
103 Pass 1: Checking inodes, blocks, and sizes
104 Pass 2: Checking directory structure
105 Pass 3: Checking directory connectivity
106 Pass 4: Checking reference counts
107 Pass 5: Checking group summary information
108 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
110 -----------------------------------------------
112 debugfs -R ''set_super_value reserved_gdt_blocks 15679'' -w ./test.img
114 Corruption found in superblock. (reserved_gdt_blocks = 15679).
116 The superblock could not be read or does not describe a correct ext2
117 filesystem. If the device is valid and it really contains an ext2
118 filesystem (and not swap or ufs or something else), then the superblock
119 is corrupt, and you might try running e2fsck with an alternate superblock:
120 e2fsck -b 1025 <device>
123 -----------------------------------------------
125 debugfs -R ''set_super_value reserved_gdt_blocks 32'' -w ./test.img
127 Pass 1: Checking inodes, blocks, and sizes
128 Pass 2: Checking directory structure
129 Pass 3: Checking directory connectivity
130 Pass 4: Checking reference counts
131 Pass 5: Checking group summary information
132 Block bitmap differences: -(35--258) -(1059--1282) -(3107--3330) -(5155--5378) -(7203--7426) -(9251--9474)
135 Free blocks count wrong for group #0 (718, counted=942).
138 Free blocks count wrong for group #1 (732, counted=956).
141 Free blocks count wrong for group #3 (732, counted=956).
144 Free blocks count wrong for group #5 (732, counted=956).
147 Free blocks count wrong for group #7 (732, counted=956).
150 Free blocks count wrong for group #9 (732, counted=956).
153 Free blocks count wrong (14277, counted=15621).
157 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
158 test_filesys: 11/4096 files (0.0% non-contiguous), 763/16384 blocks
160 Pass 1: Checking inodes, blocks, and sizes
161 Pass 2: Checking directory structure
162 Pass 3: Checking directory connectivity
163 Pass 4: Checking reference counts
164 Pass 5: Checking group summary information
165 test_filesys: 11/4096 files (0.0% non-contiguous), 763/16384 blocks