unix command for mounting a sparse image

Hi,

I'm running a back up program (SuperDuper) and have my backup files all bundled up in a sparse image file on a remote disk connected to an airport extreme. In the Finder, if I double click on the backup.sparseimage file (which is over 80GB in size) then it proceeds to check the image's checksum (over the slow 80211g airport) and puts up a dialog box with a barbershop progress meter. The checksum checking operation can be aborted by clicking on the Skip button and the image mounts right away. If you don't skip the checking, it takes over an hour just to mount!! I need to be able to mount this sparse image under program control. Is there a unix command that can mount the image and bypass the checksum checking that the Finder insists on doing? All I'm trying to do is find a solution to this problem so I can pass it along to the developer.

Thanks in advance for your response(s).

Mick.

17" MacBook Pro C2D, Mac OS X (10.5)

Posted on Mar 17, 2008 7:21 AM

Reply
5 replies

Mar 17, 2008 8:25 AM in response to Zerwas

Thanks for your replies Zerwas & Cole.

I tried:

hdiutil mount -noverify image.dmg

and I believe it did do the verify operation. It took a little over 10 minutes, which is about the same as the Finder when I let it do the mount without skipping the checksumming. In case you're wondering why that time is so much shorter than previously quoted, it's because I did it on a current laptop running the much faster 802.11n. On the other much slower machine running 802.11g it's over 1.75 hours (I gave up after waiting that long).

I can't use the Disk Utility method because that's not possible under program control (I believe). Disk Utility does not support AppleScript.

I also tried the hdid command and it took about the same time to mount so I'm assuming it also did a verify.

So then, non of these commands worked as fast as the Finder when I click on the Skip button 😟.

Anymore thoughts?

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.

unix command for mounting a sparse image

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