Friday, May 3, 2024
16
rated 0 times [  16] [ 0]  / answers: 1 / hits: 60596  / 1 Year ago, sun, november 20, 2022, 9:15:04

I need to know this because of this:




Add the data=writeback mounting option if you formatted the disk without journaling. Otherwise add data=ordered which sould be a good compromise between full journaling and none at all.




from the SSDChecklist.


More From » partitioning

 Answers
0

sudo dumpe2fs /dev/sda1 | more, look for a line starting with Filesystem Features, should say has_journal.



To turn off journal and speed things up on a ext4 partition follow these steps:



Example uses sda1 device, this does not mean you should do it on your main disk, replace sda1 with the disk you are preparing, data loss will happen!



Create ext4 fs on /dev/sda1 disk



mkfs.ext4 /dev/sda1



To enable writeback mode use this. This mode will typically provide the best ext4 performance.



tune2fs -o journal_data_writeback /dev/sda1



To delete journal remove has_journal option, this will disable etx4 journal



tune2fs -O ^has_journal /dev/sda1



Check if everything is ok



e2fsck -f /dev/sda1



Done, recommended for speed applications only! Gl


[#42222] Monday, November 21, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uestred

Total Points: 464
Total Questions: 104
Total Answers: 112

Location: Israel
Member since Wed, Apr 14, 2021
3 Years ago
;