Checking File Integrity: How to Use Checksums to Prevent Bit Rot and Technical Loss
Your family digital archive may contain thousands of photographs, scanned letters, personal documents, audio recordings, and videos. You can organize these files carefully and create several backups, but one important question remains: how do you know that the files stored today are still exactly the same as the files you originally preserved?
Digital files can change during storage, transfer, copying, or accidental modification. Sometimes the change is obvious because a photograph will not open. In other cases, corruption may remain unnoticed until someone needs the file years later.
Checksums provide a practical way to detect these changes. They create digital fingerprints that can be recorded and checked again later. When a newly calculated checksum matches a trusted earlier value, it provides evidence that the file’s contents have remained unchanged.
This guide explains file integrity, bit rot, checksums, SHA-256 verification, and practical ways to monitor a family archive. You will also learn what to do when a verification result does not match.
What Is File Integrity?
File integrity refers to the condition of digital information remaining complete and unchanged from a known reference point. For a preserved family photograph, this means that the stored file should contain the same sequence of digital data as the version you originally verified.
A file can still have the same name and appear in the same folder while its contents have changed. File size alone cannot reliably prove that two files are identical.
For example, imagine that you preserve a scanned letter called “Grandfather-Letter-1952.tif”. Years later, the file still has the same name, but a storage error has changed part of its data. A checksum comparison can help reveal that difference.
File integrity is one part of digital preservation. It helps you monitor whether files have changed, but it does not guarantee that the file format will remain readable or that future generations will understand its contents.
What Is Bit Rot?
Bit rot is a commonly used term for gradual or unexpected changes to stored digital data that can lead to corruption or loss. It may be associated with storage degradation, hardware problems, transmission errors, software issues, or other failures.
Unlike a damaged printed photograph, digital corruption may not be visible until someone tries to open the file or performs an integrity check. A file may remain in its original folder and still be damaged.
Several situations can affect a family archive:
- Storage problems: A drive or storage system may develop errors that affect stored information.
- Interrupted transfers: A network or copying operation may fail before a complete file reaches its destination.
- Hardware faults: Memory, cables, controllers, or other components may cause unexpected changes or incomplete writes.
- Accidental modification: A file may be overwritten, edited, or replaced without the archive manager noticing.
- Software problems: Applications or backup processes may produce incomplete or altered copies.
Not every file change is corruption. A family member may deliberately edit a photograph, rotate an image, add metadata, or convert a file to another format. The important task is to distinguish documented changes from unexpected ones.
What Is a Checksum?
A checksum is a calculated value associated with a file or group of data. It is generated using an algorithm that processes the file’s contents and produces a result that can be recorded for later comparison.
For example, a SHA-256 checksum produces a 256-bit digest, commonly displayed as a 64-character hexadecimal string.
The same file contents processed using the same algorithm produce the same digest. If the contents change, the resulting digest will normally be different.
This makes checksums useful for checking whether a file has changed since a trusted reference value was created.
A Simple Example
Imagine that you create a checksum for a scanned family letter when you first add it to your archive.
- You calculate the SHA-256 checksum of the original file.
- You save the result in a checksum manifest.
- You copy the file to an external backup drive.
- Six months later, you calculate its checksum again.
- You compare the new result with the original recorded value.
If the values match, the file’s contents are consistent with the earlier verified version. If they do not match, the file has changed and needs investigation.
Why Checksums Matter for Family Digital Preservation
Checksums turn file integrity from an assumption into something you can test. They are particularly useful when an archive contains records that may not be opened frequently.
Detect Changes That Are Not Immediately Visible
A photograph may still display correctly even if part of its data has changed. A checksum comparison can identify a difference that might otherwise go unnoticed.
Verify Backup Copies
When you copy an archive to an external drive or another storage location, checksums can help confirm that the transferred files match the trusted source versions.
Check Files After Migration
When moving an archive to new hardware, checksums can help verify that files have not changed during the transfer. If you deliberately convert a file to a new format, create a new checksum for the resulting version and document the transformation.
Identify a Known-Good Copy
If one backup copy produces a different checksum while another copy matches the trusted reference value, the matching copy may help you restore the affected file.
However, never assume that the majority of copies are correct. Investigate the discrepancy and compare each copy against a trustworthy reference.
Understanding Common Checksum Algorithms
Different algorithms can generate checksums or cryptographic hash values. They vary in design, speed, output length, and resistance to deliberate manipulation.
| Algorithm | General description | Practical guidance |
|---|---|---|
| MD5 | Produces a 128-bit digest. | Legacy checksum still encountered in older workflows; not suitable where resistance to deliberate collision attacks is required. |
| SHA-1 | Produces a 160-bit digest. | Legacy algorithm with known collision weaknesses; avoid choosing it for new preservation workflows. |
| SHA-256 | Produces a 256-bit digest. | A widely supported modern choice for family archive integrity checking. |
| SHA-512 | Produces a 512-bit digest. | Another member of the SHA-2 family that may be supported by preservation tools. |
For a new household file-integrity workflow, SHA-256 is a sensible default because it is widely supported and offers strong protection against accidental and deliberate checksum collisions when used appropriately.
MD5 and SHA-1 may still appear in older archives or existing manifests. If you encounter them, do not assume that an old checksum manifest is useless. You can use it to understand an existing collection, then consider generating SHA-256 reference values for future checks.
How to Create a SHA-256 Checksum
You do not need to be a professional archivist to generate a checksum. Modern operating systems include command-line utilities that can calculate SHA-256 values for individual files.
Before starting, choose a file that you trust as your reference version. The first checksum should be generated when the file is known to be complete and correct.
Windows: Using PowerShell
Windows PowerShell includes the Get-FileHash command. Open PowerShell and enter the following command, replacing the example path with the location of your file:
Get-FileHash "D:\FamilyArchive\Grandfather-Letter-1952.tif" -Algorithm SHA256
PowerShell will display the file path, algorithm, and calculated hash value. Record the SHA-256 result in your checksum manifest.
To verify the file later, run the same command again and compare the new hash with the original recorded value.
macOS: Using the Terminal
On macOS, open Terminal and use the shasum utility:
shasum -a 256 "/Users/YourName/FamilyArchive/Grandfather-Letter-1952.tif"
The command calculates the SHA-256 digest of the selected file. Record the result and use the same command when checking it in the future.
Linux: Using the Terminal
Many Linux distributions include the sha256sum utility. Open a terminal and enter:
sha256sum "/home/yourname/FamilyArchive/Grandfather-Letter-1952.tif"
The output contains the SHA-256 value followed by the file path. Save the result in your manifest.
These examples calculate checksums for individual files. For large archives, dedicated fixity tools can generate and verify checksums for entire folders or collections. Choose a reputable tool and test its workflow on a small sample before using it across your complete archive.
Create a Checksum Manifest for Your Family Archive
A checksum manifest is a record containing the filenames, checksum algorithms, calculated values, and other useful information needed for future verification.
Without a saved reference value, you cannot reliably compare a file against its earlier state. Generating a checksum only when you suspect corruption does not establish what the correct value should have been.
A simple spreadsheet or CSV file can work for a household archive. A more advanced preservation system may use structured manifests and automated inventory tools.
Recommended Manifest Fields
- File path: The location and filename of the preserved file.
- Algorithm: The checksum method used, such as SHA-256.
- Checksum value: The original calculated digest.
- Date created: When the reference checksum was generated.
- Reference copy: Which verified archive copy was used.
- Verification date: When the file was last checked.
- Verification result: Match, mismatch, or pending investigation.
- Notes: Any documented edits, migrations, or replacements.
For example, a simplified manifest might look like this:
| File | Algorithm | Reference value | Status |
|---|---|---|---|
| Family-Photo-1948.jpg | SHA-256 | Recorded reference digest | Verified |
| Grandfather-Letter-1952.tif | SHA-256 | Recorded reference digest | Verified |
| Family-Interview-1987.wav | SHA-256 | Recorded reference digest | Verified |
The values shown here are illustrative placeholders, not actual checksums. Your manifest must contain the real values generated from your files.
Where Should You Store the Checksum Manifest?
The manifest is important because it provides the reference values needed to detect later changes. If the manifest is lost or modified without documentation, the integrity-checking process becomes less dependable.
Keep more than one copy of your manifest. Store it with the archive where it is useful, but also maintain an independent copy in another secure location.
For a larger or more sensitive collection, consider storing the reference manifest in a protected inventory system or a read-only location. You can also retain dated versions so that changes to the manifest can be reviewed.
Do not assume that storing a manifest beside the files automatically protects it. If both the archive and its manifest are altered together, the comparison may no longer reveal the original change.
For stronger protection, restrict who can modify the reference manifest and preserve a separate trusted copy.
How to Perform a File Integrity Check
Once you have created your reference checksums, you can establish a repeatable verification routine.
Step 1: Select the Files or Collection
Decide whether you will check the entire archive, selected folders, or a particular backup copy. For important collections, a complete check provides broader coverage than opening a few files at random.
Step 2: Generate New Checksums
Use the same algorithm that was used to create the original reference manifest. Calculate new checksums from the files currently stored on the device.
Step 3: Compare the Results
Compare each new checksum with the corresponding reference value. A matching result indicates that the file contents are consistent with the recorded reference.
A mismatch indicates a change. It does not automatically tell you why the file changed or whether the change was accidental.
Step 4: Investigate Differences
Check whether the file was deliberately edited, converted, renamed, or replaced. Review backup records and previous versions before declaring the file corrupted.
Step 5: Restore From a Verified Copy if Necessary
If the change is unexpected and a trusted backup contains a matching version, restore the file from that copy. Then verify the restored file against the original reference checksum.
Step 6: Document the Result
Record the verification date, affected file, result, investigation, and any restoration action. This creates a history that helps you understand the condition of the archive over time.
What Should You Do When a Checksum Does Not Match?
A checksum mismatch should be treated as an alert, not an automatic reason to delete or replace a file. The file may have changed intentionally, or the verification process may be comparing different versions.
Follow a careful recovery process:
- Stop making further changes to the affected file and preserve the current copy for investigation.
- Confirm that the correct checksum algorithm was used.
- Check that the correct file was selected and that the manifest entry matches it.
- Review whether the file was edited, converted, renamed, or migrated.
- Calculate checksums for other independent backup copies.
- Compare those values with the trusted reference checksum.
- Restore from a verified good copy if the file is confirmed to be damaged or unintentionally altered.
- Run a new verification after restoration and document the outcome.
Do not overwrite every copy with the version that currently appears on your computer. If the working copy is the damaged one, doing so could spread the problem to your remaining backups.
If no copy matches the trusted reference, keep all available versions and consider professional data-recovery advice when the record is especially important.
How Often Should You Check File Integrity?
There is no single verification schedule that suits every household archive. The right frequency depends on the amount of data, the storage technology, the importance of the records, how often the archive changes, and the available resources.
For a personal family archive, a practical starting schedule might be:
- When files enter the archive: Generate reference checksums after confirming that the files are complete and suitable for preservation.
- After copying or transferring files: Verify that the destination files match the original reference values.
- Every six months: Check important local backup collections where practical.
- At least annually: Review the integrity of the archive and its independent copies.
- After migration: Verify the transferred files and create new reference checksums for deliberately transformed versions.
These are suggested household intervals, not universal technical standards. Large archives may require automated tools and a different schedule. A small collection of highly important records may justify more frequent checks.
The important point is consistency. A documented routine is more useful than performing checks only when a storage device begins to show problems.
Checksums During Backup and Storage Migration
Checksums are especially valuable when moving files between storage devices. A file may be copied successfully according to the operating system, but a verification step provides additional evidence that the destination contains the expected data.
Before migration, calculate or confirm the source checksum. After copying the file to the new device, calculate its checksum again using the same algorithm.
If the values match, the transferred file is consistent with the reference. If they differ, investigate the transfer and avoid deleting the original until the problem is resolved.
When you deliberately convert a file format, the new file will normally have a different checksum because its contents have changed. Keep the original where appropriate, document the conversion, and generate a new reference checksum for the new preservation version.
This distinction matters: a checksum detects changes, but not every change is damage. Some changes are planned preservation actions that should be documented.
Checksums Are Not the Same as Backups
A checksum can tell you that a file no longer matches its trusted reference. It cannot automatically restore the missing or damaged information.
To recover from corruption, you need another good copy. This is why file integrity checking should work alongside an independent backup strategy.
For example, if a photograph on your main archive drive fails verification, you can compare the external backup and off-site copy against the original checksum. If one of those copies matches, it may provide a verified replacement.
Read The 3-2-1 Backup Strategy for Personal Legacies to understand how multiple independent copies support recovery.
Important Limitations of Checksums
Checksums are useful, but they do not solve every digital preservation problem. Understanding their limits helps you avoid relying on them for tasks they were not designed to perform.
They Do Not Repair Corrupted Files
A checksum can identify a mismatch, but it cannot reconstruct missing or damaged data. You need a verified backup or another recovery method.
They Do Not Guarantee Future Readability
A file can match its original checksum and still be difficult to open because its format or supporting software has become obsolete. File integrity and long-term accessibility are separate preservation concerns.
They Do Not Prove That the Original Was Correct
If you calculate a checksum from an already corrupted or incomplete file, the checksum will faithfully describe that version. It does not prove that the file was complete or authentic before the calculation.
They Do Not Automatically Protect Against Deliberate Tampering
If an attacker can change both a file and its checksum manifest, an ordinary comparison may fail to reveal the manipulation. Protect reference manifests using suitable access controls and separate trusted copies. For stronger authenticity requirements, additional methods such as digital signatures or protected audit records may be appropriate.
They Do Not Replace Descriptive Metadata
A checksum does not explain who appears in a photograph, where it was taken, or why a document matters. Preserve descriptive metadata separately so future generations can understand the records.
Choose a Fixity Tool That Fits Your Archive
Families with a small collection may be comfortable using built-in command-line utilities and a carefully maintained spreadsheet. Larger collections may benefit from dedicated fixity software that can process folders, generate manifests, schedule checks, and report mismatches.
Before selecting a tool, consider:
- Does it support SHA-256 or another suitable modern algorithm?
- Can it process multiple files and folders?
- Can it create and verify checksum manifests?
- Can it record verification dates and results?
- Does it clearly identify files that fail verification?
- Can the manifest be exported in a documented format?
- Can another person understand and repeat the process?
Test the tool on a small sample collection before using it across your complete archive. Keep a record of the software and version used, especially if you depend on a particular application for future verification.
Your Family Archive File Integrity Checklist
Use this checklist to build a repeatable checksum verification process.
- Have I selected trusted original versions of my important files?
- Have I chosen a suitable checksum algorithm such as SHA-256?
- Have I generated reference checksums for important files?
- Have I recorded filenames, paths, algorithms, values, and dates?
- Are checksum manifests stored in more than one secure location?
- Are reference manifests protected from unauthorized changes?
- Do I verify files after important transfers and migrations?
- Have I established a regular integrity-checking schedule?
- Do I investigate mismatches before replacing files?
- Can I restore damaged files from another verified copy?
- Do I document repairs, conversions, and other deliberate changes?
- Can another trusted person repeat the verification process?
If you are new to checksum verification, begin with a small folder containing a few important photographs and documents. Generate SHA-256 values, save the manifest, and repeat the comparison after copying the folder to another drive.
Final Thoughts: Trust Your Archive Because You Verify It
Digital files can change without obvious warning. A folder name, file size, or successful backup notification does not prove that every stored record remains identical to its original version.
Checksums provide a practical method for monitoring file integrity. By generating reference values, storing them securely, and comparing them during regular audits, you can detect unexpected changes and identify which backup copies remain consistent with the trusted version.
However, checksums work best as part of a complete preservation system. Maintain independent backups, protect your manifests, document intentional changes, and keep your file formats and recovery procedures under review.
Your family archive deserves more than storage. It deserves a process that checks whether its records remain intact and provides a way to recover when something goes wrong.
Continue Building Your Digital Legacy
Explore the complete preservation framework: Discover The Digital Legacy Blueprint, a 645-page master guide to organizing, protecting, and preserving meaningful digital records for future generations. Available in Kindle, Paperback, and Hardcover editions on Amazon.
Explore the Paperback edition on Amazon | Explore the Hardcover edition on Amazon | Explore the Kindle edition on Amazon
Watch the human stories behind digital preservation: Continue with The Human Archive Video Series One, exploring the memories, experiences, and stories that make a family legacy meaningful.