You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

hdituil -notremovable fails to mount disk image

I am trying to mount an encrypted disk image as root and marking it as not-removable:

hdiutil attach -notremovable /path todiskimage.sparsebundle

After I enter the passphrase, I get this error:

hdiutil: attach failed - no mountable file systems

I have seen reports elsewhere that state this used to work in 10.5.x and has not worked since 10.6.

Has anyone found a solution to this?

Thanks,

Wil

MacBook Pro 15", Mac OS X (10.6.4)

Posted on Nov 6, 2010 9:14 PM

Reply
8 replies

Nov 7, 2010 3:27 PM in response to rsqunit

I haven't tried it myself, but man hdiutil clearly states:

attach image \[options\]


In other words the order of the parameters should be the keyword 'attach', followed by the path to the image followed by the options.

In your example you are passing the options before the image, and that's likely confusing hdiutil.

So try:

hdiutil attach /path todiskimage.sparsebundle -notremovable

Nov 20, 2010 4:35 PM in response to udougy

udougy wrote:
Same problem - has there been an answer?

Yes, there has. It's in this thread. The arguments were in the wrong order. Also, the '-notremovable' option only works if the command is run as root. If the command doesn't work, try mounting the image without the option. If it still doesn't work, you have a corrupted disk image.

hdituil -notremovable fails to mount disk image

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