cobalt notes from a small home lab

Home Assistant: moving a Pi 4 from SD card to SSD

The SD card lasted 26 months, which is honestly more than I expected with the recorder writing every few seconds. The signs were the usual: the database got malformed twice, and the history graphs had holes.

Order of operations

Two adapters did not work: both were the cheap ones without UAS. The one that works is the kind with a JMicron chip and a proper power supply. If the Pi shows undervoltage warnings, that is the adapter, not the SSD.

Afterwards I set the recorder to keep 10 days instead of the default and excluded a few chatty sensors. The database went from 3 GB to 400 MB and the graphs load instantly. Should have done that on day one.