← All posts
·6 min read

Recovered files are 0 bytes (0 KB)? Why, and what still works

Publisher of DataRecover Pro

The recovery finished, the file is there with the right name, and Finder says Zero bytes. Or the size looks right, but the video is black and the document is blank. Both mean the same thing: you have the file's record without its contents. Whether the contents can still be found depends on why.

A file has two parts on disk. The directory entry holds the name, the dates, the size, and a pointer to where the data starts. The data itself lives elsewhere. A tool that reads the filesystem brings back whatever the entry says, and the entry can be wrong.

Cause 1: the camera or app never finished the file

Many cameras create a clip's directory entry when recording starts and only fill in its final size when the clip is closed. If the battery died, the card was pulled, or the camera locked up, the entry stays at zero bytes even though minutes of footage were written to the card. The same thing happens to a document whose app crashed in the middle of a save.

This is the good case. The data is on the card, in space the filesystem thinks is free, and a deep scan finds it by its signature instead of by its directory entry. A video found this way has no index, because the camera writes the index last, so it won't play until it is repaired: see a recovered MP4 or MOV that won't play and ProRes and 4K MOV after an interrupted recording.

Cause 2: the entry survived, the pointer didn't

When a file is deleted, some filesystems keep the name and clear or reuse the part of the record that says where the data is. A filesystem scan can list that file, and even recover it, but there is nothing behind the name. On APFS this shows up as a file with no extents. DataRecover Pro gives those files a low confidence score in the results, which is the cue not to count on them.

Cause 3: it's a cloud placeholder

iCloud Drive with Optimize Mac Storage, Dropbox online-only files, and OneDrive Files On-Demand all leave a placeholder on the Mac and keep the contents on their servers. Recover a placeholder and you get a placeholder. The file is not on the disk to be found. Restore it from the service's own deleted-files area instead; iCloud Drive keeps Recently Deleted for 30 days.

Cause 4: the right size, but all zeros

A file can have its full size and still be empty. On an SSD, TRIM tells the drive that a deleted file's blocks are no longer needed, and the drive hands back zeros for them from then on. The filesystem record may still look perfect. The file recovers at full size and contains nothing.

Check with xxd recovered.jpg | head. Rows of 0000 0000 from the first line mean the data is gone. In DataRecover Pro the free preview shows the same thing before you pay: no thumbnail, and a hex view full of zeros. Its repair engine also refuses a file that is more than 95 percent null bytes, because there is nothing in it to rebuild. What TRIM leaves behind is covered in APFS and TRIM: why SSD recovery is harder.

Cause 5: the copy itself failed

If the destination drive filled up, disconnected, or is failing, a recovery can create each output file and write nothing into it. Check the destination's free space, and never recover onto the drive you are recovering from. Then recover again to a different drive.

What to do, in order

1. Stop writing to the source drive. A zero-byte entry from an interrupted recording points at nothing, so the footage is protected only by the fact that nothing has overwritten it yet.

2. Run a deep scan. It ignores directory entries and looks for file signatures in every block, including the space marked free. Deep-scan results have generated names such as recovered_0001.mp4, so identify yours by type, size, and thumbnail.

3. Preview before you recover. A result that shows a real thumbnail or plays in Quick Look has data behind it. Scanning and preview are free and need no account. Download DataRecover Pro.

4. Repair what was interrupted. A clip carved from an unfinished recording needs its index rebuilt. Add it in the Repair tab; the assessment is free and tells you whether it is repairable, and running the repair needs a license.

5. Recover to a different drive with enough free space, and open one file to confirm before you recover the rest.

When this won't work

Zeros from a TRIMmed SSD are final; no software reads what the drive has already erased. A placeholder has nothing local to recover. And the last seconds of an interrupted recording may never have left the camera's memory, so a repaired clip can end slightly before the moment the power died. If the card is throwing read errors, image it first and scan the image; see recover a dead or unrecognized Mac hard drive.

Lost a file? Get it back.

Scan and preview for free. See what's recoverable before you buy.

Download for macOS