Z
Z
Zenker2011-08-27 01:31:15
linux
Zenker, 2011-08-27 01:31:15

How to properly disable journaling in ext4?

To extend the life of the SSD drive, I want to disable journaling in the ext4 file system. But when used:
tune2fs -o journal_data_writeback /dev/sda1
at the same time, the TRIM mode is also disabled, despite the discard option in fstab.
Can you please tell me if it is possible to disable logging without such side effects?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
sl_bug, 2011-08-27
@sl_bug

What for?

A
admin4eg, 2011-08-27
@admin4eg

Religion does not allow to use non-journaled file systems?

R
romx, 2011-08-28
@romx

It would be smart not to disable journaling in ext4 :-|

D
Dmitry, 2015-10-23
@luk911

if you know what you are doing, then it will be correct like this:
sudo umount /dev/sda1
sudo tune2fs -o journal_data_writeback /dev/sda1
sudo tune2fs -O ^has_journal /dev/sda1
sudo e2fsck -f /dev/sda1
but don't know about trim

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question