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

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.

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.