Home | History | Annotate | Download | only in f_resize_inode
      1 mke2fs -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 16384
      2 Filesystem label=
      3 OS type: Linux
      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
      8 First data block=1
      9 Maximum filesystem blocks=8421376
     10 16 block groups
     11 1024 blocks per group, 1024 fragments per group
     12 256 inodes per group
     13 Superblock backups stored on blocks: 
     14 	1025, 3073, 5121, 7169, 9217
     15 
     16 Writing 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                            
     17 Writing superblocks and filesystem accounting information: done
     18 
     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
     25 Exit status is 0
     26 -----------------------------------------------
     27  
     28 debugfs -R ''set_inode_field <7> block[2] 42'' -w ./test.img
     29 Exit status is 0
     30 Resize inode not valid.  Recreate? yes
     31 
     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).
     38 Fix? yes
     39 
     40 Free blocks count wrong (14276, counted=14277).
     41 Fix? yes
     42 
     43 
     44 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
     45 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
     46 Exit status is 1
     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
     53 Exit status is 0
     54 -----------------------------------------------
     55  
     56 debugfs -R ''clri <7>'' -w ./test.img
     57 Exit status is 0
     58 Resize inode not valid.  Recreate? yes
     59 
     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).
     66 Fix? yes
     67 
     68 Free blocks count wrong (14276, counted=14277).
     69 Fix? yes
     70 
     71 
     72 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
     73 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
     74 Exit status is 1
     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
     81 Exit status is 0
     82 -----------------------------------------------
     83  
     84 debugfs -R ''set_inode_field <7> bmap[524] 57'' -w ./test.img
     85 Exit status is 0
     86 Resize inode not valid.  Recreate? yes
     87 
     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).
     94 Fix? yes
     95 
     96 Free blocks count wrong (14276, counted=14277).
     97 Fix? yes
     98 
     99 
    100 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
    101 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
    102 Exit status is 1
    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
    109 Exit status is 0
    110 -----------------------------------------------
    111  
    112 debugfs -R ''set_super_value reserved_gdt_blocks 15679'' -w ./test.img
    113 Exit status is 0
    114 Corruption found in superblock.  (reserved_gdt_blocks = 15679).
    115 
    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>
    121 
    122 Exit status is 8
    123 -----------------------------------------------
    124  
    125 debugfs -R ''set_super_value reserved_gdt_blocks 32'' -w ./test.img
    126 Exit status is 0
    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)
    133 Fix? yes
    134 
    135 Free blocks count wrong for group #0 (718, counted=942).
    136 Fix? yes
    137 
    138 Free blocks count wrong for group #1 (732, counted=956).
    139 Fix? yes
    140 
    141 Free blocks count wrong for group #3 (732, counted=956).
    142 Fix? yes
    143 
    144 Free blocks count wrong for group #5 (732, counted=956).
    145 Fix? yes
    146 
    147 Free blocks count wrong for group #7 (732, counted=956).
    148 Fix? yes
    149 
    150 Free blocks count wrong for group #9 (732, counted=956).
    151 Fix? yes
    152 
    153 Free blocks count wrong (14277, counted=15621).
    154 Fix? yes
    155 
    156 
    157 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
    158 test_filesys: 11/4096 files (0.0% non-contiguous), 763/16384 blocks
    159 Exit status is 1
    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
    166 Exit status is 0
    167