Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Faster, better disk image mounting via a script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Faster, better disk image mounting via a script
Authored by: readparse on Mar 11, '03 12:26:11AM

Maybe I'm missing something here, but this is how I mount image files:

hdiutil mount file.dmg

Easy. hdiutil rocks in many, many ways. Check it out.

Oh, by the way, that command will (in addition to mounting the volume and showing the icon on the desktop) output a few lines that indicate the device that it's using for the mount. You can use that later to unmount...

Example... when you mount, you might see this:

/dev/disk1 Apple_partition_scheme
/dev/disk1s1 Apple_partition_map
/dev/disk1s2 Apple_HFS /Volumes/Camino

To eject, you use...

hdiutil eject disk1

Beautiful.



[ Reply to This | # ]
"hdiutil mount" actually runs hdid
Authored by: noworryz on Mar 11, '03 12:21:13PM

The hint is, of course, a way to mount images using the GUI interface, not the Terminal. "Simple" is not an adjective most users would use to describe interacting with the system using the Terminal.

By the way, when you type "hdiutil mount" in the Terminal, the program actually runs "hdid" to mount the image. That is why the little script uses "hdid."



[ Reply to This | # ]