Sunday, 15 February 2015

crash - Raspberry Pi shutdown destroys file system -



crash - Raspberry Pi shutdown destroys file system -

i trying write little c programme witch reads out gpio pin shutdown pi externally. triggering of signal working well. programme started lxde autostart application. if programme detects shutdown signal it's performing:

sync(); system("halt");

why programme harm ext4 file scheme after couple of reboots. there no fixed number of reboots necessary harm system. don't see difference writing halt command line. i'm using newest version of firmware(last update today) , kernel date(last update today).

does have thought it?

this app idea, wonder nil existing...

i think problem "halt" command. shuold utilize explicit command "shutdown -h now" instead.

for farther reading see anthony lawrence

crash filesystems shutdown raspberry-pi

No comments:

Post a Comment