hdiutil imageinfo $IMAGE # display partition map hdiutil pmap -complete /dev/disk1 # backup a directory to a disk image sudo hdiutil create ~/backup.dmg -format UDZO -nocrossdev -srcdir ~/dir_to_backup