10-23-2019, 01:34 PM
Thank you for explanation. Do you use the same type flash memory in every case? May be the root of the problem is in flash media stability?
I used single ROCKpro64 for several month without a UPS. And after tens of sudden shutdowns there was none startup failures. Both "Transcend microSDXC 300S Class 10 Uhs-i U3 A1 V30 128GB" card and 16GB Pine64 flash module was able to restart correctly after any shutdowns, including power failures.
It is well known that newer data are always written to the blocks of flash cells which was worn less. So until the amount of data written is less than media capacity the elder information will still persist on the media.
In case of sudden power failure the flash controller may corrupt the data written last. But previously written data, even being overwritten, may return because of controller database intrinsic backup restoration.
Try to perform periodic "fstrim -a". The trimming itself may initiate flash media controller database update. And in case of sudden power loss it may return to more fresh backup than without of trimming.
I used single ROCKpro64 for several month without a UPS. And after tens of sudden shutdowns there was none startup failures. Both "Transcend microSDXC 300S Class 10 Uhs-i U3 A1 V30 128GB" card and 16GB Pine64 flash module was able to restart correctly after any shutdowns, including power failures.
- What storage media are connected to your boards at the moment of power failure and restart?
- Was there any Android OS written to the media before? How could it start?
- Was Android overwritten by different OS before failure?
It is well known that newer data are always written to the blocks of flash cells which was worn less. So until the amount of data written is less than media capacity the elder information will still persist on the media.
In case of sudden power failure the flash controller may corrupt the data written last. But previously written data, even being overwritten, may return because of controller database intrinsic backup restoration.
Try to perform periodic "fstrim -a". The trimming itself may initiate flash media controller database update. And in case of sudden power loss it may return to more fresh backup than without of trimming.