Blog/20120503 OS X volumes - hdiutil detach vs. Finder detach
A bit of a technical blog post, on something that was tricky to diagnose. It applies to OS X, version 10.7.3.
It seems that when a (newly created?) sparseimage is detached using
that some timestamps (of files in the sparseimage) change. I.e. if you check a timestamp, then use "hdiutil detach" and then reattach the image, then the timetamp is different (and has current time). So something seems to happen when "hdiutil detach" goes to work.
However, if you eject the sparseimage via Finder, this doesn't seem to happen.
A work-around is to use Applescript (e.g. with osascript) to eject the sparseimage in that way. That seems to work.
2012-05-03 | Back to blog|