{"id":2106,"date":"2015-02-23T13:54:13","date_gmt":"2015-02-23T13:54:13","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=2106"},"modified":"2015-02-23T13:56:07","modified_gmt":"2015-02-23T13:56:07","slug":"edit-read-only-dmg-using-a-shadow-file","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=2106","title":{"rendered":"Edit Read Only DMG using a shadow file"},"content":{"rendered":"<p>Attach read-only dmg file using hdiutil<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">hdiutil attach -owners on \/path\/to\/your.dmg -shadow<\/div><\/div>\n<p>Modify your DMG. Use the command line to add, edit or delete contents &#8211; doing it in the GUI can have weird side effects or permission issues. Additionally, you may need to sudo the commands<\/p>\n<p>Detach mounted drive by below command or Eject it from Finder<\/p>\n<p># fill disk number at <number><\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">hdiutil detach \/dev\/disk5<\/div><\/div>\n<p>Converting\/Writing a shadowed dmg into read-only DMG<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">hdiutil convert -format UDZO -o \/path\/to\/new.dmg \/path\/to\/your.dmg -shadow<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Attach read-only dmg file using hdiutil hdiutil attach -owners on \/path\/to\/your.dmg -shadow Modify your DMG. Use the command line to add, edit [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2106","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2106"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2106\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}