Embedded Linux won't reboot - how to fix and repair

I have a lot of embedded systems running in our lab or in my home, all of them either as Raspberries or selfmade PCB with Yocto. Sometimes I can't reboot some systems, I think its the journald which causes some issues with SSD Cards, the error-message usually is:
Failed to open /dev/initctl

Anyhow, if you have this issue - a reboot can be force-forced:
systemctl --force --force reboot

Since a forced reboot does not sync the journal, the system typically comes up with a damaged FS. The remote fsck can be initiated by extending the command above with

sudo tune2fs -i 1m /dev/DISK && touch /forcefsck && systemctl --force --force reboot

(assumed you have access to a shell, via SSH or local access). When all goes fine, the system comes up with a clean FS. All this fuss comes from the SSD r/w actions, a well designed IoT embedded devices should have a flash mem part for the running OS.

Comments

  1. Anonymous30 July, 2020

    What an awesome written by you! I am too glad to read this kind of informative blog article. Thanks to sharing this with us, really thank you!!!!!!
    Dubai VPS Server

    ReplyDelete
  2. Nicely you explained everything in your article. Thanks for your information, this is nice and helpful… Definitely going to share this article to my friends.
    Germany VPS Server

    ReplyDelete
  3. Nicely you explained everything in your article. Thanks for your information, this is nice and helpful… Definitely going to share this article to my friends.
    Linux VPS Hosting

    ReplyDelete
  4. Anonymous30 June, 2021

    This comment has been removed by the author.

    ReplyDelete
  5. Anonymous02 July, 2021

    Nicely you are sharing your thoughts & what you do in your life. Thanks for sharing your views with us.
    Get every web hosting needs from USA VPS Hosting . It's easy to use & designed to fulfill all your web needs.

    ReplyDelete
  6. Anonymous05 July, 2021

    This is a great post and the information written in this post is true and well-founded because I got a different feeling after knowing its complete information and all this is possible thanks to internet's contribution Thanks for sharing this blog if you want to know something about server hosting then see you should know about USA VPS Hosting and how it can be important for this modern world. Thanks once again.



    ReplyDelete

Post a Comment

Popular posts from this blog

Deal with corrupted messages in Apache Kafka

Hive query shows ERROR "too many counters"

Life hacks for your startup with OpenAI and Bard prompts