# Ensuring proper functionality after power loss?

**URL:** https://dietpi.com/forum/t/ensuring-proper-functionality-after-power-loss/5543
**Category:** General Discussion
**Created:** [27 July 2021 06:40 UTC](https://dietpi.com/forum/t/ensuring-proper-functionality-after-power-loss/5543 "2021-07-27T06:40:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![gjbh7qu](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/41988e/32.png) [@gjbh7qu](https://dietpi.com/forum/u/gjbh7qu)
#### Post date: [27 July 2021 06:40 UTC](https://dietpi.com/forum/t/ensuring-proper-functionality-after-power-loss/5543/1 "2021-07-27T06:40:05Z")

</div>

Hi!

I recently set up DietPi on an Odroid C2. Works very well and I’m really happy with its performance and functionality.  
I’m about to go on vacation, and I’m worried about potential power loss situations that can mess with the DietPi running both unbound and Pi-hole.  
What should I do to ensure a proper reboot/resume of operations after an unexpected power loss?

Thanks.

---

<div class="post-metadata">

### Author: ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)
#### Post date: [28 July 2021 01:10 UTC](https://dietpi.com/forum/t/ensuring-proper-functionality-after-power-loss/5543/2 "2021-07-28T01:10:24Z")

</div>

Best thing to do would be to build/buy a small DC UPS setup for your rig…this way if the power blips it doesn’t just cut off the SBC risking corruption of the SDCARD…however for long term power outtage it would take something triggering the SBC to do a graceful shudown as to sync and unmount the drives

Doing some googling found this  
[https://corpshadow.biz/odroid/odroidups3-for-odroid-c1-c1p-c2](https://corpshadow.biz/odroid/odroidups3-for-odroid-c1-c1p-c2)  
and this  
[https://wiki.odroid.com/odroid-xu4/application\_note/odroid-hc2\_with\_minidcups](https://wiki.odroid.com/odroid-xu4/application_note/odroid-hc2_with_minidcups)

Coincidentally…this should work for any 5VDC SBC’s as long as the output current is great enough to keep it running

This is a [multiple voltage output battery backup](https://www.amazon.com/Battery-Uninterruptable-Function-100V-240V-Wireless/dp/B07W8MCBMS/ref=sr_1_7_sspa?dchild=1&keywords=7800mah+mini+dc+ups.&qid=1627434309&sr=8-7-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEzR0dXUkZCRjBDNkMzJmVuY3J5cHRlZElkPUEwODI3MjMyMVZRTkhBU1hFMFlVUyZlbmNyeXB0ZWRBZElkPUEwMTkxNjI5MldJQ0wwNzdZUklONiZ3aWRnZXROYW1lPXNwX210ZiZhY3Rpb249Y2xpY2tSZWRpcmVjdCZkb05vdExvZ0NsaWNrPXRydWU=)

This is a [DIY board](https://www.amazon.com/Uninterrupted-System-Keenso-Expansion-Raspberry/dp/B07RT2SSD6/ref=sr_1_17_sspa?dchild=1&keywords=7800mah+mini+dc+ups.&qid=1627434309&sr=8-17-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEzR0dXUkZCRjBDNkMzJmVuY3J5cHRlZElkPUEwODI3MjMyMVZRTkhBU1hFMFlVUyZlbmNyeXB0ZWRBZElkPUEwNzYyMjU2M1JMWDJBVlJTT1MwTSZ3aWRnZXROYW1lPXNwX210ZiZhY3Rpb249Y2xpY2tSZWRpcmVjdCZkb05vdExvZ0NsaWNrPXRydWU=) you can provide whatever “battery” arrangement and provides actual UPS functionality  
There are bucketloads of these out there if you search for them (believe it or not cell phone batteries work GREAT as UPS batteries in this fashion)

[Amazon link for RPi UPS](https://www.amazon.com/s?k=RPI+UPS&ref=nb_sb_noss_2)

---

<div class="post-metadata">

### Author: ![gjbh7qu](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/41988e/32.png) [@gjbh7qu](https://dietpi.com/forum/u/gjbh7qu)
#### Post date: [28 July 2021 07:12 UTC](https://dietpi.com/forum/t/ensuring-proper-functionality-after-power-loss/5543/3 "2021-07-28T07:12:48Z")

</div>

Thanks for the insight. I’ll look into UPS solutions.

But setting the UPS aside for a moment, what’s the default “post power loss” procedure for an Odroid C2 w/ DietPi?  
Does it return to normal operation after the power is restored (assuming there was no SDcard corruption, etc.)?

---

<div class="post-metadata">

### Author: ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)
#### Post date: [28 July 2021 08:48 UTC](https://dietpi.com/forum/t/ensuring-proper-functionality-after-power-loss/5543/4 "2021-07-28T08:48:10Z")

</div>

Yes, it will boot back up as usual.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [28 July 2021 10:49 UTC](https://dietpi.com/forum/t/ensuring-proper-functionality-after-power-loss/5543/5 "2021-07-28T10:49:56Z")

</div>

usually it should, as long as there is no data corruption. 😉
