Disk Utility (El Capitan): Create a disk image
Use Disk Utility to create disk images.
Create a blank disk image for storage
Create an empty disk image, fill it with data, then use it to create disks, CDs, or DVDs.
-
Choose File > New Image > Blank Image.
-
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.
-
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.
-
In the Size field, enter a size for the disk image.
-
Click the Format pop-up menu, then choose the format for the disk:
-
If the disk will be used with Mac computers, choose OS X Extended (Journaled) or OS X 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.
-
Click the Partitions pop-up menu, then choose a partition layout.
-
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: 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.
-
-
Click Create, 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.
-
In the Finder, copy your files to the mounted disk image, then eject it.
-
Restore the disk image to a disk.
For more information about disk image types, see the hdiutil man page.
Create a disk image from a disk or connected device
Create a disk image that includes the data and free space on a physical disk or connected device, such as a USB device. For example, if a USB device or volume is 80 GB with 10 GB of data, the disk image will be 80 GB in size and include data and free space. You can then restore that disk image to another volume.
-
Select a disk, volume, or connected device in the sidebar.
-
Choose File > New Image, then choose “Disk Image from device name.”
-
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.
-
To encrypt the disk image, click the Encryption pop-up menu, then choose an encryption option.
-
Click the Image Format pop-up menu, then choose an option:
-
Read-only: The disk image can’t be written to, and is quicker to create and open.
-
Compressed: Compresses data, so the disk image is smaller than the original data. The disk image is read-only.
-
Read/write: Allows you to add files to the disk image after it’s created.
-
DVD/CD master: Can be used with third-party apps. It includes a copy of all sectors of the disk image, whether they’re used or not. When you use a master disk image to create other DVDs or CDs, all data is copied exactly.
-
-
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.
For technical information about creating a restore disk image, see the Apple Software Restore (ASR) manual (man) page.
Create a disk image from a folder or connected device
Create a disk image that contains the contents of a folder or connected device, such as a USB device. This method doesn’t copy a device’s free space to the disk image. For example, if a USB device or volume is 80 GB with 10 GB of data, the disk image will be 10 GB in size and include only data, not free space. You can then restore that disk image to another volume.
-
Choose File > New Image, then choose Disk Image from Folder.
-
Select the folder or connected device in the dialog that appears, then click Image.
-
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.
-
To encrypt the disk image, click the Encryption pop-up menu, then choose an encryption option.
-
Click the Image Format pop-up menu, then choose an option:
-
Read-only: The disk image can’t be written to, and is quicker to create and open.
-
Compressed: Compresses data, so the disk image is smaller than the original data. The disk image is read-only.
-
Read/write: Allows you to add files to the disk image after it’s created.
-
DVD/CD master: Can be used with third-party apps. It includes a copy of all sectors of the disk image, whether they’re used or not. When you use a master disk image to create other DVDs or CDs, all data is copied exactly.
-
Hybrid image (HFS+/ISO/UDF): This disk image is a combination of disk image formats and can be used with different file system standards, such as HFS, ISO, and UDF.
-
-
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.
For technical information about creating a restore disk image, see the Apple Software Restore (ASR) manual (man) page.
Create a secure disk image
If you have confidential documents that you don’t want others to see without your permission, you can put them in an encrypted disk image.
-
Choose File > New > Blank Image.
-
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.
-
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.
-
In the Size field, enter a size for the disk image.
-
Click the Format pop-up menu, then choose the format for the disk:
-
OS X Extended (Journaled)
-
OS X Extended (Case-sensitive, Journaled)
-
-
Click the Encryption pop-up menu, then choose an encryption option.
-
Enter and re-enter a password to unlock the disk image, then click Choose.
CAUTION: If you forget this password, you won’t be able to open the disk image and view any of the files. -
Use the default settings for the rest of the options:
-
Click the Partitions pop-up menu, then choose Single partition - GUID Partition Map.
-
Click the Image Format pop-up menu, then choose “read/write” disk image.
-
-
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.
-
Copy the documents you want to protect to the disk image.
-
If you want to erase the original documents so they can’t be recovered, drag them to the Trash, then choose Finder > Secure Empty Trash.
When you’re finished using the documents on the secure disk image, be sure to eject the disk image. As long as it’s available on your desktop, anyone with access to your computer account can use the documents on it.
To access the data in a disk image, double-click it. It appears on your desktop, and you can add, remove, and edit files on it just as you would with a disk.