<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>loopkid: force unmount on mac os x</title>
    <link>http://loopkid.net/articles/2008/06/27/force-unmount-on-mac-os-x</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>professional procrastinator</description>
    <item>
      <title>force unmount on mac os x</title>
      <description>&lt;p&gt;When using Mac OS X you might have encountered this message.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;The disk "foobar" is in use and could not be ejected.
Try quitting appplications and try again.
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This message may occur even if you have all closed all programs. The guilty party for this behavious may be Leopard&amp;#8217;s &lt;a href="http://developer.apple.com/documentation/Darwin/Conceptual/FSEvents_ProgGuide/Introduction/chapter_2_section_1.html"&gt;FSEvents&lt;/a&gt;, which sometimes has a lock on a volume. To force the unmount of a volume just open a Terminal and use umount.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo umount -f /Volumes/FooBar
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;According to a commentator, if that doesn&amp;#8217;t work you can also try&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo diskutil umount force /Volumes/FooBar
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Fri, 27 Jun 2008 01:16:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:b9595033-68b0-4701-8893-ae22ea7a5407</guid>
      <author>Stefan</author>
      <link>http://loopkid.net/articles/2008/06/27/force-unmount-on-mac-os-x</link>
      <category>English</category>
      <category>Mac OS X</category>
      <trackback:ping>http://loopkid.net/articles/trackback/8395</trackback:ping>
    </item>
    <item>
      <title>"force unmount on mac os x" by Franck</title>
      <description>&lt;p&gt;Many Thanks for your comments. They helped me in fixing application installation problem. Brilliant!!&lt;/p&gt;</description>
      <pubDate>Tue, 07 Jun 2011 09:22:29 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:eac5d0cf-b0da-4d17-978d-d3b0a43b70b9</guid>
      <link>http://loopkid.net/articles/2008/06/27/force-unmount-on-mac-os-x#comment-166706</link>
    </item>
    <item>
      <title>"force unmount on mac os x" by Donald E. Payne</title>
      <description>&lt;p&gt;I found another process that can make a device busy, via the command
$ userid root lsof &amp;#8216;/Volumes/2ndHardrive 1&amp;#8217;
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
fseventsd  76 root    8u   REG   14,5        0 1892050 /Volumes/2ndHardrive 1/.fseventsd/000000000038f4c5&lt;/p&gt;

&lt;p&gt;fseventsd is a daemon that watches for changes to a mounted volume, for the benefit of applications like Finder and Spotlight.  It keeps a file open on the volume, so it is &amp;#8220;busy&amp;#8221;.&lt;/p&gt;

&lt;p&gt;Then I read here
&lt;a href="http://lists.apple.com/archives/Darwin-dev/2008/Sep/msg00039.html"&gt;http://lists.apple.com/archives/Darwin-dev/2008/Sep/msg00039.html&lt;/a&gt;
that you are not supposed to use the direct command-line tools like &amp;#8220;mount&amp;#8221; and &amp;#8220;umount&amp;#8221; on MacOS, and that &amp;#8220;DA [Disk Arbitrator] will notify fseventsd to stop looking&amp;#8221;.  Surprising to me &amp;#8211; I thought MacOS X was basically UNIX.&lt;/p&gt;

&lt;p&gt;DA appears to be either a GUI or an API.  I want a command line.  So I found, via &amp;#8220;man -k disk&amp;#8221;, the commands &amp;#8220;disktool&amp;#8221; (deprecated) and &amp;#8220;diskutil&amp;#8221; as mentioned above.  diskutil works when umount fails; I guess it tells fseventsd to stop looking.&lt;/p&gt;</description>
      <pubDate>Thu, 19 Nov 2009 03:12:40 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:657e6010-66e7-4d40-8095-64c0cb13fc48</guid>
      <link>http://loopkid.net/articles/2008/06/27/force-unmount-on-mac-os-x#comment-101705</link>
    </item>
    <item>
      <title>"force unmount on mac os x" by RnS</title>
      <description>&lt;p&gt;Very helpful, thanks!&lt;/p&gt;</description>
      <pubDate>Sat, 24 Oct 2009 00:34:37 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:a0e024b1-2b3a-4353-ab1d-3005b9c4ca51</guid>
      <link>http://loopkid.net/articles/2008/06/27/force-unmount-on-mac-os-x#comment-92206</link>
    </item>
    <item>
      <title>"force unmount on mac os x" by Christine Fürst</title>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Thanks a lot for this post. It actually solved my problem!&lt;/p&gt;

&lt;p&gt;Cheers Christine Fürst (Stinie) from Rotterdam (Netherlands)&lt;/p&gt;</description>
      <pubDate>Sun, 21 Jun 2009 14:34:47 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:9eeb23f3-4d36-4c9a-91a7-87a035f5cc74</guid>
      <link>http://loopkid.net/articles/2008/06/27/force-unmount-on-mac-os-x#comment-56708</link>
    </item>
    <item>
      <title>"force unmount on mac os x" by Stefan</title>
      <description>&lt;p&gt;Okay, so diskutil is mightier than umount on Leopard, right?&lt;/p&gt;</description>
      <pubDate>Fri, 05 Jun 2009 15:30:17 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:d719a8cc-7b1d-453f-8498-70d4009f7b24</guid>
      <link>http://loopkid.net/articles/2008/06/27/force-unmount-on-mac-os-x#comment-53372</link>
    </item>
    <item>
      <title>"force unmount on mac os x" by mur</title>
      <description>&lt;p&gt;the advantage is, that if you cant unmount with anything else you can either take the cable away and hurt external drive or you can unmount with &lt;code&gt;diskutil umount force /Volume/Yourowndisk&lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 05 Jun 2009 14:32:31 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:e4733ca9-197e-454f-86d7-29755fda936e</guid>
      <link>http://loopkid.net/articles/2008/06/27/force-unmount-on-mac-os-x#comment-53371</link>
    </item>
    <item>
      <title>"force unmount on mac os x" by Stefan</title>
      <description>&lt;p&gt;What&amp;#8217;s the advantage of using diskutil over plain umount?&lt;/p&gt;</description>
      <pubDate>Sat, 28 Feb 2009 18:24:26 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:dc95ebde-417b-4bf5-8f8a-4cb92ebfc127</guid>
      <link>http://loopkid.net/articles/2008/06/27/force-unmount-on-mac-os-x#comment-35874</link>
    </item>
    <item>
      <title>"force unmount on mac os x" by Goatse Man</title>
      <description>&lt;p&gt;To force the unmount on OS X 10.5 use&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;diskutil umount force /Volumes/foobar
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Fri, 20 Feb 2009 12:36:22 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:26f01958-ba1f-47d9-bfd3-6bb57048b3cb</guid>
      <link>http://loopkid.net/articles/2008/06/27/force-unmount-on-mac-os-x#comment-33269</link>
    </item>
    <item>
      <title>"force unmount on mac os x" by Stefan</title>
      <description>&lt;p&gt;This works basically the same way on Mac OS X, but sometimes even changing the directory doesn&amp;#8217;t resolve the issue,&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# umount /Volumes/Foobar
umount: unmount(/Volumes/Foobar): Resource busy
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;then &lt;code&gt;diskutil&lt;/code&gt; comes to the help.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# diskutil umount /Volumes/Foobar
Volume Foobar on disk1s10 unmounted
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Fri, 27 Jun 2008 12:30:09 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:29050922-887b-417f-97a6-d386e50f86ef</guid>
      <link>http://loopkid.net/articles/2008/06/27/force-unmount-on-mac-os-x#comment-8416</link>
    </item>
    <item>
      <title>"force unmount on mac os x" by b.</title>
      <description>&lt;p&gt;On linux machines it is often the case, that you are in the mounted directory when trying to unmount the device. Therefore you have to leave the directory to unmount the device:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# mount -o loop foo.iso /mnt
# cd /mnt/bar
# umount /mnt
umount: /mnt: device is busy
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The man page tells us:
-f     Force unmount (in case of an unreachable NFS system).  (Requires kernel 2.1.116 or later.)&lt;/p&gt;

&lt;p&gt;The -f directive does not work in this case under linux machines. The umount command is still locked. So you have to leave the directory:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# cd /tmp
# umount /mnt
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Fri, 27 Jun 2008 02:34:12 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:6a5661cc-061d-4bba-9df4-b544884f5b3c</guid>
      <link>http://loopkid.net/articles/2008/06/27/force-unmount-on-mac-os-x#comment-8400</link>
    </item>
  </channel>
</rss>

