Table of Contents
    Mac Data Recovery

    “Couldn’t Unmount Disk” Error on Mac – How to Fix


    Table of Contents

      MacBooks are highly prized for their smooth operation and high security level, but just like any other man-made machine, they’re not immune to errors. One issue that is majorly encountered by users is the notorious “Couldn’t Unmount Disk” error. The case is likely to occur when you try to delete, partition, or fix a disk with Disk Utility, and you see that your system won’t allow you to do so as the disk is either locked, or in use, or is damaged.

      For the average user, this problem can be more than frustrating, it can strike at the most inopportune time when you’re attempting to reinstall macOS, make a bootable drive, or prepare a disk for a backup

      In this article, we will go in-depth into why the “Couldn’t Unmount Disk” error happens in the first place.

      Why “Couldn’t Unmount Disk” Error Appear on Mac?

      To fix this issue, you need to dig slightly deeper as to what makes it occur. Unmount on macOS suggests detaching a disk or volume from the file system so that it can be erased, formatted, or repaired securely. It also serves several other important purposes like safe removal of external media, maintenance of system and troubleshooting, or switching between file systems or OS, meanwhile ensuring your data’s privacy & security. If the system won’t unmount, it could be a result of something prohibiting it within your system.

      Let’s examine the key reasons:

      1. System Disk in Use

      If you are working on the startup disk of your Mac, you cannot unmount it from the macOS. The system reads and writes continuously on that disk for regular functioning, and thus when you attempt to erase or repartition it within Disk Utility, macOS prevents it. This is the most frequent cause of why individuals encounter the error.

      2. Background Processes or Apps Blocking the Disk

      For some other times the issue isn’t with the system itself but background services. Like,

      • Time Machine could be running a backup.
      • Spotlight could be accessing the disk.
      • A third-party software for instance, antivirus or disk management could be scanning or locking files.

      Even when you think that the disk is inactive, one of the above reasons might be holding the unmount.

      3. File System Corruption or Partition Map Problems

      Logical corruption or damaged partition maps on disks might result in unmount failures. For instance, if the APFS container structure is damaged or the HFS+ catalog file is corrupted, macOS might not be able to unmount it properly. That is a sign of more severe problems with the drive.

      4. External Drive Connection Problems

      For external disks, loose cables, malfunctioning USB hubs, or power problems can also stop safe unmounting. The OS receives conflicting messages and fails to unmount the disk to prevent possible data corruption.

      5. Locked or Encrypted Volumes

      In case you are dealing with an encrypted APFS volume and it has failed to be unlocked successfully, or if the keychain is holding it wrongly, the system may block the unmount request.

      6. Severe Hardware Faults

      In some instances, the drive itself might be failing physically. If macOS is unable to communicate with the disk controller, it will repeatedly eject with the unmount error.

      How to Resolve the “Couldn’t Unmount Disk” Issue on Mac?

      Now that you understand the potential causes, let’s go through the solutions in depth. Each of the following methods addresses a different causative factor.

      1. Restart Your Mac and Retry

      It seems basic, but restarting will get rid of processes that could be holding the disk. If it is a background service problem, this will solve the issue right away. Always attempt this before proceeding with more complex steps.

      2. Boot macOS Recovery Mode

      If the issue is with your startup disk, you will be compelled to operate outside your primary operating environment.

      Shut down your Mac.

      Press and hold the power button (Touch ID button on laptops) until you see “Loading startup options.”

      When the options screen appears, click Options → Continue.

      Enter your admin password if prompted, and you’ll be in macOS Recovery.

      Once in Recovery Mode, launch Disk Utility.

      Choose the disk and attempt to unmount.

      In Recovery Mode, however, the system is not actually operating from your startup disk, which means you are more likely to succeed.

      3. Use Disk Utility’s First Aid Tool

      If corruption is suspected, administer First Aid. Here’s how:

      1. Under Disk Utility, choose the volume below the disk.
      2. Click on First Aid and let it scan for file system errors.
      3. Do the same for the container (if it’s APFS) and then device level.
      4. Reconstruction is done layer by layer, so every logical structure is tackled.

      4. Unmount Using Terminal by Force

      In stubborn situations where Disk Utility is being obstinate, Terminal might prove more useful.

      But use it only if Disk Utility refuses to eject a disk.

      • Run:
      • Open Terminal from Applications → Utilities.
      diskutil list

      This shows all connected disks and their identifiers (e.g., /dev/disk2).

      • To unmount the whole disk, run:
      diskutil unmountDisk force /dev/diskX

      Replace diskX with your actual disk number.

      • If you only want to unmount a single volume, use:
      diskutil unmount force /dev/diskXsY

      Only use force if normal unmount fails. If any app is writing to the disk, forcing can corrupt data. Always double-check that nothing important is running before using it.

      Be careful as compelling an unmount when data is actively being written can lead to corruption. Always make sure no critical operations are in progress.

      5. Delete or Format the Disk

      If the disk is still not available and you don’t need the information, you can still erase it. This though wipes everything off of the drive.

      1. Choose the disk in Disk Utility.
      2. Click Erase.
      3. Select the preferred file system.
      4. Click Continue.


      Note: Do not delete the disk if there are significant files on it. Before deleting, ensure that you have created a backup of the data.

      6. Inspect Hardware and Connection

      For external drives. At times, you might have to remove the drive forcefully. Just make sure no read-write action is in the process to avoid data corruption. Even if “nothing is being written,” the OS may still be caching data. Better you first shut down the Mac before unplugging it.

      7. Try Mac Data Recovery Tools as a Last Resort

      If the above fails, chances are that the disk is badly corrupted or has hardware issues. Now, if you have lost your crucial data, you don’t have to give up hope. Attempt a professional-level recovery software such as Stellar Data Recovery for Mac.

      Where Stellar Data Recovery for Mac Fits In

      Though macOS utilities do their job well in terms of making speedy repairs, they have their limitations. In case your disk fails to unmount due to corruption, partition problems, or boot problems, native utilities might not suffice. That is where Stellar Data Recovery for Mac steps in:

      Recover from Unmountable Drives: Even if Disk Utility won’t unmount or mount a drive, Stellar will be able to scan the drive directly at the device level.

      Works on Non-Booting Macs: The application can be launched in recovery mode, which enables you to recover files when your Mac won’t boot up normally.

      Advanced Scan Modes: Rapid scan for minor problems, or in-depth scan to recover lost data from severely damaged drives.

      Create a Disk Image: In case your drive is physically failing, the software allows you to make a sector-by-sector copy and recover from the image in a secure way rather than stressing the failing hardware.

      Supports Multiple File Systems: No matter what format the file is – your disk could be APFS, HFS+, FAT32, exFAT, or NTFS formatted, Stellar has got you covered.

      Opting for Stellar before taking risky measures or seeking professional help, you can recover your important files, following which, you can proceed with repairs confidently.

      Avoiding the Situation in the Future

      Although certain disk errors are unavoidable, proper procedures can greatly minimize the risk of experiencing unmount issues.

      Eject Disks Properly:

      Always eject with the “Eject” option before unmounting an external drive.

      You can eject the drive using any of the below mentioned ways:

      Finder Sidebar: In Finder, look for your external drive under Locations. Click the small Eject (⏏️) icon next to it.

      Desktop Icon: If the drive is visible on your desktop, drag it to the Trash. The Trash icon will change to an Eject symbol when you hover.

      Right-Click Menu: Right-click the drive in Finder or on the desktop and choose Eject.

      Disk Utility: Open Disk Utility, select the drive, then click the Eject button in the toolbar.

      Keep Regular Backups:

      iCloud, third-party backup software, or Time Machine guarantee that even if your disk crashes, your data is secure.

      Practice First Aid Regularly:

      Running Disk Utility’s First Aid on a regular basis assists in finding and repairing minor problems before they become enormous.

      Don’t Overfill Drives:

      Having less than 10% free space is unsafe. A disk that is almost full is more likely to corrupt.

      Monitor Disk Health:

      Use SMART monitoring software to verify your drive health. Replace the disk if you notice early failure warnings.

      Key Takeaways

      The “Couldn’t Unmount Disk” error might seem complicated to many, but it can be quickly fixed once you know the root cause and the perfect solution for it. From restarts to Recovery Mode maneuvers and Terminal commands, you have quite a few ways to correct it for starters.

      However, if you find out that the disk is corrupted or your data is vulnerable, macOS’s built-in utilities may fall short. If data recovery is necessary, Stellar Data Recovery for Mac can be a valuable tool. By understanding the proper combination of troubleshooting and maintenance, you can lower downtime, keep your files safe, and maintain your Mac like it’s new.

      Was this article helpful?

      No NO

      About The Author

      Pallavi

      Pallavi is a literature graduate turned content strategist, specializing in data recovery. She creates insightful, user-friendly content to help people rescue their data from hard drives, SSDs, memory cards, and more. When she’s not decoding tech for everyday users, she’s curled up with a book—or secretly planning her next adventure.

      80 comments

      1. Hi Vishal,

        I messed up my hard drive by erasing it with terminal while trying to format after it showed me Couldn’t Unmount Disk Error. The hard drive had some important data which I formatted accidentally. Do you have free mac data recovery software for OS X El Capitan?

      2. If you are unable to boot your system from the other disk, please go through the below solution:

        1. First, Download the OS X firmware from the official App Store
        2. Now, take an HDD and format it to OS X extended journal
        3. Create a GUID table partition
        4. Then, further install the OS X on it
        5. Now, press the opt n reboot your system
        6. Now select the external HD recovery mode
        7. Finally, you will be able to format your Mac Hd in disk utility

        I hope the solution will be helpful for you.

      3. Hi, I am a MacBook Pro user, and I am unable to boot my Mac system from other disk. Please give me some suitable solution so that I can further use my MacBook Pro.
        Thanks in advance.

      4. Ok trying to wipe the mac pro completely but I can’t cause I can’t unmounted a partition drive so I tried a bunch of terminal ways to unmounted but keep getting a at least one volume could not be unmiunted

        1. Hi Johnathan,

          Do you have the backup of your Mac? If yes, then go to OS X utilities and format the entire hard disk drive. Disk Utility gives you options to secure delete the partitions and hard drives.

          Thanks.

      5. Hi, I cant seem to use my 1 TB hard drive on my macbook air (it has an NTFS system) and disk utility says erase process has failed. Press done to continue

      6. Couldn’t get around this problem until I found the solution mentioned by you. Used diskmaker x to make an el capital boot disk then followed your steps and it worked on my 2013 MacBook Pro with Yosemite version. Many-2 thanks for such a valuable blog post.

      7. I am trying to restore my Mac OS X El Capitan from an external drive to my Mac HD. But, whenever I try to repair my hard drive, it gives me an error message, “Couldn’t unmount disk”. Same goes when I try to erase the disk. Please tell me what should I do now?

        1. Hi Dina,
          You can use Stellar Partition Manager Software to format the hard-drive of your Mac OS X extended Journaled file system. Formatting the HD will have recreated the new file structure on your hard drive and ‘Couldn’t unmounts disk’ will also resolve.

      8. MacBook Pro 2011
        2.2 GHz Intel Core i7
        8GB 1600 MHz DDR3
        OSX 10.9.5

        I replaced my optical drive with an HDD Caddy and installed a 1 TB 2nd internal HD to save files on. Operating system is on the a seperate SSD internal drive in the standard drive bay. I tried formatting/erasing the 2nd HD numerous times with Disk Utility and it would continue adding time to the process up to 22+ hours. After changing the security options and trying to format, it finally said there were errors on the disk. Purchased new HD and it initially recognized disk when formatting. Error came up, can’t unmount disk. I tried booting up off an external osx drive, and now it won’t even recognize the disk. Tried again with internal osx drive and still won’t recognized 2nd drive. Any ideas? Thanks

      9. I’m trying to format a new external hard drive and it is not working. It is a Seagate 1TB drive. When I go into Disk Utilities > Erase tab > change Volume Format to Mac OSX Extended > click erase, it keeps saying disk “Erase failed with the error: File system formatter failed.”

        1. Hi Alysia,

          What version of OS X you running? Could you also let me know the file format to which your external drive was formatted before this error?

          Thanks

      10. How should I access my external hard drive partition which is unmountd on OS X El Capitan 10.11.2

        1. Hi Miguel, you have to run Stellar Mac data recovery software to recoup files from the unmounted hard drive. Here you can check out the KB article for the same.

      Leave a comment

      Your email address will not be published. Required fields are marked *

      Image Captcha
      Refresh Image Captcha

      Enter Captcha Here :

      Related Posts

      WHY STELLAR® IS GLOBAL LEADER

      Why Choose Stellar?

      • 0M+

        Customers

      • 0+

        Years of Excellence

      • 0+

        R&D Engineers

      • 0+

        Countries

      • 0+

        PARTNERS

      • 0+

        Awards Received

      ×