To be honest, that sounds like a bad Pi, not a bad SD card. The Pi is 
fairly tolerant of power issues, I have run them off of USB cables 
connected to other systems, USB wall power adaptors, and even POE adaptors 
with never a problem like the one you are seeing. 

The only thing that comes immediately to mind is to make sure you don't 
have swap enabled in your system. In general, you never want to run 
anything on a Pi that uses enough memory to cause swapping -- both for 
performance and SD write issues. The kind of writes that weewx does for the 
sqlite database and logging shouldn't cause enough write traffic to hit the 
SD write limits for several years (there is a really good article from a 
couple of years ago on the myth of SD write limitations, I'll see if I can 
dig it up and post it to the list).

In all my years of using SD cards in various devices (PoGoPlug, Pi, an old 
firewall I have since retired, assorted tablets, etc.), I have only ever 
had a single card failure -- and that was from a bad card, not any sort of 
write limit being reached.

On Monday, October 31, 2016 at 8:25:43 AM UTC-7, Jacek Skowroński wrote:
>
> I mean crash of the rasbperry Pi
>
> and many errors like kernel panic connected with the filesystem
>
> Few times I had tried to get card to the PC with knoppix and do fsck to 
> repair filesystem but all trials make the data corrupted -> I gave up and 
> bougth new card and system was working for some time.
>
> At the begining I thought it's a case of power / stability of power.
>
> For about 6months I have PiUPS and APC UPS, APC is mainly for making the 
> power more electric user friendly and to keep power for 5minutes. PiUPS is 
> for keeping power for 30minutes and then to clearly poweroff. From this 
> time - I have 100% power on, but on Saturday second card failed. I get mail 
> from WU about no data from station, I attached tv to the Pi and I had seen 
> kernel panic because of filesystem.
>
> This is my problem.
>
> W dniu 2016-10-31 o 16:19, Daniel Rich pisze:
>
> Jacek,
>
> When you say you are seeing "corruption", what do you mean? In my 
> experience SD card failures typically show as write or read failures, but 
> not data corruption.
>
> Like Thomas, I have PI systems that have been running for over two years 
> with no SD card failures. As long as you don't do something like enable a 
> swap partition and run so much on the PI that you cause swapping, there 
> shouldn't be enough data activity to hit any of the SD write limits for 
> several years.
>
> ---
> Dan Rich <[email protected]> <javascript:> |   
> http://www.employees.org/~drich/
>                                |  "Step up to red alert!"  "Are you sure, sir?
>                                |   It means changing the bulb in the sign..."
>                                |          - Red Dwarf (BBC)
>
> On 2016-10-31 05:36, Jacek Skowroński wrote:
>
> I had 5 already
>
> toshiba claas 10
> samsung evo pro
> sandisk extreme
> sandisk ultra
> Intenso claas 10
>
> in general all get corrupted after 3-4 month
>
> all cards had been 16-32gb
>
> W dniu 2016-10-31 o 13:34, Thomas Keffer pisze:
>
> I've been running an experiment 
> <http://www.threefools.org/weewx/status/index.html> on how long an SD 
> card can survive in the weewx environment. 
>  
> So far, using a Sandisk Extreme Plus, it's been running nearly 2 years 
> without a problem.
>  
> If you buy a good one, it can last quite a long time.
>  
> What kind of card are you using?
>  
> -tk
>  
>  
>
> On Mon, Oct 31, 2016 at 4:11 AM, Jacek Skowroński <[email protected] 
> <javascript:>> wrote:
>
>> great, I will update my environment with hdd.
>>
>> Regards
>> Jacek
>>
>> W dniu 2016-10-31 o 12:09, Andrew Milner pisze:
>>
>> Yes, they work.  I use a powered usb hub because the rpi usb is somewhat 
>> flakey - and my fineoffset weather station is also going to the rpi via a 
>> powered usb hub.
>>
>>
>> On Monday, 31 October 2016 11:56:48 UTC+2, Jacek Skowroński wrote:
>>
>>> Have You tried and it work? Could You recommend any certain HDD model 
>>> and usb-hdd adapter model? Does it need external power connector?
>>>
>>> On Monday, October 31, 2016 at 10:39:57 AM UTC+1, gjr80 wrote: 
>>>>
>>>> Hi again, 
>>>>
>>>> As usual Google is your friend - search for 'boot raspberry Pi from USB 
>>>> disk' and you will find a plethora of replies, many of which have 
>>>> tutorials 
>>>> or links to tutorials.
>>>>
>>>> Gary
>>>>
>>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>  
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to