Playing with docker and homeassistant + z-wave stuff on the raspberry 2 is pretty slow with the sd card as main storage. And it will burn through the flash write cycles in no time.
Solution: old 60GB SSD drive + externel USB case.
This requires some USB2 hub with external power supply (at least 2A). Or an external USB case with power supply.
Warning: The script modifies
/etc/fstab. If something goes wrong you can edit the files and revert to old boot drive settings.
Warning2: The script will delete target drive data !!!
Look for the drive. Should be /dev/sda
Run helper script (perhaps stop docker before):
git clone https://github.com/adafruit/Adafruit-Pi-ExternalRoot-Helper.git cd Adafruit-Pi-ExternalRoot-Helper sudo ./adafruit-pi-externalroot-helper -d /dev/sda # wait # check new boot partition config cat /etc/fstab cat /boot/cmdline.txt sudo reboot