I tried to create a config file on my IoT device that is used for storing content when a user changes a setting via a menu. I found that every time the content of file is changed and then the system is unplugged, all of content in my config file disappears. This doesn't happen when I reboot or shutdown correctly but my device cannot avoid the user unplugging it without shutdown or reboot.
My Raspbian version is November 2016 Anyone know what I should do?
DisplayBrightness=100
and them I change 100 to 60 via c++ program and remove plug off. When I start my Rpi this content is disappeared and size of my Config.txt is zero.
However if type sudo reboot or sudo shutdown this line of content still there !!
– 3ORZ Sep 27 '17 at 03:43