I am working on an embedded Linux project that it is important to be sure that the file system won't be destroyed when some unexpected thing occurs (e.g., power failure during a write operation on SD Card). For this purpose, I am trying to implement a possible failure scenario.
I have read that there is sdctl
for this purpose, but in the article, it says that it may take approximately 4 weeks, which is very long time for a single test.
Do you know, or think of, any good scenarios or special combinations (writing data to a certain place etc.) to speed up this fail process?
By the way, I also appreciate the "corruption-immune combination for SD card" ideas (e.g., using a journaling file system). Thanks in advance.
Edit: Preventing (minor) data loss is not the priority for me. When corruption occurs, file system gets destroyed. So, I have to set the file system on SD card all over again, manually. This is what I want to prevent at least. And the question above is about setting a good test environment to shorten the test time.