Disable or Enable Journaling On ext4 Filesystem

You can only use the ordered journaling method on a Linux Server. First check if the journal feature is enabled on ext3/ext4 filesystem with the following command:

tune2fs -l /disk-path

Check the output of the above command for has_journal which indicates the journaling is enabled on the filesystem.

Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize

To disable journaling use the command:

tune2fs -O ^has_journal ext4-device-name

If you want to enable (on device without prefix or with + prefix) then run the command:

tune2fs -O has_journal ext4-device-name

tune2fs -O +has_journal ext4-device-name

Tip from ‘man tune2fs’ page: Filesystem features prefixed with a caret character (‘^’) will be cleared in the filesystem’s superblock; filesystem features without a prefix character or prefixed with a plus character (‘+’) will be added to
the filesystem.

Leave a Reply