This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Preventing corrupt SD
#1
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.
Reply
#2
why not just switch to ssd?
I had to carry spare SD cards till I made the switch, never once did I have the problem with an SSD drive and Rp3 and 4 both boot from usb now.
Reply
#3
Wasn't SSD also prone to the same corruption problems? I'll definitely try nevertheless.
Do you do an unsafe shutdown always or sometimes?
Reply
#4
(Yesterday, 07:21 PM)jamos.tan@gmail.com Wrote: Wasn't SSD also prone to the same corruption problems? I'll definitely try nevertheless.
Do you do an unsafe shutdown always or sometimes?

Quite often I forget to shutdown it down and just turn off the main power.  I’ve never had any issues with it.  In fact when I’m starting my main engine it will sometimes cause a voltage shortage to the point it loses power. No problems yet.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)