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.
My previous setup:
What I required:
- Kingston A400 SSD SA400S37/480G
- StarTech USB 3.1 to SATA III Adapter Cable
- official Raspberry 3.0A Pi Power Adapter
- an additional SD card (for the bootloader)
This is what I did … enjoy
- 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)
- Chose the SD card as storage
- Wrote the bootloader to the SD card
- 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.
IV) Restore old HA backup
There are many ways to restore a backup and I don’t want to explain here again.
I would just refer to this approach for instance: Home Assistant Tips - Restoring a Snapshot - YouTube
- So I actually created a new account on the fresh SSD installation
- Activated Samba share
- Connected to HA config store using smb
- uploaded the >2GB backup file
- triggered the restore via HA
The rest of the magic was automatically done. That’s it.
Hope that helps one or the other.