Mount a .dmg from Terminal in Mac OS X

Mount a .dmg from Terminal in Mac OS X

acidjunk
April 14, 2012
1 min read

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

Basically thats pretty easy:

Mount a DMG

$ hdiutil attach /path/to/myDMGname.dmg

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

$ mount

Unmounting it again

Substitute “DiskImageName” with the actual name.

$ umount /Volumes/DiskImageName

Thats it.

Tags

Computerz