geerlingguy/macos-virtualbox-vm

"Failed to mount the InstallESD.dmg" Error

leoherzog opened this issue · 4 comments

Hello!

I'm running a fresh copy of Sierra and a fresh download of the Sierra installer (10.12.3) in my Applications directory. When I run this script, I get the following error:

Mount the installer image
-----------------------------------------------------------
$ hdiutil attach /Applications/Install macOS Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil: attach failed - Resource busy
Failed to mount the InstallESD.dmg from the instaler at Install macOS Sierra.app.  Exiting. (1)

Any thoughts?

Oh.

I went into Disk Utility and unmounted the image, and the script worked great. 🤦‍♂️

@xd1936 - No problem, I'm happy you posted the issue and solution, at least—future Google searches will thank you :)

True that :)

Thanks!

It worked.

Thanks!