On this page
- DD files are raw byte for byte copies of disks, made with the dd command.
- First bytes and size show which kind of disk you have.
- 7-Zip and Sleuth Kit open DD files and change nothing in them.
- Only a hash comparison finds quiet damage.
What Is a DD File?
DD files are raw copies of disks, made with the dd command. A DD file has no header, no compression and no checksum, so it is as big as the disk it copies.
According to Wikipedia, Ken Thompson wrote dd and it appeared in Version 5 Unix in 1974. The ending is a habit and not a rule, because forensics.wiki says dd sets no required ending. Some raw copies end in .img.
FileInfo lists a second meaning, DiskDoubler archives from Mac OS Classic. We found no sample, so our tests do not cover them. Our DD file guide covers the raw disk kind in full.
How Do You Tell Which Kind of DD File You Have?
The first bytes and the size name the kind. A partition table ends sector 0 with 55 aa. A GPT disk shows the text EFI PART at byte 512. A bare ext4 file system shows 53 ef at byte 1,080.
xxd -s 510 -l 2 evidence.dd
xxd -s 512 -l 8 evidence.dd
ls -l evidence.ddDivide the size by 512. A remainder means bytes were added or cut. Our DD file guide has a Python script that names the kind and compares the size on disk with the size the file system claims.
How Do You Open a DD File?
Open a copy with 7-Zip or Sleuth Kit. Both list the files inside and write nothing to the DD file.
Copy the File
Work on a copy and keep the original untouched.
List the Contents
Use
7z l evidence.ddormmls evidence.ddfor the partitions.Save the Files
Use
7z x evidence.dd -oout, orfls -r -o 2048 evidence.ddto list files from the partition that starts at sector 2,048.
In our test, Sleuth Kit opened all 7 DD files that have file systems. 7-Zip opened 6 and could not open the exFAT file.
Is a DD File Safe to Open?
Opening a DD file is low risk when you open it read-only. The copy holds whatever the disk held, including files its owner deleted and programs. Do not start any program from inside it.
DD files copy free space too. In our FAT32 test, Sleuth Kit listed 3 deleted files and returned all three byte for byte. The ext4 test returned none, because ext4 clears the pointers when it deletes files.
How Do You Check a DD File Before You Trust It?
Hash the file. A hash is the only check that finds quiet damage. Sleuth Kit, 7-Zip and mtools all finished without errors on a DD file with 4,096 overwritten bytes, and only a hash comparison showed that 4,079 bytes had changed.
Get-FileHash evidence.dd
sha256sum evidence.ddAccording to Microsoft, Get-FileHash uses SHA256 by default. Write the hash down the day you make the file and compare it before every job.
What We Tested and What We Left Out
Our counts come from 20 DD files we built in October 2026, 8 good and 12 damaged. We used Sleuth Kit 4.12.1, 7-Zip 23.01, Linux mounts and mtools 4.0.43. Of the 12 damaged files, 9 gave back every file after at most one small repair.
We did not test failing disks, DD files over 44 MiB, Mac DD files or DiskDoubler archives. We also left out the Windows viewers we found.
Frequently Asked Questions
What is a DD file?
DD files are raw copies of disks made with the dd command. They store every byte in order with no header and no compression.
How do I open a DD file?
Open a copy with 7-Zip or Sleuth Kit. Both list the files inside and write nothing to the DD file.
Is a DD file safe to open?
Opening one read-only is low risk. The copy can hold programs and deleted files, so never start a program from inside it.
Why is my DD file so big?
A DD file is as big as the disk or partition it copies. It has no compression.
Does a DD file hold deleted files?
Yes, because it copies free space. In our test a FAT32 DD file gave back 3 deleted files and an ext4 DD file gave none.
Can a DD file be damaged?
Yes. Of our 12 damaged test files, 9 gave back every file after at most one small repair. A hash comparison finds quiet damage that readers miss.
How do I make a DD file?
Use the dd command with if= for the source and of= for the output. Check both names twice, because swapping them erases the disk.
