Monday, January 02, 2006

Creating a mountable disk image under OS X

Ever wonder how to make your own mountable disk image files under Mac OS X? It's a very simple procedure using the hdiutil command.

Here's a simple example which makes a twenty megabyte disk image called foobar.dmg.

hdiutil create -fs HFS+ -volname foobar -size 20m foobar

Look at the hdiutil man page for further options and information. If you have absolutely no idea what a man page is, do the following:

  1. Open a terminal window (Applications->Utilities->Terminal)

  2. After the window opens, type man hdiutil in the window and press return

  3. Read the instructions...though, if you are following these directions on how to read a man page, you might have difficulty understaning the contents of the man page. :) Sorry but you'll have to work things out for yourself from here.

No comments: