pete_c said:
It was corrupt when I checked it. Formatting it and checking it after indicated it was good.
It was on 24/7 and never did have a power failure (it was on a UPS). I manually would shut down Homeseer and update the device and copy files and stuff.
I picked up an APC UPS yesterday because it was on sale. In reading the enclosed data sheet, I noticed it has a "transfer time" of 6-10ms. I think that means there can be a 6 to 10ms delay between an abrupt AC power failure and the UPS switching over to battery power. So, interestingly, a UPS isn't really uninterruptible. Rather, it can be interruptible for up to 10ms (there's an actual standard which allows up to 10ms). It's assumed that whatever smps is plugged into the UPS can "ride through" a 10ms interruption. If it can't, then the smps is blamed, not the UPS.
Until reading about this today, I never knew any of that.
I can believe that a high quality computer power supply will "ride through" a 10ms drop-out, but what about the far less substantial 5 volt USB "chargers" that are commonly used to power a pi? As a "charger", I don't see that it would be required to ride-out anything.
I mention all this, because if that's how your pi was powered by a typical USB charger plugged into a UPS, it's conceivable that your pi actually did experience a power loss (leading to the SD corruption you experienced) even though it was plugged into a UPS.
Anyhow, sorry if any of that is old news, but I thought it worth passing along on the chance you might not already know it. I only learned about this today, and I thought it might be of interest to anyone reading this thread.
To summarize, according to
http://www.apcdistributors.com/white-papers/Power/WP-79%20Technical%20Comparison%20of%20On-line%20vs.%20Line-interactive%20UPS%20designs.pdf the compatibility requirements for a UPS with 120V AC nominal output are as follows:
•
For durations up to 1 millisecond, the UPS output voltage can go as high as 240V.
• For durations up to 10 milliseconds, the UPS output voltage can be zero!
• For durations up to 100 milliseconds, less severe swings (either up or down) can be present —
allowable duration depends on the severity of the disturbance.
• For durations greater than 100 milliseconds
(includes continuous operation), the UPS
output voltage must remain between 96V and
132V.
I never knew! So, bottom line, what kind of 5 volt USB power source would I need to plug into a UPS for a raspberry pi not to be affected by the facts (in bold) immediately above? Anyone here know?