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