<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Carbon Silk &#187; dmg</title>
	<atom:link href="http://www.carbonsilk.com/tag/dmg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.carbonsilk.com</link>
	<description>Developing Ideas by James Broad</description>
	<lastBuildDate>Sun, 20 Mar 2011 00:28:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>Ejecting a OS X mount when files are in use</title>
		<link>http://www.carbonsilk.com/development/ejecting-a-os-x-mount-when-files-are-in-use/</link>
		<comments>http://www.carbonsilk.com/development/ejecting-a-os-x-mount-when-files-are-in-use/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 10:10:24 +0000</pubDate>
		<dc:creator>James Broad</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[dmg]]></category>
		<category><![CDATA[lsof]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.carbonsilk.com/?p=104</guid>
		<description><![CDATA[So the problem is that you want to eject a disk/DMG/mount on your Mac and it says it is still in use &#8220;The disk &#8220;x&#8221; is in use and could not be ejected.&#8221;. Here is the solution using your command line (Terminal.app) to be able to safely eject the mount. lsof +D /Volumes/{VolumeName}/ This will [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.carbonsilk.com/wp-content/uploads/2009/04/untitled.png" alt="Eject disk" title="Eject disk" /></p>
<p class="clear">So the problem is that you want to eject a disk/DMG/mount on your Mac and it says it is still in use &#8220;The disk &#8220;x&#8221; is in use and could not be ejected.&#8221;. Here is the solution using your command line (Terminal.app) to be able to safely eject the <a href="http://en.wikipedia.org/wiki/Mount_(Unix)">mount</a>.</p>
<p><code>lsof +D /Volumes/{VolumeName}/</code></p>
<p>This will give you some results like:</p>
<pre class="php"  name="code">COMMAND   PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
HoggingApp 69668 myuser  txt    REG   14,5  3791772   27 /Volumes/{VolumeName}/App.app/Contents/MacOS/App</pre>
<p>Hopefully you will recognise the application that is using that resource (in this example <em>HoggingApp</em>). If you can close this application you should be able to eject your mount now.</p>
<p>If closing the application did not work for some reason you could try the following command using the <a href="http://en.wikipedia.org/wiki/Process_identifier">PID</a> found from the above result(s)</p>
<p><code>kill <strong>69668</strong></code></p>
<p>Or If running a kill has a permissions based issue just add &#8216;<code>sudo</code>&#8216; to the beginning of the line (assuming you have sudo access).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.carbonsilk.com/development/ejecting-a-os-x-mount-when-files-are-in-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

