How to revive dead sytem

Hi everyone! If you are dealing with the same problem as I am - you have a non-booting system and you want to fix/restore it continue reading.

So how does it happen that you have a non-booting system? Probably you did something wrong, maybe you were hacking so much that you broke that mainframe, or maybe you just updated the system.
Naturally, you searched the oceans of the internet, and read these forum posts for hours, but all you see is “maybe it’s your card” blames as if you didn’t buy a recommended performance card and used it for like 6 months before the crash. Or the awesome tips like “just install fresh” followed by the thought of making all the automation all over again scare you. Or the empty tip for restoring from backup - what backup?

Whatever the reason for your crash and frustration with searching for a solution - here you go:

  1. First of all backup your old card.
  2. Start over as was already suggested by millions of posts.
  3. Mount your backup.img
  4. Copy supervisor folder
  5. Put the SD back in and bootup
  6. Rebuild supervisor
  7. Kalm!

In details:

  1. In a disk manager find something like “create disk image” or try to follow these steps
  2. Follow the guide
  3. Mounting:
    3.a) sudo kpartx -a -v backup.img
    3.b) sudo mkdir /mnt/backup
    3.c) sudo mount /dev/mapper/loop11p7 /mnt/backup
  4. sudo cp -r /mnt/backup/supervisor/* /run/media/$USER/hassos-data/supervisor/
  5. Stuff the SD in your RPi and bootup!
  6. Rebuild supervisor:
    6.a) Connect display via miniHDMI and keyboard
    6.b) After booting type in the console: supervisor rebuild
  7. Enjoy!

I know this probably isn’t a perfect and complete solution, but the important stuff is there - profiles, addons, scripts, automation, etc.

If you have a better solution or some extra steps that could benefit this process, please let us know in the comments.

1 Like