Mount a .dmg from Terminal in Mac OS X

Posted by acidjunk on April 14, 2012

If you are a Terminal user you might want to mount .dmg files from commandline.

Basically thats pretty easy:

**Attaching a DMG

**

hdiutil attach /path/to/myDMGname.dmg

If you want to see how it’s mounted: do a

mount

Unmounting:

umount /Volumes/DiskImageName

Thats it.