I am running HA in Pi4 an using SanDisk SD card (64GB). It happened the second time now that the SD card got damaged and I lost quite some work (no discussion about backups etc. … now I scheduled regular backups to not lose to much work).
Question regarding the hardware setup to you:
Instead of SD card, is there any other supported option for storage on Raspberry Pi to run Home Assistant? I found discussions like THIS, but @frenck mentioned somewhere that SSD is not supported for RPi. Or am I wrong?
I am looking for a stable, reliable and long-term setup, which is performant and fully supported by Home Assistant. Ideally I get enough space with that in order to store all the required data.
The problem with the solution in my guide is not stability. There are hardware combinations that refuse to run in the first place or only run with tricks. While other users (actually most of them) never experience any problem.
The problems that are described are strange. And so far it has not been possible to nail down a single factor to reproduce them.
But if you get it running it will be very stable and reliable. Just use a recommended hardware (or check the list that I linked) and your chances are very high to succeed.
My own system never failed within more than two years.
Today I received the above mentioned components and directly tried to replace my SD card by the new SSD (480GB). It worked perfectly fine and it only took me a bit more than 1 hour to get the system running as before, but now using SSD. Thanks to @Jpsy for his article.
optionally: created a backup of the existing HA installation & data and stored it in my local network / machine (I already did this on a daily basis, so I did not lose time).
Shut down Home Assistant + Raspberry Pi 4 and unplugged all devices (incl. SD card with current HA installation)
Exchanged the old Power Adapter by the new one (3A)
II) Exchanged EEPROM bootloader on Pi (only as of Pi4 !!)
Installed Raspberry Pi Imager (download HERE) on my notebook
Connected the additional SD card using my USB SD card reader to my notebook
Started Raspberry Pi Imager on my notebook
Selected Misc utility images > Bootloader > USB Boot (Boot from USB if available, otherwise boot from SD Card as OS)
Removed SD card (containing bootloader) from notebook and plugged it into Pi4
Started Pi4 / plugged in power supply
If you have connected your monitor using HDMI, you will actually see nothing (I just saw a green screen, that’s it). In the background the EEPROM was adapted and the boot sequence changed (now USB is the primary).
III) Prepared SSD with Home Assistant installation
Combined StarTech USB 3.1 to SATA III Adapter Cable + Kingston A400 SSD SA400S37/480G and plugged them into my notebook
From my notebook I followed the sequence as described HERE to install Home Assistant Operating System on the SSD.
After writing the OS to SSD …
Switch off the Pi, remove the bootloader SD and connect the SSD (containing the HA image) via USB 3.
Switch on the Pi
Now the installation is being prepared as you already know from the SD card installation before. If you try to connect to HA using web browser the system will tell you that it needs some time to get ready.