Ensuring proper functionality after power loss?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
gjbh7qu
Posts: 2
Joined: Tue Jul 27, 2021 8:36 am

Ensuring proper functionality after power loss?

Post by gjbh7qu »

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.
User avatar
WarHawk
Posts: 773
Joined: Thu Jul 20, 2017 8:55 am

Re: Ensuring proper functionality after power loss?

Post by WarHawk »

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/odroidups ... -c1-c1p-c2
and this
https://wiki.odroid.com/odroid-xu4/appl ... _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

This is a DIY board 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
gjbh7qu
Posts: 2
Joined: Tue Jul 27, 2021 8:36 am

Re: Ensuring proper functionality after power loss?

Post by gjbh7qu »

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.)?
User avatar
trendy
Posts: 360
Joined: Tue Feb 25, 2020 2:54 pm

Re: Ensuring proper functionality after power loss?

Post by trendy »

Yes, it will boot back up as usual.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Ensuring proper functionality after power loss?

Post by Joulinar »

usually it should, as long as there is no data corruption. ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply