Hello folks,
I am running Home Assistant OS on a Raspberry Pi 4 with a SSD. Stupid me thought I could save some money and bought the cheapest SSD I could find on Aliexpress. And surprise: Now it’s broken after roughly 1 year of service.
I am still able to boot and during the first few minutes everything seems to be working, but after a while Zigbee2MQTT stops working and logs a lot of file system related messages. Also the Google Drive Backup Plug-in fails after a while due to file system errors.
So I bought a new WD Red SSD, plugged both SSDs into a Debian machine, and tried to clone the bad SSD onto the new one using dd
. Unfortunately this failed after a while with the following output:
$ sudo dd if=/dev/sdb of=/dev/sda status=progress
4458160640 bytes (4.5 GB, 4.2 GiB) copied, 649 s, 6.9 MB/s
dd: error reading '/dev/sdb': Input/output error
8707384+0 records in
8707384+0 records out
4458180608 bytes (4.5 GB, 4.2 GiB) copied, 651.717 s, 6.8 MB/s
Then I tried to start again from where it failed before, but it failed instantly:
$ sudo dd if=/dev/sdb of=/dev/sda status=progress seek=8707384 skip=8707384
dd: error reading '/dev/sdb': Input/output error
0+0 records in
0+0 records out
0 bytes copied, 0.360525 s, 0.0 kB/s
So I guess the old SSD has broken blocks and cloning seems to be impossible. But I can still mount the data partition and now I am thinking of copying the most important configurations so that I don’t have to configure everything from scratch. For me the most important things are
- Zigbee2MQTT
- ESPHome
- Automations
- configuration.yaml
Is there anything else I should copy from the data partition? Or do you know if I can try other approaches for cloning the SSD?
Thanks in advance!