1 mke2fs -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 16384
2 128-byte inodes cannot handle dates beyond 2038 and are deprecated
3 Creating filesystem with 16384 1k blocks and 4096 inodes
4 Superblock backups stored on blocks:
5 1025, 3073, 5121, 7169, 9217
7 Allocating group tables:
\b\b\b\b\bdone
8 Writing inode tables:
\b\b\b\b\bdone
9 Writing superblocks and filesystem accounting information:
\b\b\b\b\bdone
11 Pass 1: Checking inodes, blocks, and sizes
12 Pass 2: Checking directory structure
13 Pass 3: Checking directory connectivity
14 Pass 4: Checking reference counts
15 Pass 5: Checking group summary information
16 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
18 -----------------------------------------------
20 debugfs -R ''set_inode_field <7> block[2] 42'' -w test.img
22 Resize inode not valid. Recreate? yes
24 Pass 1: Checking inodes, blocks, and sizes
25 Pass 2: Checking directory structure
26 Pass 3: Checking directory connectivity
27 Pass 4: Checking reference counts
28 Pass 5: Checking group summary information
29 Free blocks count wrong for group #0 (717, counted=718).
32 Free blocks count wrong (14276, counted=14277).
36 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
37 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
39 Pass 1: Checking inodes, blocks, and sizes
40 Pass 2: Checking directory structure
41 Pass 3: Checking directory connectivity
42 Pass 4: Checking reference counts
43 Pass 5: Checking group summary information
44 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
46 -----------------------------------------------
48 debugfs -R ''clri <7>'' -w test.img
50 Resize inode not valid. Recreate? yes
52 Pass 1: Checking inodes, blocks, and sizes
53 Pass 2: Checking directory structure
54 Pass 3: Checking directory connectivity
55 Pass 4: Checking reference counts
56 Pass 5: Checking group summary information
57 Free blocks count wrong for group #0 (717, counted=718).
60 Free blocks count wrong (14276, counted=14277).
64 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
65 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
67 Pass 1: Checking inodes, blocks, and sizes
68 Pass 2: Checking directory structure
69 Pass 3: Checking directory connectivity
70 Pass 4: Checking reference counts
71 Pass 5: Checking group summary information
72 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
74 -----------------------------------------------
76 debugfs -R ''set_inode_field <7> bmap[524] 57'' -w test.img
78 Resize inode not valid. Recreate? yes
80 Pass 1: Checking inodes, blocks, and sizes
81 Pass 2: Checking directory structure
82 Pass 3: Checking directory connectivity
83 Pass 4: Checking reference counts
84 Pass 5: Checking group summary information
85 Free blocks count wrong for group #0 (717, counted=718).
88 Free blocks count wrong (14276, counted=14277).
92 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
93 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
95 Pass 1: Checking inodes, blocks, and sizes
96 Pass 2: Checking directory structure
97 Pass 3: Checking directory connectivity
98 Pass 4: Checking reference counts
99 Pass 5: Checking group summary information
100 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
102 -----------------------------------------------
104 debugfs -R ''set_super_value reserved_gdt_blocks 15679'' -w test.img
106 ext2fs_check_desc: Corrupt group descriptor: bad block for block bitmap
107 ../e2fsck/e2fsck: Group descriptors look bad... trying backup blocks...
108 Pass 1: Checking inodes, blocks, and sizes
109 Pass 2: Checking directory structure
110 Pass 3: Checking directory connectivity
111 Pass 4: Checking reference counts
112 Pass 5: Checking group summary information
114 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
115 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
117 -----------------------------------------------
119 debugfs -R ''set_super_value reserved_gdt_blocks 32'' -w test.img
121 Pass 1: Checking inodes, blocks, and sizes
122 Pass 2: Checking directory structure
123 Pass 3: Checking directory connectivity
124 Pass 4: Checking reference counts
125 Pass 5: Checking group summary information
126 Block bitmap differences: -(35--258) -(1059--1282) -(3107--3330) -(5155--5378) -(7203--7426) -(9251--9474)
129 Free blocks count wrong for group #0 (718, counted=942).
132 Free blocks count wrong for group #1 (732, counted=956).
135 Free blocks count wrong for group #3 (732, counted=956).
138 Free blocks count wrong for group #5 (732, counted=956).
141 Free blocks count wrong for group #7 (732, counted=956).
144 Free blocks count wrong for group #9 (732, counted=956).
147 Free blocks count wrong (14277, counted=15621).
151 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
152 test_filesys: 11/4096 files (0.0% non-contiguous), 763/16384 blocks
154 Pass 1: Checking inodes, blocks, and sizes
155 Pass 2: Checking directory structure
156 Pass 3: Checking directory connectivity
157 Pass 4: Checking reference counts
158 Pass 5: Checking group summary information
159 test_filesys: 11/4096 files (0.0% non-contiguous), 763/16384 blocks