List disks (OSX)
diskutil list
Single Drive
sudo dd if=~/test.img of=/dev/rdisk2 bs=1m
Single Drive with Progress
pv ~/test.img | sudo dd of=/dev/rdisk2 bs=1m
Multiple Drives
pv ~/test.img | tee >(sudo dd of=/dev/rdisk2 bs=1m) | tee >(sudo dd of=/dev/rdisk3 bs=1m) | sudo dd of=/dev/rdisk4 bs=1m
Notes:
- For OSX /dev/rdisk is faster than /dev/disk
- Is faster when given a block size (bs=1m)