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