hdiutil "Resource temporarily unavailable"

Any command I type into terminal using hdiutil results in some variation of "hdiutil: (command) failed - Resource temporarily unavailable"


This happened when I tried mounting a .dmg file, converting it, and attaching it. It could be worth mentioning I just got this Macbook a couple days ago and am not super experienced with using the Terminal. What could be causing hdiutil not to work?

MacBook Pro 14″, macOS 12.3

Posted on Jul 31, 2022 6:46 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 1, 2022 1:29 PM

Did you perform a clean install on this laptop before starting to use it? Otherwise who knows what state macOS is in from the previous owner.


Try booting into Safe Mode to see whether you have the same issues just in case you have some third party software installed that is interfering with the normal operation of macOS.


FYI, you can include the "--verbose" option which may expand upon the error condition.


Also make sure you format the command properly. I sometimes find the Apple way of doing these things to be a bit confusing. I believe the general format of the command would be something like this where the options are actually at the end of the command:

hdiutil  attach  ~/mytest.dmg  --verbose  



7 replies
Question marked as Top-ranking reply

Aug 1, 2022 1:29 PM in response to eluu1

Did you perform a clean install on this laptop before starting to use it? Otherwise who knows what state macOS is in from the previous owner.


Try booting into Safe Mode to see whether you have the same issues just in case you have some third party software installed that is interfering with the normal operation of macOS.


FYI, you can include the "--verbose" option which may expand upon the error condition.


Also make sure you format the command properly. I sometimes find the Apple way of doing these things to be a bit confusing. I believe the general format of the command would be something like this where the options are actually at the end of the command:

hdiutil  attach  ~/mytest.dmg  --verbose  



Aug 4, 2022 6:43 PM in response to eluu1

I've only used "hdiutil" a few times myself so I am not familiar with all the options. When experimenting you should always create another copy of the file to work with in case you make a catastrophic mistake plus make sure to always have a good backup as well.


You could try using the "-readonly" as well.


I would try using the "-nomount" option. This may allow you to use Disk Utility First Aid on the contents if it is a writable image file.


Is the .dmg file actually on your internal drive located within the home user folder? Maybe try this while the file is located on a USB drive.


You can try the "-debug" option to see what information it gives. You are correct there is only one dash/hyphen for the "-verbose" option.


When you tried converting the image did it succeed or fail?


This .dmg file may be damaged so you may need to restore it from a backup.


Jul 31, 2022 7:37 PM in response to eluu1

eluu1 wrote:

Any command I type into terminal using hdiutil results in some variation of "hdiutil: (command) failed - Resource temporarily unavailable"

This happened when I tried mounting a .dmg file, converting it, and attaching it. It could be worth mentioning I just got this Macbook a couple days ago and am not super experienced with using the Terminal. What could be causing hdiutil not to work?


You can read more directly from the Terminal.app the man page is avaible for most any command, copy & paste:


hdiutil man | more



try a different .dmg and compare your results...

Aug 1, 2022 3:27 PM in response to HWTech

I think I did a clean installation, this is my first Macbook. And I don't think there was a previous owner because it was new straight from the Apple Store.

I had the same issue during and after booting into Safe Mode unfortunately.

Here is what it put when I wrote

hdiutil attach ~/thefile.dmg -verbose

(I hope -verbose was the correct way of formatting but I'm not sure)

Initializing…
DIBackingStoreInstantiatorProbe: interface  0, score      100, CBSDBackingStore
DIBackingStoreInstantiatorProbe: interface  1, score    -1000, CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  2, score    -1000, CRAMBackingStore
DIBackingStoreInstantiatorProbe: interface  3, score    -1000, CDevBackingStore
DIBackingStoreInstantiatorProbe: interface  4, score    -1000, CCURLBackingStore
DIBackingStoreInstantiatorProbe: interface  5, score    -1000, CVectoredBackingStore
DIBackingStoreInstantiatorProbe: interface  0, score      100, CBSDBackingStore
DIBackingStoreInstantiatorProbe: interface  1, score    -1000, CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  2, score    -1000, CRAMBackingStore
DIBackingStoreInstantiatorProbe: interface  3, score    -1000, CDevBackingStore
DIBackingStoreInstantiatorProbe: interface  4, score    -1000, CCURLBackingStore
DIBackingStoreInstantiatorProbe: interface  5, score    -1000, CVectoredBackingStore
Attaching…
Error 35 (Resource temporarily unavailable).
Finishing…
DIHLDiskImageAttach() returned 35
hdiutil: attach failed - Resource temporarily unavailable

Aug 3, 2022 11:16 AM in response to HWTech

Does any of this info give you any hint to what the issue is? I don't really understand a lot of it. Here are other commands I ran that might offer more info:

sudo hdiutil imageinfo ~/thefile.dmg


hdiutil imageinfo -verbose ~/thefile.dmg


hdiutil attach -debug ~/thefile.dmg

I've just seen them suggested when searching through the internet for a solution. Do you think any of the output from those would help? I tried adding the output from the first one but got an error that "You have included content in your post that is not permitted."

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

hdiutil "Resource temporarily unavailable"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.