Glad to hear you got it up an running
I have rebooted my Pi a few times and have also survived a few power outages while booting from SSD . This used to work with the older versions of the supervisor. I am version 3.7. I believe what you are describing only booting once is true now for the newer versions of the supervisor.
I moved to SSD as my SD cards were lasting only a few months and would never survive a power outage. I also have a small UPS for my Pi and have worked to keep my DB smaller. Iām thinking of moving away from the Pi and going to Proxmox once I can get my hands on an older laptop or PC to set that up on.
I also agree with your recommendation on the Google Drive backup. Its easy to setup and use.
Do you use an SD card for the boot partition? On a Pi3 you could Bypass the SD card completely - that was what I referred to - doing so was a one time thing on the Pi and cannot be undone. Personally I just have the boot partition on a really small SD card with rootfs
on the SSD.
No, the system was booting directly on the SSD. I had the system booting without SD card for some time. It all worked well but then one day, after another power cut, it just did not boot anymore.
After some research, I tried a couple of setup with the timeout file on the SD which never worked. Someone suggested the empty SD card and it worked (I donāt know why though). I tried again without and it would not boot. So I left the empty SD card inside until last week (after multiple updates on OS and home assistant in the mean time) where booting from the SSD just stopper working again, with or without SD card inserted.
Right now I am back to run the whole setup on from another SD card I had spare. I was not able to get the system to boot from the SSD again.
The SD card is also stuck with OS 3.12. I canāt trace why it does not install 4.1.
How did you get the boot partition on the SD only to then boot the system on the SSD?
That is not correct. Once the boot from USB flag is set you can boot from either the SD card or USB.
I finally managed to get the OS to 4.10 - I had to first update to 3.13, then 4.7 and finally to 4.10.
Now everything is running back to ānormalā apart that I use the SD card instead of the SSD. As soon as the booting it fixed I will try to swap to the SSD again.
@baz123 - I am still interested in your solution SD/SSD combination. Would you mind sharing some details?
I used this instructions to change a Pi4 from SD-card boot and data to a SD-card boot and SSD-data: https://community.home-assistant.io/t/hass-io-transfer-from-sd-card-to-ssd-or-usb/97452/243
It was easy to do it and it works since beginning of May this year with no problems.
I followed this
https://www.raspberrypi.org/forums/viewtopic.php?t=44177
However, I continue to have issues with the SSD disconnecting sometimes - donāt skimp and buy a good brand SSD!
Thanks for the link - Iāll look into it. Are you using HASSIO or running Home Assistant Supervised or in a docker on linux?
My SSD setup has been very reliable when working. I have a SanDisk 128GB with a case and itās been working well. The only issue is with the boot after power shutdown, which is an RPI/Home Assistant issue.
I am using a complete HassOS installation.
I just noticed my SSD is near full capacity, itās a 120GB so how can that be??
Check how many snapshots you have saved on it. Only thing I could think of that would create very large files.
Just in case anyone gets trouble in the future: I also had the problem, that a reboot didnāt work, only fresh starts would work booting from a SSD (cutting the power for various seconds).
What helped in my case:
- the solution outlined here: copy the
bootcode.bin
from the ssd to the root of an empty sd-card and adding a blank file namedtimeout
- adding 2 lines to the config.txt of home assistant (for example connecting the usb to a pc):
program_usb_timeout=1
andprogram_usb_timeout=1
(donāt forget to leave a blank line at the end of the file)
Now my Home Assistant Supervisor restarts reliably every time!
This solved the problem for me, with the note that I think youāve got a typo in your second bullet (both entries are the same), and they (probably) should be:
program_usb_boot_mode=1
program_usb_timeout=1