HASS.IO -> transfer from SD card to SSD or USB

1 Like

I have been able to boot via SSD on my RPi 4 but when I restore my snapshot the system never boots back up again. Are we able to restore snapshots from version 4 OS when using version 5 dev 64bit on the SSD or do I need to start from scratch again?

edit: I can SSH in but i still canā€™t access it from a webpage. Here is the Supervisor log from Putty From the point I did a restore. Nothing stands out to me.

20-11-07 19:25:16 INFO (MainThread) [supervisor.snapshots] Partial-Restore 80eb314d start
20-11-07 19:25:17 INFO (MainThread) [supervisor.snapshots] Restoring 80eb314d Docker Config
20-11-07 19:25:17 INFO (SyncWorker_6) [supervisor.docker.interface] Stopping homeassistant application
20-11-07 19:26:18 INFO (MainThread) [supervisor.snapshots] Restoring 80eb314d folders
20-11-07 19:26:18 INFO (SyncWorker_2) [supervisor.snapshots.snapshot] Restore folder homeassistant
20-11-07 19:26:24 INFO (SyncWorker_2) [supervisor.snapshots.snapshot] Restore folder homeassistant done
20-11-07 19:26:24 INFO (MainThread) [supervisor.snapshots] Restoring 80eb314d Repositories
20-11-07 19:26:24 INFO (MainThread) [supervisor.store] Loading add-ons from store: 67 all - 0 new - 0 remove
20-11-07 19:26:24 INFO (MainThread) [supervisor.snapshots] Restoring 80eb314d old add-ons
20-11-07 19:26:24 INFO (MainThread) [supervisor.addons.addon] Restore config for addon a0d7b954_adb
20-11-07 19:26:24 INFO (MainThread) [supervisor.addons.addon] Restore/Install of image for addon a0d7b954_adb
20-11-07 19:26:24 INFO (SyncWorker_6) [supervisor.docker.interface] Downloading docker image hassioaddons/adb-aarch64 with tag 0.6.3.
20-11-07 19:26:37 INFO (MainThread) [supervisor.addons.addon] Restoring data for addon a0d7b954_adb
20-11-07 19:26:39 INFO (SyncWorker_3) [supervisor.docker.addon] Starting Docker add-on hassioaddons/adb-aarch64 with version 0.6.3
20-11-07 19:26:39 INFO (MainThread) [supervisor.addons] Detect new Add-on after restore a0d7b954_adb
20-11-07 19:26:39 INFO (MainThread) [supervisor.api.security] /host/info access from a0d7b954_adb
20-11-07 19:26:51 INFO (MainThread) [supervisor.addons.addon] Restore config for addon a0d7b954_adguard
20-11-07 19:26:51 INFO (MainThread) [supervisor.addons.addon] Restore/Install of image for addon a0d7b954_adguard
20-11-07 19:26:51 INFO (SyncWorker_6) [supervisor.docker.interface] Downloading docker image hassioaddons/adguard-aarch64 with tag 2.6.0.
20-11-07 19:26:58 INFO (MainThread) [supervisor.addons.addon] Restoring data for addon a0d7b954_adguard
20-11-07 19:27:04 INFO (SyncWorker_6) [supervisor.docker.addon] Starting Docker add-on hassioaddons/adguard-aarch64 with version 2.6.0
20-11-07 19:27:04 INFO (MainThread) [supervisor.addons] Detect new Add-on after restore a0d7b954_adguard
20-11-07 19:27:05 INFO (MainThread) [supervisor.addons.addon] Restore config for addon core_mosquitto
20-11-07 19:27:05 INFO (MainThread) [supervisor.addons.addon] Restore/Install of image for addon core_mosquitto
20-11-07 19:27:05 INFO (SyncWorker_6) [supervisor.docker.interface] Downloading docker image homeassistant/aarch64-addon-mosquitto with tag 5.1.
20-11-07 19:27:06 INFO (MainThread) [supervisor.api.security] /host/info access from a0d7b954_adguard
20-11-07 19:27:08 INFO (MainThread) [supervisor.discovery] Sending discovery to Home Assistant adguard from a0d7b954_adguard
20-11-07 19:27:08 INFO (MainThread) [supervisor.discovery] Discovery 31256919221247eea6be43374bde3235 message ignore
20-11-07 19:27:10 INFO (MainThread) [supervisor.api.security] /dns/info access from a0d7b954_adguard
20-11-07 19:27:13 INFO (MainThread) [supervisor.addons.addon] Restoring data for addon core_mosquitto
20-11-07 19:27:14 INFO (SyncWorker_6) [supervisor.docker.addon] Starting Docker add-on homeassistant/aarch64-addon-mosquitto with version 5.1
20-11-07 19:27:14 INFO (MainThread) [supervisor.addons] Detect new Add-on after restore core_mosquitto
20-11-07 19:27:14 INFO (MainThread) [supervisor.addons.addon] Restore config for addon a0d7b954_nodered
20-11-07 19:27:14 INFO (MainThread) [supervisor.addons.addon] Restore/Install of image for addon a0d7b954_nodered
20-11-07 19:27:14 INFO (SyncWorker_5) [supervisor.docker.interface] Downloading docker image hassioaddons/node-red-aarch64 with tag 7.2.7.
20-11-07 19:27:16 INFO (MainThread) [supervisor.services.modules.mqtt] Set core_mosquitto as service provider for mqtt
20-11-07 19:27:16 INFO (MainThread) [supervisor.discovery] Sending discovery to Home Assistant mqtt from core_mosquitto
20-11-07 19:27:16 INFO (MainThread) [supervisor.discovery] Discovery ba9640f78de243bb931bf6e0b07de7c1 message ignore
20-11-07 19:27:46 INFO (MainThread) [supervisor.addons.addon] Restoring data for addon a0d7b954_nodered
20-11-07 19:27:47 INFO (SyncWorker_0) [supervisor.docker.addon] Starting Docker add-on hassioaddons/node-red-aarch64 with version 7.2.7
20-11-07 19:27:47 INFO (MainThread) [supervisor.addons] Detect new Add-on after restore a0d7b954_nodered
20-11-07 19:27:48 INFO (MainThread) [supervisor.addons.addon] Restore config for addon a0d7b954_ssh
20-11-07 19:27:48 INFO (MainThread) [supervisor.addons.addon] Restore/Install of image for addon a0d7b954_ssh
20-11-07 19:27:48 INFO (SyncWorker_0) [supervisor.docker.interface] Downloading docker image hassioaddons/ssh-aarch64 with tag 7.7.0.
20-11-07 19:27:49 INFO (MainThread) [supervisor.api.security] /host/info access from a0d7b954_nodered
20-11-07 19:27:52 INFO (MainThread) [supervisor.api.security] /dns/info access from a0d7b954_nodered
20-11-07 19:28:25 INFO (MainThread) [supervisor.addons.addon] Restoring data for addon a0d7b954_ssh
20-11-07 19:28:25 WARNING (SyncWorker_0) [supervisor.docker.addon] SSH & Web Terminal running with disabled protected mode!
20-11-07 19:28:26 INFO (SyncWorker_0) [supervisor.docker.addon] Starting Docker add-on hassioaddons/ssh-aarch64 with version 7.7.0
20-11-07 19:28:26 INFO (MainThread) [supervisor.addons] Detect new Add-on after restore a0d7b954_ssh
20-11-07 19:28:26 INFO (MainThread) [supervisor.addons.addon] Restore config for addon core_samba
20-11-07 19:28:26 INFO (MainThread) [supervisor.addons.addon] Restore/Install of image for addon core_samba
20-11-07 19:28:26 INFO (SyncWorker_0) [supervisor.docker.interface] Downloading docker image homeassistant/aarch64-addon-samba with tag 9.3.0.
20-11-07 19:28:27 INFO (MainThread) [supervisor.api.security] /host/info access from a0d7b954_ssh
20-11-07 19:28:31 INFO (MainThread) [supervisor.addons.addon] Restoring data for addon core_samba
20-11-07 19:28:32 INFO (SyncWorker_0) [supervisor.docker.addon] Starting Docker add-on homeassistant/aarch64-addon-samba with version 9.3.0
20-11-07 19:28:32 INFO (MainThread) [supervisor.addons] Detect new Add-on after restore core_samba
20-11-07 19:28:33 INFO (MainThread) [supervisor.addons.addon] Restore config for addon a0d7b954_tautulli
20-11-07 19:28:33 INFO (MainThread) [supervisor.addons.addon] Restore/Install of image for addon a0d7b954_tautulli
20-11-07 19:28:33 INFO (SyncWorker_6) [supervisor.docker.interface] Downloading docker image hassioaddons/tautulli with tag 1.5.1.
20-11-07 19:28:55 INFO (MainThread) [supervisor.addons.addon] Restoring data for addon a0d7b954_tautulli
20-11-07 19:28:57 INFO (SyncWorker_1) [supervisor.docker.addon] Starting Docker add-on hassioaddons/tautulli with version 1.5.1
20-11-07 19:28:57 INFO (MainThread) [supervisor.addons] Detect new Add-on after restore a0d7b954_tautulli
20-11-07 19:28:57 INFO (SyncWorker_1) [supervisor.docker.interface] Starting homeassistant
20-11-07 19:28:57 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
20-11-07 19:28:59 INFO (MainThread) [supervisor.api.security] /host/info access from a0d7b954_tautulli
20-11-07 19:30:44 INFO (MainThread) [supervisor.api.security] /supervisor/logs access from a0d7b954_ssh

I went from microsd 32 bit HA version 4 to ssd 64bit HA version 5.3 bega and restored the snapshot. Been running smooth for the last 4 days now (thatā€™s when I made the switch). So 0 issues on my end.

Did you use onboarding to restore the snapshot?

I downloaded the snapshot using samba first. Then when installed HA on new SSD, I just uploaded it through the GUI in HA snapshots and restored it.

The reason I asked is that the new version supports snapshot restore in onboarding. I just donā€™t understand how to get the file on to my pi . It would make it much easier as you install HA and restore. No other programs would need to be installed and setup.

I have tried via the onboarding and the Google Drive Snapshot Backup plugin. For onboarding i just downloaded my snapshot for Google Drive and uploaded it.

Unfortunately in my case neither way has worked.

Did you wait a long, yes really long time? Or didnā€™t it even start?

Two weeks ago I saved my last snapshot in 4.x 32bit from my Pi 4 and started with 5.4 64bit on a SSD in my Pi 4. There I selected the snapshot at onboarding and waited 1 hour or so, and then it was ready. The only thing I had to do was to delete the old database (home-assistant_v2.db), as this was not working.
And I had to reenable I2C, as the integration for the Argon One case (really the best case for the Pi 4) uses it.

Yes I even let it sit overnight twice now using a different snapshot each time.

Since I can SSH in and see the log it just looks like it never startsā€¦

ā€¦Starting homeassistant
ā€¦Wait until Home Assistant is ready

There are two options when using the snapshot at onboarding. I donā€˜t remeber the correct names. One is to reset all and use the snapshot and the other is without reset all. I used the one without reset all, because it was a fresh installation.

Yeah it was wipe and restore I think. I didnā€™t choose that either thinking the same logic as youā€¦

Thinking I may have to rebuild everything

since I switched to ssd it works regularly but when I restart the system freezes and to start it I have to disconnect the power only then it restarts. why it happens? RPI 4 4gb ram 64bit

I have the same also with SD card (I am not on SSD yet) - not always but it happens so maybe it is not SSD related.

I have to be honest with the sd it was very stable to me, I only complained about the slowness and over the 4/5 years that I used the sd in a couple of occasions it demagnetized me losing everything so I decided for an SSD. but i am disappointed with this problem which sometimes does not restart.

I have no idea what the problem may be with you. Iā€™ve started booting ssd since version 5.0 64 bit. Today I am on version 5.4 64 bit and never any problem.
Restart is fine and everything works fine. Rpi4 4 Gb + x825 board + 120 Gb ssd drive

Booting from SSD is still ā€˜hit or missā€™ for me. I use Raspberry Pi 3B+ with Kingston A400 + Sabrent adapter. After updating HA or rebooting HA, sometimes it does not boot (most of the time it does). When unplugging the adapter (2,5A original) most of the time the first boot does nothing. After unplugging again and replugging it boots most of the time normally. I do not understand what this behavious gets created from so I would hope that you understand why this is happening. I am using Core 0.176 and OS 4.16. I have no SD-card plugged in.

Anyone ideas?

Thanks in advance,

SilentScreamer

The first thing I think of is that there is not enough power for the SSD and the Pi together, although a SSD should not draw so much.
You can see this if you attach a monitor and look if the yellow flash is showing in the upper right corner. But this will be not at the beginning of the boot I think.

Thanks for your reply!

If that is the case, why would it boot the second time fine do you think? It does not seem that logical, since loads of Pi users are using this setup :slight_smile:

Good question, I have no clue.

Dear all,

I have tried to migrate from SD to SSD, and finally I turn back to SD.

I have the following external devices:

  1. PI 4 4 GB ram.

  2. ConBee II Zigbee USB dongle.

  3. Sigma Designs Zwave Plus USB dongle.

These devices workks without problem with HA system 32 bits on SD.

For the migration I bought:

  1. ELUTENG Cables USB to SATA for 2.5 SATA SSD/HDD

  2. Crucial BX500 240 GB CT240BX500 SSD disk

The tutorial for the migration that I try was: https://community.home-assistant.io/t/installing-home-assistant-on-a-rpi-4b-8gb-with-ssd-boot/230948

With this tutorial I installed the HA version: hassos_rpi4-64-5.5.img.gz but I tried also the version hassos_rpi4-64-5.3.img.gz.

When I restore my last snapshot from the old system (32 bits), HA starts without problem from the SSD but with the following problems:

  1. My Sigma Designs - Z-Wave Plus USB dongle dont works, then all my zwave devices are misssing and I canā€™t start from scratch because I canā€™t add devices, delete old devices, etc. I tried to connect the zwave usb dongle to a extension USB cable and donā€™t works. Change the port from USB 3 to USB 2 and donā€™t worksā€¦ The zigbee dongle works well and I can see all my zigbee devices.

  2. HACS integration donā€™t starts, and I need to unistall and install another time.

  3. AEMET integration donā€™t works

  4. The system is not fast than with SD card, proably because all the erros when starts. The upload time in browser for the Web UI is very slow, probably about 30 seconds or more. I deleted the database according with some tutorials, but this solve some errors, but the starting time to load the web interface is the same.

example of errors:

2020-11-14 04:19:39 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for variable which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-11-14 04:19:39 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-11-14 04:19:39 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-11-14 04:19:39 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for badnest which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-11-14 04:19:39 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for smartir which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-11-14 04:19:44 WARNING (MainThread) [homeassistant.components.climate] ClimateDevice is deprecated, modify NestClimate to extend ClimateEntity
2020-11-14 04:19:45 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for bwalarm which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-11-14 04:19:48 ERROR (MainThread) [custom_components.smartir] An error occurred while checking for updates.
2020-11-14 04:19:53 WARNING (MainThread) [homeassistant.components.broadlink.switch] The switch platform is deprecated, except for custom IR/RF switches. Please refer to the Broadlink documentation to catch up
2020-11-14 04:20:14 WARNING (SyncWorker_19) [homeassistant.components.bluetooth_le_tracker.device_tracker] No Bluetooth LE devices to track!
2020-11-14 04:20:14 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy
2020-11-14 04:20:16 ERROR (MainThread) [homeassistant.components.calendar] google: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update
await task
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 106, in update
self.data.update()
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
result = method(*args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 175, in update
result = events.list(**params).execute()
File "/usr/local/lib/python3.8/site-packages/oauth2client/_helpers.py", line 133, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/googleapiclient/http.py", line 842, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 404 when requesting https://www.googleapis.com/calendar/v3/calendars/616jclechijai43018fn6rr4m57e0mio%40import.calendar.google.com/events?orderBy=startTime&maxResults=5&singleEvents=true&timeMin=2020-11-14T04%3A20%3A16.480347%2B01%3A00&alt=json returned "Not Found">
2020-11-14 04:21:36 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:default [Name does not resolve]
2020-11-14 04:21:37 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:default [Name does not resolve]
2020-11-14 06:44:44 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.dining_room_thermostat fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update
raise exc
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/badnest/climate.py", line 325, in update
self.device.update()
File "/config/custom_components/badnest/api.py", line 210, in update
for bucket in r.json()["updated_buckets"]:
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.8/site-packages/simplejson/__init__.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
2020-11-14 08:09:37 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:default [Name does not resolve]
2020-11-14 09:27:15 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection
2020-11-14 10:01:13 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connection

For these reasons I decided to turn back to SD and wait to a stable version.

This was my experience with the migtrationā€¦