Check a Media Transfer With SHA256 Before Trusting It
Compare a source and a copied recording by content, and learn to separate a definite mismatch from a file the computer could not read.

In this article
A folder copy completes and both drives show a video named “Interview 04.” Both copies have the same reported size. The copy even plays through its first minute. None of those observations establishes that every part of the two files is the same. A problem near the end can be invisible during a quick viewing. If the original is about to leave your desk, a stronger comparison is worth doing while you can still read it.
A SHA-256 hash is a compact value computed from a file's bytes. If the source and destination produce the same SHA-256 value, you have strong evidence that their contents match. If they produce different values, the bytes differ. A hashing command that cannot finish gives you another outcome entirely. It does not establish a match or mismatch. It tells you that the requested read or calculation did not succeed. Keep that distinction in mind throughout the transfer.
Choose a check that matches what you copied
Identify the source and the destination before opening a terminal or verification tool. Write down the actual paths and choose one file you recognize. In practice, you might select a large original photograph or a short video recorded solely for this test. A copy of the same file should retain the same bytes regardless of whether its name changes. An export, recompression, or edit is a different operation. It changes the file and can correctly produce a different hash even when the result looks almost identical on screen.
Check what a program claims to transfer. A camera import can copy an original file or generate another format. A messaging app can save a reduced preview. A photo organizer can write metadata into a file during export. If you are trying to verify an ordinary byte-for-byte copy, use the source file and the destination file from that operation. If you are verifying whether a processed output is useful, compare its intended properties and play it through. A hash cannot decide whether the program made a good edit.
Keep the source unchanged while checking it. Close the editing program or wait for it to finish writing. A file that is still being recorded or synchronized can change between the first and second reading. If your cloud folder uses placeholders, make sure your intended original is actually available locally before treating a reported result as a drive check. Downloading on first access changes what operation you are observing. Give the unusual file state a name in your notes so it does not get mistaken for evidence about the transfer cable.
Get one source value and one destination value
On Windows, PowerShell can calculate the hash with Get-FileHash. Microsoft documents SHA256 as an available algorithm and explains that this command uses it by default. To be explicit, a sample command is Get-FileHash -Algorithm SHA256 -LiteralPath 'D:\Media\Interview 04.mov'. Use the full path to the file you intend to read. Using LiteralPath is helpful with filenames that contain characters a shell or command might interpret as patterns. Run the same calculation for the destination and keep track of which output belongs to which drive.
Read the algorithm label as well as the hash. The same file run through two different algorithms will produce outputs that cannot be compared like for like. Letter case in the display of hexadecimal characters does not change the value. If a terminal wraps the value, copy it as a complete string instead of trying to compare only a few leading characters. You can paste the two values into a local editor for inspection. Keep paths with the records so that a later comparison is not based on two anonymous lines.
Pay attention to how long a large read takes. Hashing a video requires processing all of its bytes. A slow portable disk, shared network link, or battery-saving state can make the check take longer than opening the opening frame. Avoid disconnecting the device in the middle of the calculation. Let the operating system and tool finish before judging the result. When checking many items, reserve time for a meaningful sample or use a tool that can verify an entire transfer as part of its normal workflow.
Treat three different outcomes differently
With matching values, record that the verified files had matching content at the time of the check. The result does not prove that every other file in the folder copied correctly or that the storage medium will remain reliable. It also says nothing about whether the source file was already damaged before the transfer. Two copies of the same broken recording can match perfectly. If the recording matters, combine verification with a check that you can open and use the material.
An ordinary mismatch means the exact bytes differ. Start by checking paths and names rather than assuming hardware damage. Two takes can share a filename under different subfolders. A software export might have replaced an exact copy. A tag editor could have made a deliberate change. When the operation should be an exact transfer, copy the known source to a new, clearly named destination and compare the two again. Leave the earlier destination available until you can distinguish evidence about the problem from the copy you intend to keep.
An error means that the requested computation did not return a reliable value. Read the message. A path may be wrong, access may be denied, the device may have disconnected, or the storage system may have reported a read error. Verify that the problem is reproducible with the appropriate file or device before explaining it as corruption. Do not mistake an empty result, a status line, or only the source's returned hash for a completed comparison of both sides.
Learn what a read failure can reasonably tell you
If a destination read fails while the source still hashes cleanly, preserve the source and consider copying to a known working destination. A different cable or port may help distinguish an unstable connection from the device, but do not repeatedly disconnect a drive that is actively reading or writing. Follow the operating system's normal ejection process. If the only copy of valuable material is on a device that reads unreliably, stop normal editing or repair attempts and decide how to preserve it before doing more experiments.
If a source hash differs across repeated reads without a deliberate edit, first rule out a file that is still changing. A sync client or active project can make both reads legitimate at different times. Use an unchanged sample that you can afford to test and observe whether the symptom follows a single path or a particular device. Avoid concluding that a healthy-looking hash in one attempt makes an intermittently failing device safe for important material. The result in one attempt has a limited scope.
A successful recopy can be enough to proceed, and a recurring mismatch can be worth investigating. Write down which source was read, which destination was used, and when. This lets you distinguish “the original failed twice” from “two comparisons happened with files that had the same name.” If files are important enough to preserve, maintain another independent copy and check the stored copies periodically instead of making one drive responsible for the entire history.
Choose when to keep a manifest
For a project with many files, a saved manifest can pair relative paths with expected hashes. Build it from a known complete set and store it beside a useful project note or another trusted record. Relative paths help maintain the relationship between the files when they move to another drive. Do not treat a manifest from an unknown source as proof of authenticity. A content check can tell you whether the files match the listed values. It cannot tell you who created the list or when they did so.
When a destination already holds a previous copy, keep that copy distinguishable until the new comparison is finished. A sync program can make two locations look similar by overwriting the older version, which removes a useful reference if you discover that the new source is incomplete. Retain clearly dated snapshots for material whose history matters. Hashes are most useful alongside a recognizable record of which version each file represents.
Check the manifest's scope before relying on it. Does the list include proxy files, original media, or both? Were any subfolders omitted? Are there source files that the project expects to recreate instead of preserve? You can make the audit easier by keeping one manifest per clear transfer or release. A mismatch in a disposable cache should not obscure a mismatch in the only full-resolution recording.
The result is useful when you can explain it in one sentence: “The original and copied recording had the same SHA-256 value, and I could open the playback file,” or “The copied drive could not finish reading the requested file, so I retained the source.” That sentence is more informative than a progress bar that happened to reach the end. It records what you actually checked and leaves room to make the next decision with the original still in hand.


