What happens with SD card if it gets unpowered during write?
Posted: Thu May 30, 2019 2:06 pm
- You have a data logger writing data to a file every 100ms.
- You send a fsync and fflush every 5 seconds
- After every hour you close the log and open a new one.
If there is a power down, could you loose more than the last 5 seconds of log?
Are the writes on the FAT sector atomic? or could the SD card need formatting if the power down happens in the middle of a write?
Thanks
- You send a fsync and fflush every 5 seconds
- After every hour you close the log and open a new one.
If there is a power down, could you loose more than the last 5 seconds of log?
Are the writes on the FAT sector atomic? or could the SD card need formatting if the power down happens in the middle of a write?
Thanks