I hope this is the right thread.
I am currently working on a project that is so close to complete that I can smell it. The project is a Photobooth based on a Raspberry Pi with a pi camera. The software was developed in python.
However, during the making of this project we had great issues with sd cards going wonky and, I guess, becoming corrupted. Currently it is not strange just to cut the power to the raspberry pi which caused major issues as I have read all over the internet. We decided it would be a good idea to make the sd card read only and transfer all the writeable folder such as the home directory to an external 1TB disk. We did this expecting never to see the issue again, however, now after a while the sd card seems to be giving problems again not being entirely corrupted but sometimes failing to boot and freezing now and then.
I am not excluding the fact that in some instances the power could have been cut while the pi was in dev mode and the sd card mounted as rw.
A little about the set up:
I have a pi with a camera board attached and an external HDD connected via usb. Partitions have been created on the disk and the python application saves files to this hdd (photos and so on) and reads from the hdd as well. All the application code files are also on the hdd. We also have a webserver running on the pi and a mysql server hosting a mysql database as well as a cups server which sends jobs to the printer.
Because of the hdd, I moved all the directories to the disk like the home directory and made the sd card read only.
My questions are thus:
1. Is it enough to make the sd card read only to eliminate the cold power off issues. Ie, if the sd card is read only, will this be 100% preventative to the sd card from going corrupt when power is cut from the pi given the power is cut in read only mode?
2. Does this guide offer more protection against corruption and offer better stability than purely making the sd card read only? I could be wrong but It seems here that this guide allows you to boot from hdd? viewtopic.php?f=29&t=44177
3. Are there any proven specs, classes or brands on sd cards that prove to be the most reliable? I have read all over the internet and everyone suggests something different.
4. Should I consider a battery power circuit with power cut detection and auto shutdown? I would like to prevent this if possible as it will cost more money.
If it is 100% guaranteed that the sd card will not go corrupt due to power cut when the card is in read only mode, then that should be fine as I will be the only one that operates it with the sd card in rw mode. When it is in the field, it will always be read only and the agent will CUT the power. I can guarantee it. I just need to make sure that I shut it down correctly when in rw mode.
I thank you for any advice or comments as I am at my witts end with this and I really want to get this project out in the field but it seems that everywhere I turn, and as soon as I come close, something happens that prevents me from doing so. Im pulling my hair out and this is testing my patience.