<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									macOS - Fix device cannot be ejected because it is in use ... - MacOS X Software				            </title>
            <link>https://www.tweaking4all.com/forum/macos-x-software/macos-fix-device-cannot-be-ejected-because-it-is-in-use/</link>
            <description>Tweaking4All.com Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 21 Jul 2026 02:09:58 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>macOS - Fix device cannot be ejected because it is in use ...</title>
                        <link>https://www.tweaking4all.com/forum/macos-x-software/macos-fix-device-cannot-be-ejected-because-it-is-in-use/#post-4073</link>
                        <pubDate>Sat, 26 Mar 2022 12:12:56 +0000</pubDate>
                        <description><![CDATA[Sometimes I run into this issue; I&#039;m trying to eject an SD card or USB stick, but my Mac just keeps telling me its in use and cannot be ejected ...Messages like:

The volume can&#039;t be eject...]]></description>
                        <content:encoded><![CDATA[<p>Sometimes I run into this issue; I'm trying to eject an SD card or USB stick, but my Mac just keeps telling me its in use and cannot be ejected ...<br />Messages like:</p>
<ul>
<li>The volume can't be ejected because it's currently in use.</li>
<li>The disk "SomeUSBDisk" wasn't ejected because one or more programs may be using it.</li>
<li>umount(/Volumes/SomeUSBDisk): Resource busy</li>
</ul>
<p>Of course none of this is helpful ... what the heck is locking my device?</p>
<p>To find out, we can use disktutil.<br />In this example I'll try to eject <strong>/Volumes/SomeUSBDisk</strong> (replace "SomeUSBDisk" with the volume of the disk you're trying to eject).<br />The output is just an example, on your system this may be another process or application.</p>
<pre contenteditable="false">sudo diskutil unmount /Volumes/SomeUSBDisk</pre>
<p>The output could look like this:</p>
<pre contenteditable="false">$ sudo diskutil unmount /Volumes/SomeUSBDisk

Password: 

Volume SomeUSBDisk on disk2s1 failed to unmount: dissented by PID 326 (/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mds_stores)</pre>
<p class="p1"><span class="s1"> </span></p>
<p>What we learn here is that our disk is locked by process 326 (PID 326). It even lists that this is the mds_stores tool.<br /><br /></p>
<p>If this is an application, then close it nicely. As an alternative you can try to kill it from the command line</p>
<pre contenteditable="false">sudo kill </pre>
<p>or force kill it - be careful though, this is not recommended unless you know what you're doing.</p>
<pre contenteditable="false">sudo kill -9 </pre>
<p>Example:</p>
<pre contenteditable="false">$ sudo kill -9 326

$ sudo diskutil unmount /Volumes/SomeUSBDisk 
Volume SomeUSBDisk on disk2s1 unmounted</pre>
<p> </p>
<p> You disk can now be ejected ...</p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.com/forum/macos-x-software/">MacOS X Software</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.com/forum/macos-x-software/macos-fix-device-cannot-be-ejected-because-it-is-in-use/#post-4073</guid>
                    </item>
							        </channel>
        </rss>
		