Last Updated: February 25, 2016
·
1.074K
· kenrick

Restore .dmg to raw block device

  1. Mount DMG as block device only (i.e. don't mount the filesystem):

hdid -nomount ~/path/to/your/file.dmg

  1. Check source and target:

diskutil list

  1. Use dd to copy across:

dd if=/dev/disk3 of=/dev/disk1