STEP 1: Unmount the file system partition whose journaling you wish to disable
Use the following command to unmount the partition on /dev/sda1 (let’s say it’s /opt):
umount /opt |
NOTE: The command used above is umount and not unmount.
STEP 2: Disable journaling for the file system
Use the following command to disable journaling for an ext4 file system:
tune4fs -O ^has_journal /dev/sda1 |
STEP 3: Perform a file system check
Use the following command to perform a file system check. This is not strictly required, but is recommended for checking file system integrity after disabling journaling:
e4fsck –f /dev/sda1 |
STEP 4: Reboot
You may use the following command to reboot the Linux OS:
shutdown –r now |
STEP 5: Verify that the file system has journaling disabled and the partition is mounted
After the host has rebooted, you may use the following commands to check if journaling is disabled for the filesystem and the partition is mounted:
dmesg | grep EXT4 |
Expected output similar to: EXT4-fs (dm-3): mounted filesystem without journal
df -h |