Clone Raspberry pi t flash card to pc - HelloMorningStar/HomeAssistant GitHub Wiki
1, CLONE Raspberry pi-homeassistant-server from t-flash card to Mac store in *.pz and Restore it from *.pz to t-flash card.
1)check t-flash card: `diskutil list` 2)zip t-flash card to mac(rdisk5 is '/dev/disk*' from above command depends on your mac): `sudo dd if=/dev/rdisk5 bs=1m | gzip > /volumes/mass/pi.gz` (check the process, you should open the new terminal shell): `sudo killall -29 dd` (then return last terminal shell to check the current transferred bytes and speed) (if you like *.img you can input this command:`sudo dd if=/dev/rdisk5 of=/volumes/mass/pi.img bs=1m`) 3)insert the new t-flash card then unmount it: `diskutil unmountDisk /dev/disk5` 4)restore pi.pz to t-flash card: `gzip -dc /volumes/mass/pi.gz | sudo dd of=/dev/rdisk5 bs=1m`
1)open ubuntu computer and use GParted tool 'resize/move' to resize you t-flash card 'mininum size' + 500m or 1g space(if your t-flash have two disk partitions,please choose expect boot partition)
2)open win10 computer use Win32DiskImager tool to '读取已分配分区' choose location store in *.img
3)restore *.img to t-flash you can use Win32DiskImager or balenaEtcher tool, i just only test balenaEtcher is good for me