On 09/12/2019 15.28, James Knott wrote:
On 2019-12-09 08:27 AM, Anton Aylward wrote:
And from a year ago ...
https://www.addictivetips.com/ubuntu-linux-tips/best-ssd-friendly-file-syste...
That article mentions disabling the journal on EXT4. Can that be done on a per file system basis, so that flash devices mount with it off?
Certainly. But the trick is to format the ext4 on the stick without a journal. From <http://www.sysresccd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick> «If you are using SystemRescueCD-1.2 or more recent, it's recommended that you use an ext4 filesystem with the journal turned off (this is possible with Linux >= 2.6.29). USB sticks are Flash filesystems and this type of memory only supports a limited number of writes. Journaling filesystems will make many writes at the same location (where the journal is stored). Therefore, to extend the lifespan of the memory we should limit the number of writes. Here is how to use ext4 with the journaling turned off:» mke2fs -t ext4 -O ^has_journal /dev/sdXY Note 2016-03-12: tune2fs -O ^has_journal <ext3/4-device>. «You could also use ext2 but it does not support extents, and then it requires more accesses to read/write large files to the disk.» -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)