Thanks for the replies so far.
I've only ever had corruption with the linux system files, not DB, so I'm prepared to run that risk. DB writes are minimal in any case.
OK, I'm not sure if this is possible, but can mysql running in RAM access the DB if I keep the DB on the CF card? Can I mount the CF card seperately ? There will be no network access on the pcb when installed, therefore no remote DB. A UPS is too expensive, so has already been ruled out.
Secondly, is there a procedure for getting my own app into RAM? It's not jumping out at me from the forum.