You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Using Disk Utility to Erase Disk-won't unmount

I have a MacPro and 4 drives inside it, one of which I need/want to erase. I have backed it up and using DU tried to erase it = by both highlighting the drive identifier and the name - in both cases, whether I try to erase disk or set it to erase to one partition, I get a message saying it can't do it because it can't unmount the disk.


I backed up my startup drive to this drive so I could wipe and reinstall OSX on my new SU drive but now I can't delete items off the backup drive [the one I want to erase] because the message says I can't delete backup items. And I can't erase the drive to get a brand new drive to work with.


I don't need the old SU material on this drive, it was just a way to be sure I had it before using Migration Asst to reinstall the SU on the new SU drive = I used SuperDuper to clone the old SU onto this drive - then I used Migration Asst to move the stuff back to the new startup drive = but now I want to EITHER get rid of the system files and apps [no need for those = I don't min

Mac OS X (10.7.4), iPad and iPhone4

Posted on Jul 18, 2012 11:16 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 23, 2012 7:58 AM

I realise that you have solved this problem, but I have solved a similar issue differently.

It appeared that the external drive would not unmount because some activity was using it. fsck_hfs process was working away as shown by activity monitor. It seems that Spotlight was struggling with a the failed drive and would not let it go so the unmount and erase could not occur.

This was solved by disabling Spotlight (terminal: sudo mdutil -a -i off) temporarily. After disabling Spotlight, Disk Utility performed its job and my corrupted drive was restored to use.


(Spotlight is turned back on with: sudo mdutil -a -i on)

63 replies
Question marked as Top-ranking reply

Sep 23, 2012 7:58 AM in response to Victoria Herring

I realise that you have solved this problem, but I have solved a similar issue differently.

It appeared that the external drive would not unmount because some activity was using it. fsck_hfs process was working away as shown by activity monitor. It seems that Spotlight was struggling with a the failed drive and would not let it go so the unmount and erase could not occur.

This was solved by disabling Spotlight (terminal: sudo mdutil -a -i off) temporarily. After disabling Spotlight, Disk Utility performed its job and my corrupted drive was restored to use.


(Spotlight is turned back on with: sudo mdutil -a -i on)

Oct 3, 2013 9:52 AM in response to Victoria Herring

Thanks for the above info!


I had a similar problem, Disk Utility would not erase and reformat my external disc and complained about being unable to erase the external disc.


I tried disabling Spotlight as described above, but that didn't fix the problem.

I then searched for an fsck process:


ps -ax | grep fsck


and then killed that process:


sudo kill <process number>


Problem solved! Disk Utility then successfully erased and reformatted the external drive!



Many thanks for the clues that led me to this solution!

Dec 27, 2013 10:51 PM in response to taramaple

I had similar problem, can't unmount easily.


Ending up connecting the disk as a target disk (holding T key on startup) connected to another Mac.


Then using terminal, used the following commands to force unmount disk and erase the disk after.


To check for the exact name of the disk:

sudo diskutil list

(you will see the list of drives/partitions, take note of which one is the one you are trying to unmount/format, should be something like /dev/disk<number>)


Then to force unmount disk:

sudo diskutil unmountDisk force /dev/disk<number>


You should get a response to the success or failure to the unmount command.


Then if you want to format force format the disk:

sudo diskutil erasedisk JHFS+ Untitled /dev/disk<number>

Jan 7, 2014 10:54 PM in response to Drakcresure

I tried turning off indexing via terminal unsuccessfully but eplt@odw's Force Unmount worked perfectly.


Background:

I boot my imac from an external SSD and use the original, internal hard disk to clone a backup to. My partitions needed resizing so I had to erase and repartition. During this process the disk wouldn't unmount,


All good now though. Thanks for your post eplt@odw

Jun 10, 2014 9:22 PM in response to philbone

THE EASIEST WAY TO UNMOUNT:


Simply use Disk Utility to "Force Unmount". You do this by selecting the partition in the left pane, and OPTION+CLICKING the "Unmount" button. Once you have done this, you can format the entire Volume.


I hope this helps someone else, as I struggled with this for a few hours. I then remembered that the OPTION key on Mac OS is a frequent ticket to awesome features.

Feb 2, 2014 8:17 PM in response to alex.zatman

I had a volume named W for Western Digital etc... wanted to erase it to give to my father to use as his Time Machine backup. It wouldn't unmount directly when trying to 0 out data, it was because I had Quicktime open and had been playing a video stored on the HD going to be erased. I closed the Quicktime app and directly unmounted the volume, then highlighted the drive once again and it erased the data as desired. Sometimes things don't go so smoothly but it can be a simple oversight sometimes as well.

Apr 21, 2014 8:16 PM in response to desbrisay

Another option for anyone having to deal with an internal drive that will not erase or partition, giving the message that the erase failed because it "Could not open Device"


This happens to me when I try to wipe and install a fresh OS on any internal HD using a (Mavericks) installer on a bootable external drive.


Try connecting the Computer in question to a functional Mac with a firewire cable. Boot up the faulty computer in Target Disk Mode (hold down the "T" key) and it should show up on the functional Mac with the message that the disk is unreadable. Go to Disk Utility and it will now allow you to erase and then partition with 1 GUID partition. (Make sure you are erasing the correct drive !!)


Now unmount the target computer, shut it down and then restart holding down the option key to select the bootable external from which you can now re-install the new OS!


Works each time for me!


PS

Aug 31, 2014 9:02 AM in response to f30_Vincent

Don't know if this works out, in my case it did, and it is quite simpler for people not customed to use terminal, or people uneasy with using sudo, or simply, like me, people who don't have a password in their daily user account:

my solution to "can't unmount" was to put the disk in Spotlight of the accessing Mac into the Private Sphere of Spotlight preferences, so the background indexing did not avoid the unmount. Worked out with a MBP in target mode.

Put if that fails, for sure the terminal will sort it out 🙂

Sep 16, 2014 11:42 AM in response to niccodeamus

That did it for me, thanks niccodeamus.

I have a FreeAgent Goflex Seagate 3Tb Drive with thunderbolt cable which suddenly stopped working, Disk Utility was able to see it but could not unmount it resulting in not being able to repair or format disk. Here's the solution.


1- sudo mdutil -a -i off

2- Force Quit process fsck_hdfs from the activity Monitor

3- Immediately Erase Disk in Disk Utility (before fsck_hdfs starts again).


That's why the disk couldn't be unmounted because it was in use by spotlight indexing for some weird reason.

Oct 19, 2014 1:15 PM in response to niccodeamus

thanks nicco this helped and I am not sure if it was your command or going into the activity monitor and force quitting the fcsk thingy that starts when the disk utility fails as I tried a combo and both together allowed the format to happen without leaving the OSX environment.

After a long time on forums trying to recover a WD external drive I need to re-***** my backup strategy. I could imagine many non or less savy people thinking their files are lost and worse getting charged by people and still not getting their precious files back. I guess the cloud fits these people best - but really large backups of things over the cloud just seems too big to be handled.

Nov 27, 2014 6:56 AM in response to desbrisay

Somehow i missed the tip about running ps ax |grep fsck when looking earlier.


But after the various permutations of diskutil unmountDisk failed, i finally got to the point of realizing that fsck_hfs was permanently running.

Another option is pkill:


sudo pkill fsck_hfs


(It's better to run ps ax and make sure you are killing the right one, but ...)


Just because it took understanding what was going on to click: When one plugs in an external drive, fsck_hfs is run on that drive.

With some special drives in a bad state, fsck_hfs loops over and over trying to fix the drive.


This leaves the drive unmounted, but also in use and not ejectable, writable, dd-able, etc.


The annoying part is that you can run fsck_hfs on the /dev/rdisk# more than once at the same time. So Disk Utility will try to repair the drive. Even if you boot into Recovery Mode, this happens. And you can try to run fsck_hfs there and it will run.


But, if run with the right parameters, it will be stuck in the same loop. (Which i did, which helped me realize how the disk was stuck in the state it was.)

Using Disk Utility to Erase Disk-won't unmount

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.