1tune2fs dangerous prompts test 2Creating filesystem with 524288 1k blocks and 65536 inodes 3Superblock backups stored on blocks: 4 8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409 5 6Allocating group tables: done 7Writing inode tables: done 8Creating journal (16384 blocks): done 9Creating 445 huge file(s) with 1024 blocks each: done 10Writing superblocks and filesystem accounting information: done 11 12tune2fs -O metadata_csum test.img 13 14This operation requires a freshly checked filesystem. 15 16Please run e2fsck -f on the filesystem. 17 18Exit status is 1 19tune2fs -O metadata_csum test.img 20Exit status is 0 21Creating filesystem with 524288 1k blocks and 65536 inodes 22Superblock backups stored on blocks: 23 8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409 24 25Allocating group tables: done 26Writing inode tables: done 27Creating journal (16384 blocks): done 28Creating 445 huge file(s) with 1024 blocks each: done 29Writing superblocks and filesystem accounting information: done 30 31Pass 1: Checking inodes, blocks, and sizes 32Pass 2: Checking directory structure 33Pass 3: Checking directory connectivity 34Pass 4: Checking reference counts 35Pass 5: Checking group summary information 36 37Exit status is 0 38tune2fs -O metadata_csum test.img 39Enabling checksums could take some time. 40Proceed anyway (or wait 5 seconds to proceed) ? (y,N) 41Exit status is 1 42tune2fs -I 512 test.img 43Resizing inodes could take some time. 44Proceed anyway (or wait 5 seconds to proceed) ? (y,N) 45Exit status is 1 46 47Change in FS metadata: 48Pass 1: Checking inodes, blocks, and sizes 49Pass 2: Checking directory structure 50Pass 3: Checking directory connectivity 51Pass 4: Checking reference counts 52Pass 5: Checking group summary information 53 54Exit status is 0 55tune2fs -O metadata_csum test.img 56Enabling checksums could take some time. 57Proceed anyway (or wait 5 seconds to proceed) ? (y,N) 58This operation requires a freshly checked filesystem. 59 60Please run e2fsck -fD on the filesystem. 61 62Exit status is 0 63test_filesys was not cleanly unmounted, check forced. 64Pass 1: Checking inodes, blocks, and sizes 65Pass 2: Checking directory structure 66Pass 3: Checking directory connectivity 67Pass 3A: Optimizing directories 68Pass 4: Checking reference counts 69Pass 5: Checking group summary information 70 71 72 73tune2fs -I 512 test.img 74Resizing inodes could take some time. 75Proceed anyway (or wait 5 seconds to proceed) ? (y,N) Setting inode size 512 76Exit status is 0 77tune2fs -U f0f0f0f0-f0f0-f0f0-f0f0-f0f0f0f0f0f0 test.img 78Setting the UUID on this filesystem could take some time. 79Proceed anyway (or wait 5 seconds to proceed) ? (y,N) Exit status is 0 80Backing up journal inode block information. 81 82 83Change in FS metadata: 84@@ -1,3 +1,3 @@ 85-Filesystem UUID: 6fc3daa4-180d-4f2b-a6f2-f7a5efb79bcf 86-Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent 64bit sparse_super large_file huge_file uninit_bg dir_nlink extra_isize 87-Inode size: 256 88+Filesystem UUID: f0f0f0f0-f0f0-f0f0-f0f0-f0f0f0f0f0f0 89+Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent 64bit sparse_super large_file huge_file dir_nlink extra_isize metadata_csum 90+Inode size: 512 91Pass 1: Checking inodes, blocks, and sizes 92Pass 2: Checking directory structure 93Pass 3: Checking directory connectivity 94Pass 4: Checking reference counts 95Pass 5: Checking group summary information 96 97Exit status is 0 98 99Testing with metadata checksum enabled 100Creating filesystem with 524288 1k blocks and 65536 inodes 101Superblock backups stored on blocks: 102 8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409 103 104Allocating group tables: done 105Writing inode tables: done 106Creating journal (16384 blocks): done 107Creating 445 huge file(s) with 1024 blocks each: done 108Writing superblocks and filesystem accounting information: done 109 110Pass 1: Checking inodes, blocks, and sizes 111Pass 2: Checking directory structure 112Pass 3: Checking directory connectivity 113Pass 4: Checking reference counts 114Pass 5: Checking group summary information 115 116Exit status is 0 117tune2fs -U random test.img 118Setting the UUID on this filesystem could take some time. 119Proceed anyway (or wait 5 seconds to proceed) ? (y,N) 120Exit status is 1 121