List disks (OSX)
diskutil listSingle Drive
sudo dd if=~/test.img of=/dev/rdisk2 bs=1mSingle Drive with Progress
pv ~/test.img | sudo dd of=/dev/rdisk2 bs=1mMultiple 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=1mNotes:
- For OSX /dev/rdisk is faster than /dev/disk
- Is faster when given a block size (bs=1m)