Actually, the SD card is fine! Linux itself breaks files (writes garbage), I already had to write a script that checks its integrity before launching applications. This is a disgrace for Linux. Even Windows does not allow itself to do this. I have not found the reason for such stupid antics in Linux, perhaps it is buried deep somewhere, maybe at the kernel level. But this of course nullifies the stability of the system. At startup, I always check /boot/armbianEnv.txt , because it breaks first, well, if you get something like a bus error when you try to run the file, then do not rush to throw out the flash drive - this is a 99% corrupted file! And if you overwrite it, then everything will work. I think all sorts of scandisk do not solve the problem here, because the file is normal, it's just that garbage is already written in its body