ext4 without journaling, fast and insecure

This use is not recommended for an important data.

A little faster, but much less reliable

1
2
3
4
mkfs.ext4 -m0 /dev/mapper/lvm-test
# Disable periodic file system checking after a certain number of mounts
tune2fs -c0 -i0 -m0 /dev/mapper/lvm-test
# Same as data=writeback when mounting a partition
1
2
3
4
tune2fs -o journal_data_writeback /dev/mapper/lvm-test
# Disable file system journaling
tune2fs -O ^has_journal /dev/mapper/lvm-test
fsck.ext4 /dev/mapper/lvm-test
1
2
3
4
5
6
7
# An option when logging data
# may end up on disk
# before the data itself is written
mount -o noatime,nodiratime,data=writeback,errors=remount-ro /dev/mapper/lvm-test

# Option without sequential logging and without read buffers
mount -o noatime,nodiratime,journal_async_commit,data=writeback,barrier=0,nobh,commit=120,errors=remount-ro