How to recover from a crash, when HA does not start?

Hi,

I am using HAOS for a few month on a Raspberry Pi4

Unfortunately after some problems with the power supply the SD card has some Problems. The Pi won’t start. I was able to recover the /homeassistant folder.

Is this sufficient ?

What are the correct steps to bring ist back to life ?

Ciao
bama

Connect a monitor to see what is going on. If you can’t get it to run after that, a reinstall + restore from backup is probably your best bet.

Thanks, actual I am waiting for the HDMI cable for the Pi I ordered from amazon yesterday.

Hopefully the backups are recoverable from the sd card. The only folder I can access ist the home assistant folder.

I should know better but I have stored all the backups on the SD card :frowning:

If you are using windows you can get apps which allow you to read linux ext drives in explorer. Like this one. I have not tried it so can’t comment on whether it works or not. You will then be able to view the backup folder on your SD card.

When you have it working setup something like google drive backup to save a lot of this hassle.

Yeah, backup on the same media as the system is not best practice. Move them to another storage device and/or cloud when you get it back up running.

I have reactivated an old linux notebook and when trying to mount the data volume I got a Bad Superblock error.

After fsck /dev/sdb8 I was able to mount the data volume. I copied all .tar files from /supervisor/backup. Hopefully this backup set is able to restart the Homeassistant.

After connecting the Pi to a display it shows that booting is no problem the system ended in the ha cli.

Where could I go from this point the HA is still not available.

Is it pingable? Usually these issues point to a faulty SD card.

Nope, no WLAN registration, no DHCP, no PING :frowning:

Homeassistant is running again :smiley:

After a lot of experimenting, I gave up and used RaspberryImager to create a new SD card.
It looks like the partial backup was sufficient to recover from backup.

fsck /dev/sdb7 does the trick to be able to recover the /supervisor/backup folder.

Thanks.