John Nagle <firstname.lastname@example.org> wrote:
Dennis Miller wrote:
What strategies can we use to prevent file system corruption caused by
unexpected power loss? I’m mainly concerned with protecting files that the
OS relies on, not our application files. Here are some of the ideas we’ve
already kicked around.
QNX runs quite well with the system in a read-only partition.
In fact, you can run with the OS in ROM, or on a CD-ROM drive.
For many embedded applications, that’s a good choice.
I definitely agree with this suggestion. OS components, your
application components – all in a RO partition, or on a RO
Dynamic data – logging, configuration, data collection, etc,
in a seperate writable partition or on a seperate writable device.
If you are HD based, seperate partitions are probably enough.
If you’re using something like compact flash that sits behind
an IDE controller, you may still be at risk. While the OS
will treat the partitions as seperate, it is hard to know what
algorithms for wear-levelling of erase blocks are being used
in the CF device, and whether power-cycling in the middle of
one unexpectedly could affect nominally read-only data.
QNX Training Services
Please followup in this newsgroup if you have further questions.