# Configure BalenaOS for hard shutdown without data loss?

**URL:** <https://forums.balena.io/t/configure-balenaos-for-hard-shutdown-without-data-loss/366342>\
**Category:** balenaSound\
**Tags:** raspberrypi4\
**Created:** [January 7, 2023, 10:07am UTC](https://forums.balena.io/t/configure-balenaos-for-hard-shutdown-without-data-loss/366342 "2023-01-07T10:07:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tilllt](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/tilllt/32/8664_2.png) [@tilllt](https://forums.balena.io/u/tilllt)\
**Post date:** [January 7, 2023, 10:07am UTC](https://forums.balena.io/t/configure-balenaos-for-hard-shutdown-without-data-loss/366342/1 "2023-01-07T10:07:38Z")

</div>

For RPi’s that i am using like embedded devices, i like to configure them with the overlay filesystem, so they are immune to “just switiching them off”, instead of a proper shutdown. Is there a best practice on how to do it with BalenaOS & balenasound on a (i.e.) RPi 4?

Cheers

---

<div class="post-metadata">

**Author:** ![maggie0002](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@maggie0002](https://forums.balena.io/u/maggie0002)\
**Post date:** [January 10, 2023, 4:51pm UTC](https://forums.balena.io/t/configure-balenaos-for-hard-shutdown-without-data-loss/366342/2 "2023-01-10T16:51:19Z")

</div>

Hi,

balenaOS is already optimised to avoid issues when the power is pulled by having a read-only filesystem. There is always going to be some risk with SD cards, but there shouldn’t be any reason with a balenaSound on balenaOS setup that you would require any further action as balenaSound does very little writing to disk. Unless you have some specific setup that you think may require it?
