Hi,
We are testing our orange pi one in critical external environments like warehouses, manufacturing and other.
In some cases, even if the good case there is a misconnection between the sd card and the orange pi one.
Connected in ssh i can access the orange pi but a lot of command cannot responde anymore, like ls, top, htop, tail and others.
Even the reboot shows me the input-output-error, and the only way to reboot the hardware is using "echo b > /proc/sysrq-trigger".
When this happens, i tried create a cron with 'at' or background jobs using sh like './script.sh &' with the content "echo b > /proc/sysrq-trigger" but still not works.
My question is, when i remove the sd card from the board a lot of i/o features are disable.
How can i identity and reboot when this happen automatically?
i am using orange pi one based on linux 4.14 ubuntu xenial.
Thanks