

I feel sure that this has already been reported in several Feedback entries. Maybe a kind Apple engineer will get round to fixing this bug in Disk Utility, so that it automatically ejects the volumes in a container to be imaged, and mounts them again once the imaging is complete. Therefore imaging an APFS container – when you remember to eject all its volumes first – is similar in behaviour to imaging an HFS+ folder.
#CODEFIED LIGHTDISK UTILITY FREE#
The size of the resulting container is only slightly larger than the used space in the container, and doesn’t include any free space.

Sure enough, if you do that, Disk Utility happily launches its helper and images the whole container. With an error reporting “Resource busy” on a container with mounted volumes, this looks like it can be worked around by unmounting all the volumes in that container before trying to image it.

I next tried to image a whole APFS container, and that started to look promising, but then failed. To create a valid APFS disk image, device needs to be an APFS container or contain an APFS container partition.” If you want to create an image of a volume (or do almost anything else with disk images), then you’re much better off using C-Command’s excellent DropDMG. There are hints about this in the hdiutil man page, where it warns “with APFS, imaging from a device that is an individual APFS volume is invalid. My first discovery is that Disk Utility can’t create a disk image from an APFS volume at all, despite the promises in its Help book. That sounds strange, as if it hasn’t been updated for APFS, as Apple’s new file system’s volumes don’t have any free space of their own. When creating one from a disk or volume, the image contains the whole of that item, including free space, whereas creating one from a folder only occupies the space needed to contain its data. What happened wasn’t what I expected, nor what it documented in its Help book.Īccording to the Help book, Disk Utility can create a disk image from a disk, volume, folder or connected device. For various reasons, one of them sheer curiosity, I wanted to image one of my disks, and turned to Disk Utility (version 19.0 (1704), as supplied in Catalina 10.15.6).
