
Luckily this can be done, using one of two methods: You may have wanted the image to contain up to 1GB of data, but not always be 1GB on disk and instead start smaller and only grow with the size of items you place in it. While this might seem logical, it may not be desired. After setting the size (arrow), set the image type to "sparse" or "sparsebundle" with "no partition map," or set the image type to "compressed." When done, the image will create and mount, allowing you to copy files to it however, you might notice that by default the image size is the same as it was when you created it, so if you created an image that was 1GB in size, then the image file would be 1GB. When this is done, you can set the image size and optional encryption options.

By doing this, the image contents will only be accessible by you.ĭisk Images can be created in Disk Utility, by clicking the "New Image" button in the Disk Utility toolbar.

While convenient for file distribution, you can also use disk images as containers to store various files on your system, or on a local network server, especially if you use their encryption routines to secure them with a password. Disk images in OS X are one mode of packaging files for distribution or storage on external media, and, since they mimic the behaviors of optical discs like DVDs, they are commonly used by developers to distribute downloadable installers for their applications.
