Skip to main content
X

Send us a Topic or Tip

Have a suggestion for the blog? Perhaps a topic you'd like us to write about? If so, we'd love to hear from you! Fancy yourself a writer and have a tech tip, handy computer trick, or "how to" to share? Let us know what you'd like to contribute!

Thanks for reaching out!

How to Create a Disk Image (.dmg) for Storage in macOS

Disk Utility Icon

Using the Disk Utility in macOS, you can create a blank disk image for storage. A disk image (.dmg file) is a file that looks and acts like a mountable device or volume. 

In other words, it’s a file that contains other files and folders. You can fill an empty disk image with data, then use it to create disks, CDs, or DVDs. There’s a lot of benefits to disk imaging, as noted by Dmitry Shesterin at https://www.faronics.com/news/blog/the-benefits-of-disk-imaging. Among them:

  • There’s no need to set up every computer separately or set up the whole operating system from scratch. One image can be put on many machines.
  • You can make as many different images as you want. This gives you the flexibility to change back to any preferred configuration. 
  • If you want to keep data from a computer, you don’t need to keep the actual hardware around. Just create an image of that drive and store it. 

With macOS, to create an empty disk image, launch Disk Utility by opening Launcher, go into the “Other” folder, and then click the Disk Utility icon.

screen shot of "other" folder in macos launcher

With Disk Utility open, choose File > New Image > Blank Image.

Disk Utility showing File menu

To Create a Disk Image

  1. Enter a file name for the disk image, add tags if necessary, then choose where to save it. This is the name that appears in the Finder, where you save the disk image file before opening it.
  2. In the Name field, enter the name for the disk image. This is the name that appears on your desktop and in the Finder sidebar after you open the disk image.
  3. In the Size field, enter a size for the disk image.
  4. Click the Format pop-up menu, then choose the format for the disk:
screen shot of disk uitility window showing create new menu
  • If the disk will be used with Macs, choose Mac OS Extended (Journaled) or Mac OS Extended (Case-sensitive, Journaled).
  • If the disk will be used with Windows or Mac computers and is 32 GB or less, choose MS-DOS (FAT).
  • If the disk will be used with Windows or Mac computers and is over 32 GB, choose ExFAT.
  • To encrypt the disk image, click the Encryption pop-up menu, then choose an encryption option.

Partition and Format the Disk Image

  1. Click the Partitions pop-up menu, then choose a partition layout.
  2. Click the Image Format pop-up menu, then choose an option:
    • Sparse bundle: Same as a sparse image, but the directory data for the image is stored differently. Uses the .sparsebundle file extension.
    • Sparse disk image: Creates an expandable file that shrinks and grows as needed. No additional space is used. Uses the .sparseimage file extension.
    • Read/write: Allows you to add files to the disk image after it’s created. Uses the .dmg file extension.
    • DVD/CD master: Changes the size of the image to 177 MB (CD 8 cm). Uses the .cdr file extension.
  3. Click Save, then click Done.

Disk Utility creates the disk image file where you saved it in the Finder and mounts its disk icon on your desktop and in the Finder sidebar.

Dennis Sellers
the authorDennis Sellers
Contributing Author
Dennis has over 40 years of journalism experience and has written hundreds of articles. For the past 20-plus years, he's been an online journalist, covering mainly Apple Inc. He's written for MacCentral, MacWorld, MacMinute, Macsimum News, Apple Daily Report, and is now contributing editor at Apple World Today.
Be Sociable, Share This Post!

Leave a Reply

1 Comment

  • I want to consolidate my files from my iMac and external HDDs and transfer them to my new QNAP NAS. However, I want to retain the original file modification dates, so simply copy and paste will not work. Can I create an image of the folders only (not the entire disk) and restore these folders/files onto the NAS? If so, can I restore several images onto a single volume (partition) or will it overwrite the current contents of the volume?