ZerotoQuad

Companion to Chapters 13 and 14

Check a copy before you erase

Same names, same byte sizes, and an optional fingerprint

A minute that saves a lost log. Logs and footage are easy to lose and impossible to re-record. The size check catches almost every bad copy; the hash check is there for the logs and clips you really care about.

Chapter 13 copies Blackbox logs off the aircraft, and Chapter 14 copies camera footage. Before you unplug anything, and long before you erase the original, check that the copy matches: the same number of files, the same names and the same size in bytes for each, with no copy errors. Empty files get copied too, even though they aren’t recordings.

Compare names and byte sizes

These commands show one file’s exact size in bytes. Swap in your own path, and run them on both the original and the copy. Compare the file name and byte count, not the drive letter or mount path, and not a rounded KB or MB figure.

On Windows, open Windows PowerShell:

Get-Item -LiteralPath 'E:\BTFL_ALL.BBL' |
    Select-Object Name,Length

On macOS, open Terminal and use:

stat -f '%N %z' -- '/Volumes/BETAFLT/BTFL_ALL.BBL'

On desktop Linux with GNU utilities, open a terminal and use:

stat --format='%n %s' -- '/media/YOURNAME/BETAFLT/BTFL_ALL.BBL'

For a microSD card, check each file in the card’s logs folder; for the copy, use its path on the computer. If a file is missing, a size differs or a command errors, keep both the original and the copy, and copy again before erasing anything.

Optional: fingerprint every file

Equal sizes can still hide different content. For a byte-for-byte check, compare each file’s SHA-256 value on the original and the copy; they should match. In Windows PowerShell (Get-FileHash), Format-List shows the whole hash, which the default table can cut short:

Get-FileHash -LiteralPath 'E:\BTFL_ALL.BBL' -Algorithm SHA256 |
    Format-List Algorithm,Hash,Path

On macOS use shasum -a 256 -- '/Volumes/BETAFLT/BTFL_ALL.BBL'; on Linux (GNU coreutils SHA-2 utilities), sha256sum -- '/media/YOURNAME/BETAFLT/BTFL_ALL.BBL'. Compare all 64 characters; uppercase and lowercase letters count as the same. A different hash means copy again, just like a different size.

Eject, then unplug

When everything matches, close any windows on the card or drive and eject it through the operating system, waiting until it says it’s done. Then remove the card reader, or unplug USB. If the eject fails, find what’s still using the drive rather than pulling it out.

Optional: a second copy on another drive

If a log or clip matters to you, copy the whole session folder to a separate physical drive and compare file names and sizes again, for every file, not just the one you opened. Eject it, plug it back in and open a recording from it to be sure. Two folders or partitions on one disk, or a sync icon, aren’t two independent copies.