<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Case: Mounting Mac DMG's and the misterious post-exec diskimage-helper</title><link>http://blogs.technet.com/b/eduardonavarro/archive/2010/01/20/3307048.aspx</link><description>So I recently had to do mounting and unmounting of DMG files from the command line using perl. The steps I used were: 
 (a) Convert image to UDRW (so I could modify the image contents) (b) Mount the image (c) Modify contents (d) Unmount the image (e</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Case: Mounting Mac DMG's and the misterious post-exec diskimage-helper</title><link>http://blogs.technet.com/b/eduardonavarro/archive/2010/01/20/3307048.aspx#3393065</link><pubDate>Thu, 10 Mar 2011 04:29:20 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3393065</guid><dc:creator>Pablo</dc:creator><description>&lt;p&gt;Figured i&amp;#39;d let you know this helped me. I think it might be possible (haven&amp;#39;t confirmed) to use:&lt;/p&gt;
&lt;p&gt;hdiutil eject /dev/disk4 (where disk4 is the original virtual device for the dmg).&lt;/p&gt;
&lt;p&gt;$ hdiutil mount &amp;nbsp;Pablo0.sparseimage &lt;/p&gt;
&lt;p&gt;hdiu/dev/disk4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GUID_partition_scheme &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;/dev/disk4s1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;EFI &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;/dev/disk4s2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Apple_HFS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /Volumes/Pablo0&lt;/p&gt;
&lt;p&gt;hdiutil detach /Volumes/Pablo0&lt;/p&gt;
&lt;p&gt;&amp;quot;disk4&amp;quot; unmounted.&lt;/p&gt;
&lt;p&gt;&amp;quot;disk4&amp;quot; ejected.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3393065" width="1" height="1"&gt;</description></item></channel></rss>