Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hdiutil convert fails "Resource temporarily unavailable" #76

Open
steinybot opened this issue Jul 16, 2019 · 2 comments
Open

hdiutil convert fails "Resource temporarily unavailable" #76

steinybot opened this issue Jul 16, 2019 · 2 comments
Labels
good first issue Good for newcomers

Comments

@steinybot
Copy link

To Reproduce
Steps to reproduce the behavior:

  1. Run make all
  2. Open runMacOSVirtualbox.log
  3. See error

Expected behavior
The ISO should be created.

Additional context

I have noticed this error before when I was trying to create the ISO myself. I think it has something to do with detach not working properly.

I have tried running the ejectAll function which succeeds but doesn't do the right thing. There is a process that is dissenting the unmount:

➜  plugins hdiutil info | grep 'Install macOS'
/dev/disk4s3	Apple_HFS	/Volumes/Install macOS Catalina Beta
image-path      : /Volumes/Install macOS Catalina Beta/Install macOS Catalina Beta.app/Contents/SharedSupport/BaseSystem.dmg
image-alias     : /Volumes/Install macOS Catalina Beta/Install macOS Catalina Beta.app/Contents/SharedSupport/BaseSystem.dmg
/dev/disk6s3	Apple_HFS	/Volumes/Install macOS Catalina Beta 1
image-path      : /Volumes/Install macOS Catalina Beta 1/Install macOS Catalina Beta.app/Contents/SharedSupport/BaseSystem.dmg
image-alias     : /Volumes/Install macOS Catalina Beta 1/Install macOS Catalina Beta.app/Contents/SharedSupport/BaseSystem.dmg
/dev/disk8s3	Apple_HFS	/Volumes/Install macOS Catalina Beta 2
image-path      : /Volumes/Install macOS Catalina Beta 2/Install macOS Catalina Beta.app/Contents/SharedSupport/BaseSystem.dmg
image-alias     : /Volumes/Install macOS Catalina Beta 2/Install macOS Catalina Beta.app/Contents/SharedSupport/BaseSystem.dmg
/dev/disk10s3	Apple_HFS	/Volumes/Install macOS Catalina Beta 3
image-path      : /Volumes/Install macOS Catalina Beta 3/Install macOS Catalina Beta.app/Contents/SharedSupport/BaseSystem.dmg
image-alias     : /Volumes/Install macOS Catalina Beta 3/Install macOS Catalina Beta.app/Contents/SharedSupport/BaseSystem.dmg
➜  plugins hdiutil info | grep 'Install macOS' | awk '{print $1}'
/dev/disk4s3
image-path
image-alias
/dev/disk6s3
image-path
image-alias
/dev/disk8s3
image-path
image-alias
/dev/disk10s3
image-path
image-alias
➜  plugins hdiutil detach /dev/disk4s3
hdiutil: couldn't unmount "disk4" - Resource busy
➜  plugins sudo diskutil unmount /Volumes/Install\ macOS\ Catalina\ Beta
Password:
Volume Install macOS Catalina Beta on disk4s3 failed to unmount: dissented by PID 50458 (/System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/Resources/diskimages-helper)
@steinybot
Copy link
Author

doing a sudo kill -9 with the PID of the process returned by hdiutil info then rerunning make all seemed to do the job.

@AlexanderWillner AlexanderWillner added the good first issue Good for newcomers label Oct 5, 2019
@AlexanderWillner
Copy link
Owner

Thanks for the feedback. Seems the script needs better / more checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants