2020-08-01, 05:17 PM
I've been using a UPS for some time to prevent a corrupt (S)SD, which can happen on raspberry pi's or linux system in general for that matter.
When I flip a switch the UPS sees it and sends a command to a GPIO to safely shutdown the system, after 2 minutes or so the UPS is also powered down.
But, this is quite an extensive thing to build and I'd rather not have a battery in my system, because these things can fail too.
I know there are methods to write protect (read-only) certain partitions of the SD so that when a write takes place when the system is not safely shutdown, nothing will be damaged.
In this forum: https://raspberrypi.stackexchange.com/qu...d-so-often
I have read some of these solutions, but, looking at Openplotter I am not sure as to this is a good idea. Not being able to write to a partition could lead to other problems and I think there are more background processes that I don't know of that need to write.
Has anybody ever tried this on a Pi, or on his Openplotter image before? Has anybody every had a corrupt SD? Speaking for myself, I had a few of these situations myself. SD got too hot, or before I used a UPS did unsafe shutdowns, or even if you have a UPS your system can still freeze and you have to shutdown unsafely.
So, I was wondering if we could tackle this problem by looking if it's possible what partitions should / could be write protected, looking at Openplotter.
Curious to your experiences.
When I flip a switch the UPS sees it and sends a command to a GPIO to safely shutdown the system, after 2 minutes or so the UPS is also powered down.
But, this is quite an extensive thing to build and I'd rather not have a battery in my system, because these things can fail too.
I know there are methods to write protect (read-only) certain partitions of the SD so that when a write takes place when the system is not safely shutdown, nothing will be damaged.
In this forum: https://raspberrypi.stackexchange.com/qu...d-so-often
I have read some of these solutions, but, looking at Openplotter I am not sure as to this is a good idea. Not being able to write to a partition could lead to other problems and I think there are more background processes that I don't know of that need to write.
Has anybody ever tried this on a Pi, or on his Openplotter image before? Has anybody every had a corrupt SD? Speaking for myself, I had a few of these situations myself. SD got too hot, or before I used a UPS did unsafe shutdowns, or even if you have a UPS your system can still freeze and you have to shutdown unsafely.
So, I was wondering if we could tackle this problem by looking if it's possible what partitions should / could be write protected, looking at Openplotter.
Curious to your experiences.