Prevent OS damage

151 views
Skip to first unread message

m.santi...@gmail.com

unread,
Aug 29, 2019, 3:23:37 PM8/29/19
to BeagleBoard
Dear sirs,

We are working in a new project with a beaglebone black as main control system.

Our first difficult is wich OS or software arquitecture used to prevent system corruption for multiple "not controlled shutdowns" (the system will work inside a machine and the way to turn it off is cut electrical source) Battery backup system is not a valid choice for us. 
RAM OS? More ideas?

Thanks in advance!

Robert Nelson

unread,
Aug 29, 2019, 4:23:43 PM8/29/19
to Beagle Board, m.santi...@gmail.com
Yeah use a little pacakge called "overlayroot" newer image have it
installed by default..

If you dont:

sudo apt update
sudo apt install overlayroot

Then make sure to regenerate the initrd..

sudo update-initramfs -uk `uname -r`

Then in /boot/uEnv.txt append this variable to your existing cmdline settings.

cmdline=(existing settings) overlayroot=tmpfs

Then reboot, your system is now "Read Only"..


So Beyond that, what's really really nice about overlayroot, you can
login and actually write stuff to the drive by doing:

sudo overlayroot-chroot

Regards,

--
Robert Nelson
https://rcn-ee.com/

Yiling Cao

unread,
Aug 30, 2019, 1:52:27 AM8/30/19
to beagl...@googlegroups.com, m.santi...@gmail.com
or you can use buildroot with read-only fs.

but ultimately we have made one 18650 lithium battery-backed UPS.

when power is out, gracefully shutdown and when power is good, start the am335x. giving us peace of mind.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYjEhoi2Xc0oe23WnhHjmNox1%3DZSp%3DAvU5pnj85tbQvxMg%40mail.gmail.com.


--
Reply all
Reply to author
Forward
0 new messages