The topic is no longer new, but I have not found the reason and its solution!
If you turn off the power (just pull out the wire) then you can get a non-working system.
As I noticed, the files opened at the time of launch are broken. And some files such as /etc/boot/armbianEnv.txt in general, they are recorded with some kind of garbage!!!
Because of this, your settings fly off! For example, I use ttys1 and this option is registered armbianEnv.txt , but after the power loss, there is just terrible garbage in this file, as if the memory dump fell there!!! For example, I still use dotnet, so it also breaks down and does not start anymore!! When you try to run dotnet from the command line, you get a bus error! Of course, deleting and reinstalling it solves the problem. You may also get problems with apt!
I certainly expected this from windows. But for linux to be somewhat unreliable is a tin and a disappointment!!
Why does this happen and how to treat it???
Now I have made a sh script to check the integrity of files and restore them. But these are crutches and a shame for linux!!! Maybe arabian is crooked and unreliable?
or is it a disease of all systems???
I must say right away that the SD card is normal! This has been tested on 10 minicomputers. It's the same problem everywhere!