I'm going to be embedding Ubuntu on an embedded device. I'm using a combination of aufs and a read only root to ensure that my root fs doesn't get corrupt. However, I want to be able to store logs, so I'm making a special rw partition for
/var/log. The device is going to undergo hundreds of power failure events.
In the event that the partition gets corrupted due to power failure, I want the system to work properly anyway. I'd like the partition to automatically get reformatted in case of corruption. Is there an easy way to configure this?