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
Sort By: 

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
Reply

Nov 8, 2010 7:27 AM in response to rsqunit

I'm having the same issues, trying to mount a sparse bundle with the -notremovable option and it will not mount. I have made sure that the order of options and arguments to hdiutil are as listed in the man page but I still receive the error

hdiutil: attach failed - no mountable file systems


Is this a possible bug in 10.6?
Reply

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.
Reply

Nov 29, 2010 2:34 PM in response to Linc Davis

Unfortunately no that is not correct, as shown below changing the order of arguments and running with sudo did not allow an image to be mounted as nonremovable.

$ sudo hdiutil attach $HOME/Documents/work.sparsebundle -notremovable
Password:
Enter password to access "work.sparsebundle":
hdiutil: attach failed - no mountable file systems
Reply

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.