site  contact  subhomenews

Fix for journal commit interval change

June 24, 2020 — BarryK

I posted how the ext4 journal commit interval was changed from 5 to 30 seconds:

https://bkhome.org/news/202006/change-ext4-journal-commit-interval-from-5-to-30.html

This is in EasyOS version 2.3.2, however, Terry reported that when he updated his existing installation of EasyOS to 2.3.2, mounting of the working-partition failed.

I advised him to remove the "-o" options, which fixed it:

http://murga-linux.com/puppy/viewtopic.php?p=1061543#1061543

He hasn't replied yet, but I think the problem is that his ext4 filesystem does not have a journal. So, I have modified the 'init' script like this:

  mount -t ${WKG_FS} -o commit=30,rw,relatime,data=ordered /dev/${WKG_DEV} /mnt/${WKG_DEV} 2>/dev/null
[ $? -ne 0 ] && mount -t ${WKG_FS} /dev/${WKG_DEV} /mnt/${WKG_DEV} #200624 fallback if no journal

The initrd doesn't have the 'dumpe2fs' utility, and don't know any other way to test if ext4 has a journal, so just do as above. If the "-o" options cause failure to mount, do it again without the "-o" options. Crude, but should work. 

Tags: easy