Disk Utility (recovery mode) stuck at loading

I want to do a clean install of el capitan OS. I booted to recovery mode, chose reinstall os x and followed the steps. So far so good. When it came to choose the destination disk where I wanted to install the OS, it did not show any hard drive, i.e Macintosh HD was not shown so I could select it. I figured I had to format it first. So I close the installation and went to Disk Utility. The problem is Disk Utility is stuck at loading and does not show anything.

My OS is corrupted, that is the reason why I want to do a fresh installation. With corrupted I mean, I can boot my system only if I go to single-mode and mount the hard drive with mount -uw / and then exit. But this is not a long term solution. I search everywhere in the web and there are many solutions out there, but none worked form me.

I tried erasing and formatting the hard drive when in single-mode with the help of diskutil. But this did not work because the DiskManagement Framework was missing. So I tried loading the files manually with launchctl. But still I can not use diskutil in single-mode.

I tried also fsck, it did not do any good.

I ran out of options. I don't know what to do.

Here is an image when I try to erase the partition via Disk Utility

enter image description here

And here is an image when I try to reinstall the OS. No Hard disk is shown to select

enter image description here


A solution for getting the disk utility unstuck is opening Terminal and running this:

sudo ps ax | grep hfs

You will see a line that looks like this:

**970**   ??  U      2:08.88 /System/Library/Filesystems/hfs.fs/Contents/Resources/./fsck_hfs -y /dev/disk2s4

Take note of that first number and run this:

sudo kill -9 970 # (use your own number here)

The Disk Utility gets automatically unstuck. If your hard drive shows up, but the drives are grayed out, try restarting into Recovery mode (pressing Cmd+R after booting). After a couple of restarts you might be able to finally run First Aid on your drive.


I suspect that your hard drive is in the process of crashing. I am basing my reasoning off this statement:

My OS is corrupted, that is the reason why I want to do a fresh installation. With corrupted I mean, I can boot my system only if I go to single-mode and mount the hard drive with mount -uw / and then exit. But this is not a long term solution. I search everywhere in the web and there are many solutions out there, but none worked form me.

To verify that this is the case, there are a couple steps to take...

Check the SMART status.

Boot like you described,then run the command:

diskutil list

You will get a listing of your drives. Chances are it will be /dev/disk0, but it may be different. Just make note of which one is labeled "Macintosh HD" as you noted in your question.

Then, issue the command:

diskutil info /dev/disk0 | grep -i smart

If it returns back anything but the word "Verified", your drive is crashing. OS X usually doesn't get corrupt unless the user does something very outlandish and very deliberate. Most often it is because the HDD is beginning to fail and bad sectors are cropping up.

Run Apple Hardware Test/Diagnostics

I am just going to guess and say you have a pre-June 2013 Mac Product, so you will run Apple Hardware Test.

Simply hold down the D key while booting from a powered off state (power supply plugged in if you are on a Macbook) and then run the "Extended Diagnostics".

If you have a post-June 2013 product, launching Diagnostics is the same procedure, just a different set of tools.

Replace the Drive..

You didn't mention which Mac you have specifically but replacing a hard drive is actually quite easy. There are a couple of other posts here on Ask Different that go into this exact procedure. I will link them for reference.

  • My Mac is getting really slow, what should I do?

  • El-capitan crashing while booting

  • How do I know if I need a new hard drive?

Each of these posts has detailed answer and references on how to replace your drive, and even do a memory upgrade while you have it open.