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

couldn't unmount disk

A long time ago I partitioned my hard drive to have a separate boot disk. Since this is no longer necessary now that Lion does the same thing, I'd like to reformat my drive with a single partition. But Disk Utility says (when I boot from the Lion partition) "Disk Erase failed with the error: couldn't unmount disk". Googling this doesn't help - has no-one had this problem before? Any suggestions?

Mac OS X (10.7)

Posted on Feb 8, 2012 11:00 AM

Reply
15 replies

Feb 8, 2012 11:05 AM in response to mbahundra

Yep, no operating system will allow you to modify the current boot volume. In pre-Lion days, you'd boot from your install media and run Disk Utility off that. In Lion you either have to have a Recovery Partition, a Recovery Flash Drive or boot off Apple's servers via the Internet to be able to do what you want.


Check this out: http://www.apple.com/macosx/recovery/

Feb 9, 2012 3:44 PM in response to mbahundra

Don't you love it when they don't read the one important key part of the question?! Ah, at least he tried.


Try downloading the Lion Recovery Disk Assistant http://support.apple.com/kb/DL1433 and install it to a flash drive, then hold down the Option key while booting your Mac. Your new Lion Recovery Flash drive should be bootable, and you should be able to format your hard drive.


"When the Lion Recovery Disk Assistant completes, the new partition will not be visible in the Finder or Disk Utility. To access Lion Recovery, reboot the computer while holding the Option key. Select Recovery HD from the Startup Manager."

Feb 9, 2012 11:41 PM in response to mbahundra

There was a degree of miscommunication. When you stated "(when I boot from the Lion partition)", to me it meant the main partition where the regular O.S. resides and boots from, and that cannot be modified. Hence you need for the computer to boot from somewhere else. In pre-Lion days, you had bootable install DVDs, so that took care of the problem, but Lion did away with that option, replacing it with the Recovery partition or the Recovery drive (which can be a flash or a regular drive, external to the computer).


Once you manage to boot from a partition different from those you want to merge, since Leopard days it is not necessary to reformat the whole device. Just delete the partition on the bottom, commit the change, then drag the edge of the partition on top downwards to resize it and occupy the space just vacated. Commit and you'll have a bigger partition without having had to lose its contents.

Jul 1, 2012 2:31 PM in response to mbahundra

Hey, y'all:


I'm having the same issue. I AM booting into Lion Recovery (cmd+r), but, I am unable to do any partition actions in Disk Utility. And, of course, I cannot reinstall Lion, as it does not see my disk. I tried a repair disk, but all is OK. I tried shrinking the volume, to see if it would maybe "release" it's hold on the partition.


Another solution I read somewhere was to boot to a Windows or Linux CD, and format from there. Before I do that, anyone got a fix for this?


Thanks!

Jan 8, 2013 6:08 AM in response to mbahundra

I had a similar problem as the thread starter, and was able to fix it by making a bootable Mountain Lion Recovery Volume on a USB stick, as Courcoul suggested above (http://support.apple.com/kb/DL1433).


I had removed bootcamp and the associated partition from my Macbook Pro running Mountain Lion, and I wanted to reallocate that space on the hard drive to my main Mac partition.

The bootcamp assistant had failed halfway through the process, and it could not extend the partition to include the unallocated space ("partition failed"). It had also created errors on my main Mac volume (when scanning with Disk Utility).


1) The Disk Utility inside Mac OS was not able to repair the volume, so I had to boot from the recovery partition (cmd + r during boot), and then repair them. This would let the errors be repaired, but still I would get the error "Disk Erase failed with the error: couldn't unmount disk" when I was trying to resize the partition to include the unallocated space.


2) So Finally, when booting from the recovery USB stick, and using Disk Utility, I was able to resize the main partition to the full size of the hard drive.


I think the error "couldnt unmount disk" was due to the fact that somewhere in the process it said it was trying to "relocate the recovery partition". So I assume that if you boot from this recovery partition on the drive, it cannot do this part, and the process fails.


Thank you all very much! Your comments were really helpful. I hope my explanation is useful to someone with the same problem.

Nov 28, 2013 5:16 AM in response to mbahundra

I Know this might be late, but I managed to do my research and found a good solution and worked 100%. Easy to do and buy. It has to do with the HDD(Hard Disk Disk) Cable or ribbon what ever you want to call it. For Example mine is ( Macbook Pro Model A1278 HDD Hard Drvie Cable Part Number: 821-0814-A cost me about $20 bucks) Ordered it On ebay and replaced that Bad boy and Boom! Worked like a Charm. You have no idea what a Pain it was to figure this out. I hope it helped Most of you out and again Huge late notice to the Orginal post.

Apr 24, 2014 11:15 AM in response to SteveCNY

That's exactly why you have to have a USB flashdrive containing a bootable OS X volume to start up from. That way, the internal drive remains unmounted at all times. Besides the links I put up previously, if you had the precaution of keeping a copy of the Lion/Mountain Lion/Mavericks installer around, you can make a fully decked out bootable flashdrive OS X installer (which includes Disk Utility) with DiskMaker X.

Apr 24, 2014 11:44 AM in response to Courcoul

Not sure if Courcoul's response above is to me since it doesn't say, but since it was posted a few minutes after mine, I'll assume it was.

Creating bootable usb flashdrives etc. just to unmount an empty external usb drive? My way was way easier. And I do have copies of the installers. I don't need help, I was just adding another (very quick) workaround for people who also have PCs, since the other workarounds didn't work or were too time-consuming.

couldn't unmount disk

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