Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Created August 9, 2019 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamemomonga/4e840bd031b65d38b349055895ed83c0 to your computer and use it in GitHub Desktop.
Save mamemomonga/4e840bd031b65d38b349055895ed83c0 to your computer and use it in GitHub Desktop.
とにかく早いext4をつくる

とにかく早いext4をつくる

  • writebackモード
  • ジャーナリング無効

参考

TARGET_PART=/dev/sda1
mkfs.ext4 $TARGET_PART
tune2fs -o journal_data_writeback $TARGET_PART
tune2fs -O ^has_journal $TARGET_PART
e2fsck -f $TARGET_PART

mkdir /disk1
echo "$TARGET_PART /disk1 ext4 defaults,data=writeback,noatime,nodiratime 0 0" >> /etc/fstab
mount -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment