My iMac is being very odd. It won't boot using the internal hard drive. It chimes, starts the Yosemite progress bar and then changes and looks as if it is about to show me the login screen but then it just hangs at a grey screen. After about 30 seconds it just shuts down.

My first thought was that it is just a software issue or hard drive failure so I attempted to boot up on my USB stick with Yosemite installer on it and then another one with TechTools Pro on it, they all fail at the same point as above.

I booted up and did a Apple Hardware Test, the initial test came back OK. The extended test came back OK also.

Just for the hell of it, I have put a different hard drive in it but still can't boot to USB stick to install OS X. Grr.

Any other suggestions would be gladly and gratefully received. Thank you :)


You should try to boot your OS in verbose mode or safe mode to see whether you can fix it or not.



If you really need to reinstall Mac OS X Yosemite, I'd suggest you run this script from any Mac, you need to have Yosemite downloaded in /Applications.

# Mount the installer image
hdiutil attach /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app

# Convert the boot image to a 8GB sparse bundle
hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/Yosemite
hdiutil resize -size 8g /tmp/Yosemite.sparseimage

# Mount the sparse bundle for package addition
hdiutil attach /tmp/Yosemite.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build

# Copy Packages and Base System files to the sparse bundle
rm /Volumes/install_build/System/Installation/Packages
cp -rp /Volumes/install_app/Packages /Volumes/install_build/System/Installation/
cp -p /Volumes/install_app/BaseSystem* /Volumes/install_build/

# Unmount the installer image and sparse bundle
hdiutil detach /Volumes/install_app
hdiutil detach /Volumes/install_build

# Resize the partition in the sparse bundle to remove any free space
hdiutil resize -size `hdiutil resize -limits /tmp/Yosemite.sparseimage | tail -n 1 | awk '{ print $1 }'`b /tmp/Yosemite.sparseimage

# Convert the sparse bundle to ISO/CD master
hdiutil convert /tmp/Yosemite.sparseimage -format UDTO -o /tmp/Yosemite
rm /tmp/Yosemite.sparseimage
mv /tmp/Yosemite.cdr ~/Desktop/Yosemite.iso

Credit goes to the person who wrote that script for Maverick

You can then restore the ISO using Disk Utility on a 8Gb USB Stick and it will be bootable.

  • Hi Florian, thanks for the response. I have tried booting in safe mode without any luck. Verbose mode wasn't much help either. – Jordan S Jun 1 '15 at 9:18
  • Hi Jordan, you're welcome. The idea with verbose is to check what it loops on or what is the last things it is loading before crashing/kernel panic. Once you get a USB installer, you can run a disk check via Disk Utility. If it gets too hard to troubleshoot I'd suggest you use Target Mode, backup your user profile (/Users/xxxxxxx) and reinstall OS X. – Florian Bidabe Jun 2 '15 at 12:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .