Skip to content

Disk images and packages ​

A virtual machine's disk as vhd vhdx avhdx vmdk qcow2 qcow vdi, a raw img, a disc as iso, a Mac dmg; installers and packages as deb udeb rpm pkg xar xip msi

A QEMU disk image browsed as a folder: its two partitions, an NTFS volume and an ext4 volume, each a folder

A disk image opens as the files on it, browsed as folders like an archive: its partitions, the folders on each, and every file opening with its own viewer. Nothing is mounted and nothing is extracted to disk: the image's blocks are read where they lie, and a file's bytes when you open it.

Disk images ​

KindFilesRead
Hyper-V and Virtual PCvhd, vhdx avhdxfixed and dynamic disks
VMwarevmdksparse disks, stream-optimized ones too
QEMUqcow2compressed clusters too (deflate or Zstandard)
VirtualBoxvdi
a raw copyimg, a dd copya partition table, or a file system from the first byte
a discisoISO 9660 with Joliet names, and UDF when the disc has it
a Mac disk imagedmgcompressed or not (zlib, bzip2, LZFSE, LZMA, Apple's ADC)

The partition table is read — GPT, the one disks use today, or the older MBR (master boot record) with its extended partitions — and each partition is a folder of its own, numbered and named by its name or its label: 1 EFI System Partition. A disk with one volume opens straight on its files.

File systemNotes
FAT12, 16 and 32USB sticks and memory cards; long names included
exFAT
NTFSWindows'; compressed files read, its system files left out
ext2, ext3, ext4Linux's
APFSthe Mac's file system, on a disk image or in a dmg
HFS+in a dmg
UDFversions 1.02 to 2.60

A partition whose file system is not read shows as one file, <number name>.img, which you can open in hex. A Linux swap area opens as the facts of its header: its version, page size, pages, label and identifier.

What is not read ​

  • An encrypted volume — BitLocker, FileVault, an encrypted APFS — is named for what it is, and its files are not read.
  • An encrypted QCOW2, a QCOW2 that rests on a backing file, and QCOW version 1; a VMDK whose description points at other extent files.
  • An NTFS file encrypted with EFS (Windows' encrypting file system) is listed, its bytes not read; so is an APFS file the system compressed.

Packages ​

PackageFilesWhat you see
Debiandeb udebthe files it installs, and its control files under DEBIAN/
RPMrpmthe files it installs; structure shows its header and payload
macOS installerpkg xar xipits parts, and each payload as the folder of files it installs
Windows Installermsithe streams it is made of
LHA, Japan's and the Amiga's archiveslzh lhaits files

RPM is Red Hat's package format, used by Fedora, openSUSE and the like. A macOS .pkg and .xip are xar archives: their payloads, whichever way they are compressed, are opened as folders.

Next: Anki decks.