Restore .dmg to raw block device
- Mount DMG as block device only (i.e. don't mount the filesystem):
hdid -nomount ~/path/to/your/file.dmg
- Check source and target:
diskutil list
- Use dd to copy across:
dd if=/dev/disk3 of=/dev/disk1
Written by Kenrick Turner
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Cli
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#