I am having a new issue where DMG files sometimes fail to mount due to "Resource busy" error.
This sometimes occurs and other times doesn't occur.
Temporary solutions include trying downloading the file through another browser, moving the file somewhere else before opening it, or trying again later, but they don't always fix the issue.
How can I fix this error for a permanent solution?
Best Answer
I'm having this issue as well and its driving me crazy. Here is what I found out but I don't have a solution.
After I download a .dmg (image) file through my browser, even though I do not open or mount the image the following things occur:
If you try to mount the image while the above conditions are occurring, you will get a resource busy error.
How do you know when you can mount the image? Use the lsof command. And if you are using homebrew, you can install a handy utility called watch. Watch just runs the command repeatedly ever 1 second (-n 1)
So use a command like this from the terminal. In my example, I'm just downloading the image file to my Downloads directory. I'm not trying to open the image or mount the image.
After the download finishes, then the output of the command shows this:
When the diskimage entry disappears from the lsof command (and this may take some time), you can then open image and mount it without getting the resource busy message.