Just wanted to share a useful tip for working with disk images on Mac OS X.
I had to work with custom android builds recently and as you might know it requires case-sensitive partition or disk image to be able to compile it.
The following couple of functions added to .bash_profile make the mounting and unmounting the disk images easier from the command line:
function mountFroyo { hdiutil attach ~/froyo.dmg -mountpoint /Volumes/froyo; }
function unmountFroyo { hdiutil detach /Volumes/froyo; }
Now you can just type mountFroyo or unmountFroyo, for example, to mount/unmount your custom disk image.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment