1mke2fs -q -F -o Linux -b 1024 -i 1024 -O ^resize_inode -t ext4 test.img 1024000 2resize2fs -p test.img 100000000 3Resizing the filesystem on test.img to 100000000 (1k) blocks. 4Begin pass 2 (max = 2061) 5Relocating blocks ----------------------------------------XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 6Begin pass 3 (max = 125) 7Scanning inode table ----------------------------------------XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 8Begin pass 5 (max = 5) 9Moving inode table ----------------------------------------XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 10The filesystem on test.img is now 99999745 (1k) blocks long. 11 12Pass 1: Checking inodes, blocks, and sizes 13Pass 2: Checking directory structure 14Pass 3: Checking directory connectivity 15Pass 4: Checking reference counts 16Pass 5: Checking group summary information 17test_filesys: 11/99999744 files (0.0% non-contiguous), 25048025/99999745 blocks 18Exit status is 0 19dumpe2fs -h test.img 20Filesystem volume name: <none> 21Last mounted on: <not available> 22Filesystem magic number: 0xEF53 23Filesystem revision #: 1 (dynamic) 24Filesystem features: has_journal ext_attr dir_index filetype extent flex_bg sparse_super huge_file uninit_bg dir_nlink extra_isize 25Default mount options: (none) 26Filesystem state: clean 27Errors behavior: Continue 28Filesystem OS type: Linux 29Inode count: 99999744 30Block count: 99999745 31Reserved block count: 4999987 32Free blocks: 74951720 33Free inodes: 99999733 34First block: 1 35Block size: 1024 36Fragment size: 1024 37Blocks per group: 8192 38Fragments per group: 8192 39Inodes per group: 8192 40Inode blocks per group: 2048 41Flex block group size: 16 42Mount count: 0 43Check interval: 15552000 (6 months) 44Reserved blocks uid: 0 45Reserved blocks gid: 0 46First inode: 11 47Inode size: 256 48Required extra isize: 32 49Desired extra isize: 32 50Journal inode: 8 51Default directory hash: half_md4 52Journal backup: inode blocks 53Journal features: (none) 54Journal size: 16M 55Journal length: 16384 56Journal sequence: 0x00000001 57Journal start: 0 58 59