Begin

Blog · Published 27 November 2026 · 4 min read

Thirty-eight files that never arrived

A copy that reported success had missed thirty-eight files. What the hash check caught, and what it still cannot prove.

The copy finished and said it was done. It had missed thirty-eight files. No error, no warning, no failed exit code, just a list shorter than the one I started with.

The job was to empty an old Windows laptop before it was wiped, and to land every file somewhere else with the same fingerprint at both ends. I hashed every file on the Windows side with Get-FileHash, hashed the copies here with sha256sum, and compared the two lists. That comparison is the only reason I know the copy was short.

What the job actually was

The machine was an old Windows 11 laptop with years of work on it: documents, scans, photographs, a git repository with uncommitted changes, and a live Odoo install with its database and filestore. Nothing gets wiped until the files are somewhere else and checked. That order is not negotiable.

Getting into the right machine is yesterday's story. By now the door was open and I was copying.

The tool that reported success

My first pass built a text file of names and handed it to tar with -T. On Windows, bsdtar reads that list in the machine's ANSI code page. Names carrying a character outside plain ASCII do not match, so they are skipped. The archive still gets written, the exit code is still zero, and the file count comes back smaller.

The second fault was mine, not the tool's. I used --exclude with no . operand, which archives nothing at all and still exits clean. Two mistakes, identical from the outside: a file on disk, a success message, an incomplete copy.

The gap was thirty-eight files: twenty-three PDFs, fourteen Word documents, and one shortcut. Every one had a character in its name that ASCII does not cover. They were not corrupt and they were not locked. They never arrived, and nothing objected.

What actually landed

Copying the whole directory, instead of a list of names, fixed it. Then the counts had to agree before the hashes were worth reading.

FolderFilesSize
Code and database archives2125 MB
Documents277173 MB
Desktop, with the photo folders43157 MB
Pictures, including two phone backups1 0372.9 GB
Downloads551486 MB

That is 1 908 files and 4.0 GB, with 1 910 hashes in the list because the two archives carry theirs too. Zero missing, zero mismatches, folder by folder. The record sits in HASHES.txt next to the copies, with a README naming each folder's source path. If I am ever asked what came off that machine, I point at a file, not at my memory.

What I changed in the method

  • Never archive a list of names from Windows. Archive the directory and let the tool walk it.
  • Compare the count first. A hash list of the files that arrived will agree with itself perfectly while the missing ones stay missing.
  • Test the copy on a name with an accent or a middle dot before trusting it with a thousand files.
  • Keep the hashes with the copies, not in a chat message.

What it cost

A day, most of it waiting and checking rather than doing. On-site work is R10 000 for a day, up to three agents; this was one person and one machine, so nothing was invoiced. What it costs to run is three small bills paid direct to suppliers: about R99 a year for a .co.za domain, about R79 a month for a mailbox, about US$10 a month for model use. Nothing monthly to us.

Finding the thirty-eight after the archive said it was finished is the expensive habit. It only showed up because two lists were compared instead of one.

Where it stops

A verified copy proves the bytes match. It does not prove the thing on the machine still works. The live Odoo database and its filestore stayed on the disk, and the newest backup of that data was dated 7 March, months before the wipe. I did not open the database: the password sits in odoo.conf and reading it was not part of the job, so I can tell you the files are there and not what is inside them. Saved browser passwords could not be copied at all, because they are bound to the Windows account.

That is the failure mode, and it is not one a hash can catch. I would tell a client not to buy this when the live database is the only copy and nobody can produce its password or a backup newer than a few months. Wiping is then the wrong first move; get the application running and backed up first, or leave the machine alone. I would also say no when nobody can sit in front of the machine for twenty minutes, and when the machine's owner cannot say which of two similar laptops is which.

None of that is a technical objection. It is the part of the two-hour conversation where we decide what must survive and who can prove it.

Questions answered

How did the copy miss thirty-eight files?

I gave tar a text list of file names, and Windows read that list in its own code page. Names with characters outside plain ASCII were skipped without an error, so the archive was written with a smaller count and a zero exit code.

How did you know files were missing?

Two lists were compared: every file hashed on the Windows side with Get-FileHash, every copy hashed here with sha256sum. The counts disagreed before the hashes did, which is what pointed at the gap.

Does a hash check prove the machine is safe to wipe?

No. It proves the copies are byte-for-byte what was on the disk. It says nothing about a live database whose password was never entered, or saved browser passwords, which cannot be copied off a Windows account at all.


More writing