Skip to content

Instantly share code, notes, and snippets.

@FireEgl
Last active April 9, 2024 20:48
Show Gist options
  • Select an option

  • Save FireEgl/d8349acf5362b9d930a5b6185c078fa5 to your computer and use it in GitHub Desktop.

Select an option

Save FireEgl/d8349acf5362b9d930a5b6185c078fa5 to your computer and use it in GitHub Desktop.
ext4 mke2fs and tune2fs example using my preferred options
mke2fs -c -b 4096 -i 4096 -j -L SOL2HOME -m 1 -t ext4 -O casefold,dir_index,encrypt,extent,dir_nlink -E lazy_itable_init=0,lazy_journal_init=0,stride=4,stripe_width=4 -e continue /dev/sdc2
tune2fs -c 1 -e continue -i 1 -o journal_data_writeback -O casefold,dir_index,encrypt,extent,dir_nlink -E stride=4,stripe_width=4 /dev/sdc2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment