# Corrupted SD card on emonpi after power cut

**URL:** <https://community.openenergymonitor.org/t/corrupted-sd-card-on-emonpi-after-power-cut/16471>\
**Category:** emonSD\
**Created:** [10 January 2021 19:38 UTC](https://community.openenergymonitor.org/t/corrupted-sd-card-on-emonpi-after-power-cut/16471 "2021-01-10T19:38:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jez](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/cc9497/32.png) [@Jez](https://community.openenergymonitor.org/u/Jez)\
**Post date:** [10 January 2021 19:38 UTC](https://community.openenergymonitor.org/t/corrupted-sd-card-on-emonpi-after-power-cut/16471/1 "2021-01-10T19:38:15Z")

</div>

Just had a power cut which seems to have corrupted the SD card on my emonpi, with the emonpi screen stuck on “raspberry pi booting…”. It is still however sending data to [emoncms.org](http://emoncms.org) OK. I’ve ordered a new pre-loaded card from the OEM shop. Anything else I could try to get the emonpi to boot while I’m waiting for the new card?  
Jez

---

<div class="post-metadata">

**Author:** ![JJC](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/a9adbd/32.png) [@JJC](https://community.openenergymonitor.org/u/JJC)\
**Post date:** [10 January 2021 20:03 UTC](https://community.openenergymonitor.org/t/corrupted-sd-card-on-emonpi-after-power-cut/16471/2 "2021-01-10T20:03:18Z")

</div>

Hi,

have you tried a controlled re-boot?

John

---

<div class="post-metadata">

**Author:** ![Jez](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/cc9497/32.png) [@Jez](https://community.openenergymonitor.org/u/Jez)\
**Post date:** [11 January 2021 06:59 UTC](https://community.openenergymonitor.org/t/corrupted-sd-card-on-emonpi-after-power-cut/16471/3 "2021-01-11T06:59:20Z")

</div>

John - what is a controlled reboot? I have tried pushing the reset button on the emonpi but it doesn’t respond.  
Jez

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [11 January 2021 07:39 UTC](https://community.openenergymonitor.org/t/corrupted-sd-card-on-emonpi-after-power-cut/16471/4 "2021-01-11T07:39:09Z")

</div>

> [@Jez](#):
>
> Just had a power cut which seems to have corrupted the SD card on my emonpi, with the emonpi screen stuck on “raspberry pi booting…”. It is still however sending data to [emoncms.org](http://emoncms.org) OK.

If it is still sending to [emoncms.org](http://emoncms.org), it is likely to be OK.

Can you SSH in?

---

<div class="post-metadata">

**Author:** ![Jez](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/cc9497/32.png) [@Jez](https://community.openenergymonitor.org/u/Jez)\
**Post date:** [11 January 2021 08:33 UTC](https://community.openenergymonitor.org/t/corrupted-sd-card-on-emonpi-after-power-cut/16471/5 "2021-01-11T08:33:56Z")

</div>

Yep - I can SSH in using putty. I can also log on to the local emoncms on the emonpi. The image is quite old (9.8.25 from 2017). I normally just use [emoncms.org](http://emoncms.org) for my data so rarely access the local system.  
Jez

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [11 January 2021 15:52 UTC](https://community.openenergymonitor.org/t/corrupted-sd-card-on-emonpi-after-power-cut/16471/6 "2021-01-11T15:52:38Z")

</div>

So definitely suspect the SD card but may also be because of the old image and the message to the LCD not getting updated correctly.

Had you run an Emoncms update at all?

Update the image and use the USB method to restore your data & settings might well solve the issue.

---

<div class="post-metadata">

**Author:** ![Jez](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/cc9497/32.png) [@Jez](https://community.openenergymonitor.org/u/Jez)\
**Post date:** [11 January 2021 19:53 UTC](https://community.openenergymonitor.org/t/corrupted-sd-card-on-emonpi-after-power-cut/16471/7 "2021-01-11T19:53:49Z")

</div>

Thanks Brian - I’ll try the update option in a few days time. I’ll let it run as it is for the time being as I’m running a long term experiment on my heat pump and don’t want to risk losing the data - and the data is still being uploaded to [emoncms.org](http://emoncms.org) despite the emonpi screen still showing the booting message  
Jez

---

<div class="post-metadata">

**Author:** ![pb66](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/pb66/32/27_2.png) [@pb66](https://community.openenergymonitor.org/u/pb66)\
**Post date:** [12 January 2021 00:01 UTC](https://community.openenergymonitor.org/t/corrupted-sd-card-on-emonpi-after-power-cut/16471/8 "2021-01-12T00:01:12Z")

</div>

> [@Jez](#):
>
> I have tried pushing the reset button on the emonpi but it doesn’t respond.

The push button and LCD are both managed by the same script so it could be that just that one service is not working or has an issue. If you check the emoncms admin page does it show any issues with the lcd service?

There was a issue with updating the lcd service many moons ago where the config file was moved or altered and users had to do a manual edit. Maybe someone else has better recollection.

I certainly wouldn’t assume the image is automatically a write off just because the lcd and button isn’t working, especially if it’s still posting to [emoncms.org](http://emoncms.org).

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [12 January 2021 08:00 UTC](https://community.openenergymonitor.org/t/corrupted-sd-card-on-emonpi-after-power-cut/16471/9 "2021-01-12T08:00:05Z")

</div>

> [@pb66](#):
>
> I certainly wouldn’t assume the image is automatically a write off just because the lcd and button isn’t working, especially if it’s still posting to [emoncms.org](http://emoncms.org).

I’d agree, but it is running 9.x which is a long way behind so trying to debug it is a fool’s errand.

> [@pb66](#):
>
> There was a issue with updating the lcd service many moons ago where the config file was moved or altered and users had to do a manual edit.

I don’t think an (emoncms) update was done to have changed this.
