back to notes

Clone Disk Images

Copy disk images

Using command line with optional pipe viewer to clone RPi images

diskutil list

diskutil unmountDisk /path/to/my/disk/found/with/list

check .zip hash

openssl sha -sha256 /path/to/downloaded.zip

dd if=/path/to/my/diskimage/img | pv -s 8G | sudo dd of=/path/to/my/rdisk bs=1m

for eg.

dd if=domesticscience.img | pv -s 8G | sudo dd of=/dev/rdisk1

More accurate progress bar based on actual size of source image:

dd if=/path/to/my/diskimage/img | pv -tpreb -s $(du -k ~/path/to/my/diskimage/img | awk '{print $1}')k | sudo dd of=/path/to/my/rdisk bs=1m



last updated june 2019