Hello yoav rubin,
Syncing the disks(flash) could write corrupt data to the disks, such as if the panic was due to a bug in Ext4, for example - so the kernel plays it safe and doesn't flush anything to disk because it no longer trusts that the data is valid anymore.
Additionally, if the panic occurred due to a hardware issue (e.g. bad RAM), syncing the disks could also write corrupted data from memory to the disk. If the filesystem then became corrupt as a result, the system might refuse to boot after being restarted, or may need to be fsck'ed.
When safety is paramount mounting a filesystem with the sync option is always a good idea. This forces all writes to disk immediately - again this is a performance hit, but a good idea if you expect power failures or random strangers yanking the CF card out.
You could modify /etc/fstab to disable sync mount option.
In addition, for NAND flash UBI filesystem is recommended rather than ext4.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------