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
63 replies

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.)

Dec 3, 2014 8:30 AM in response to dana 刀

Thanks to Dana for the pkill tip and to everyone else for their suggestions here. I couldn't find fsck_hfs in the Activity Monitor. Booting into recovery mode wouldn't work for me either.



The process that sorted it for me was:


- Disable spotlight indexing in terminal using sudo mdutil -a -i off


- Stop fsck_hfs process in terminal using sudo pkill fsck_hfs


- Immediately open Disk Utility and Erase the volume


- Re-enable spotlight indexing in terminal using sudo mdutil -a -i on



Cheers,


Chris

Feb 12, 2015 3:01 PM in response to Drakcresure

I am having similar issues and it's really frustrating, restarted command R, erase disk failed, restarted went to disk utility

tried to erase the disk from there but it's all greyed out. Repaired disk permissions, disabled spotline via terminal, still greyed

out. I used several commands listed on here in terminal

diskutil eraseDisk JHFS+ My\ HD disk0

diskutil eraseDisk JHFS+ UntitledUFS disk2


But it won't unmount the disk, I'm using Yosemite and no matter what I do it won't let me erase

the disk on here, help?

Feb 27, 2015 1:43 PM in response to Holmes321

Thank you for your suggestion! So far, it appears to have addressed the issue on my mid-2010 MBP (running 10.10.2), and my (USB) WD 500G EHD Time Machine back-up is once again visible/available in the Finder (and in the process of backing-up ~200G). The only real downside of doing this AFAIC was losing all of the previous back-ups on the EHD, but it's worth it (to me) if this proves to be a permanent fix.


FWIW, A Potential Source of the Issue:
While the EHD was engaged in its Time Machine back-up yesterday, I was simultaneously backing-up some of my files onto multiple thumb drives. This reinforces my suspicion that there exists some type of "simultaneous, multiple back-ups" conflict with Time Machine. On multiple occasions I've experienced similar issues with simultaneous Time Machine and thumb drive back-ups, and, except for this time, the disastrous result reported by Disk Utility was always the same: a damaged HDD (_not_ the EHD) that could only be repaired by erasing it. (As I recall, the Disk Utility error citation--paraphrased--indicated that the # of files were not identical as they should have been.). Based on my research in other Apple forums, Time Machine has been notorious for causing all kinds of strange problems. Has anyone else been able to pinpoint what may have been done to cause the EHD damage/corruption that caused it to malfunction and its Finder icon to vanish? I'm keeping my fingers crossed that all will still be well once the back-up is complete and I re-boot, and I'll report back if I experience any issues, so, hopefully, you won't hear from me again on this topic. ;-)

Jul 31, 2015 5:24 AM in response to epwgd

Unfortunately absolutely none of the solutions discussed in the various responses have worked for me with a WD My Book Studio which worked fine with my old MacBook Pro but never with my mid 2014 MacBook Pro running 10.10.4. I also tried WD so-called solutions and apps, none of which worked and in fact the installation of their apps seemed to go OK but these just disappeared and could not be found.


I did not try the bootcamp advice since I have no idea what that is.


Really fed up. Will stick to LaCie drives from now on!

Aug 17, 2015 8:49 AM in response to larshaeuser

This helped me, I was searching around for ages trying to find the answer. I could tell the disk was doing 'something', turn out to be a fsck.


Made we wonder if there was a way to understand what processes were working with a particular device, you can use something like:


sudo lsof | grep '/Volumes/Macintosh HD'


This shows the open files on the device which could indicate to a rogue process?

Aug 23, 2015 9:33 AM in response to Victoria Herring

None of the above suggestions worked for me. For instance,


sudo diskutil erasedisk JHFS+ Untitled /dev/disk4

Password:

Started erase on disk4

Unmounting disk

Error: -69888: Couldn't unmount disk


This is a LaCie XtremKey USB 3.0 that does not mount and cannot be formatted after the Mac Finder showed "Disk not ejected properly” (yet nobody ejected if, of course; it did it spontaneously) while saving a file to the pendrive. Any idea? Thanks.

Nov 2, 2015 1:50 PM in response to Holmes321

Huge thanks to Holmes321 and Dana 刀!!!!


My laptop is early 2008 MBP (runs 10.10.5) , and I use LaCie 2TB external hard drive as my time machine. I only do back up once a month. But 3 days ago, when I wanted to do back up, I found out there is no icon of my time machine disk on the screen, but I could see it in Disk utilities.


After I read some discussions here, I tried everything here mentioned. But for the people like me, who have a very little knowledge about computer, some words which people said here, I am difficult to understand and follow. (I did ask a friend to help me to understand how to follow these steps).


Finally, after all of tryings failed, (really I did try everything here the people mentioned), which always give me the same info "couldn't unmount disk". I found out "Holmes321" who wrote every step very clear. I followed what he said, wow, it finally worked! Now I have reformatted my external drive!

Massive thanks!

Mar 13, 2016 10:16 AM in response to Victoria Herring

HI to all, i have the sampe problem here. It's so frustated. My basic is not an it, i'm just a normal user doesnt understantd any programing language. Can anybody please help to guide me? 😟


ps : i already tried what you guys tell in here, go to terminal.. But i dont get it, which one is process number (sorry this is not my expertise) 😟 i'm just a noob


thank youu


E R

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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.