When trying to convert or resize a dmg image I get the error:
hdiutil: convert failed Resource Temporarily Unavailable error
hdiutil: resize: failed. Resource temporarily unavailable (35).
(hdiutil error code 35).
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
The problem appears to happen when you unmount the image using
Remount the image (either using
hdiutil attach or just double click the image) and use the command
hdiutil detach it again. This will unmount and eject the image.
hdiutil detach /Volumes/<your image>
Another possibility is that the disk image is still mounted (from previous work on it). In this case, just select the eject icon.
Afterwards, the hdiutil convert worked great.
In my case something was trying to access the image. What finally worked:
sudo lsof | grep ~/Unix.sparsebundle/ sudo kill -9 889 resize -size 100g ~/Unix.sparsebundle/
restart your machine and it run it again it should work.