RAR CRC Error: What It Means and What Can Be Recovered
Explain checksum failures, bad passwords versus corruption, testing volumes and honest recovery limits.
How the CRC Check Works in RAR Archives
A Cyclic Redundancy Check (CRC) is a short hash computed from a block of data and stored alongside it. The RAR 5.0 format stores a 32‑bit CRC for each file’s compressed data block, as specified in the RARLAB technical note. During extraction, the software recalculates the CRC from the decompressed bytes and compares it to the stored value. A mismatch means at least one bit in that file’s data changed between creation and extraction.
Distinguishing a CRC Error from a Password Failure
A CRC error is not a password error. When you supply the wrong password for an encrypted RAR archive, the decryption produces garbage data that typically triggers a “wrong password” or “decryption failed” message from the extractor. A CRC error on an encrypted archive almost always means the password was correct but the underlying data is damaged. On an unencrypted archive, a CRC error points exclusively to data corruption.
Observable test: Create a small test RAR with a known password, then attempt extraction with a deliberately wrong password. WinRAR and the command‑line rar both report a password or decryption failure, not a CRC mismatch. If your archive produces a CRC error, treat it as corruption first.
Diagnosing the Scope of Corruption
A CRC error can affect one file, multiple files, or the archive structure itself. To determine the scope:
- Run
rar t archive.rar(or use the “Test” button in WinRAR). The output lists each file and whether its CRC matches. Failed files are marked explicitly. - In a multipart set, test the first volume (
rar t part01.rar). The test traverses all volumes and reports failures per file. A single damaged volume typically affects only files that span it; files fully contained in other volumes may test clean.
Three common patterns:
- One file fails, others pass. Only that file’s data block is corrupted. The archive structure is intact.
- Every file fails. This suggests header corruption or damage to the archive’s central directory, not individual file data.
- One volume in a multipart set fails its own volume CRC. Files spanning that volume are affected; files wholly in other volumes may be intact.
What the Recovery Record Can and Cannot Repair
The RAR format supports an optional recovery record—a block of Reed‑Solomon error‑correcting codes added at archive creation. The RARLAB technical note documents this mechanism. When present, rar r can reconstruct a limited amount of corrupted data.
When repair works:
- A recovery record exists (visible as a percentage in archive properties or as
.revfiles). - The corruption is within the recovery record’s capacity, typically a small percentage of the archive size (e.g., 3%, 5%, or 10%, set at creation time).
- The damage is in file data blocks, not in critical archive headers.
Run rar r archive.rar. After repair, re‑test with rar t to confirm the CRC now matches.
When repair fails:
- No recovery record was created.
rar rwill report that no recovery record is present. - Corruption exceeds the recovery record’s capacity. The tool will report “not enough recovery records.”
- The archive headers or volume structure are damaged. Recovery records protect file data, not the structural metadata that tells the extractor where files begin and end.
Hard limit: No tool can recover data that was never stored. If a file’s data block has been overwritten with random bytes, the original content is gone. Third‑party “RAR repair” tools can salvage undamaged files from a broken archive, but they cannot reconstruct corrupted file content without a recovery record.
Why Conversion Does Not Fix CRC Errors
Converting a RAR archive to another format (ZIP, 7Z) requires reading and decompressing every file. When a file fails its CRC check during this process, the conversion tool has three options:
- Skip the damaged file and produce an output archive that lacks it.
- Abort the entire conversion with a CRC error.
- Extract the damaged file despite the mismatch and place the corrupted data into the new archive.
In all cases, the corruption is preserved or the file is omitted. Conversion is a copy operation, not a repair operation. Re‑compressing a corrupted file with a different algorithm produces a corrupted file in a different format.
Testing and Partial Recovery in Multipart Archives
Multipart RAR sets (.part01.rar, .part02.rar, etc.) require a specific workflow when one volume is damaged:
- Confirm all expected parts are present. A missing volume is different from a damaged one.
- Test the set with
rar t part01.rar. Note which files fail. - If a recovery record exists, run
rar r part01.rar. The repair command uses recovery data from all volumes. A successful repair writes a fixed volume asfixed.part01.rar(or similar). - If repair fails or no recovery record exists, extract with the “keep broken files” option. In WinRAR, this is the “Keep damaged files” checkbox under Extraction options. On the command line, use
rar x -kb archive.rar. Undamaged files extract with valid CRCs. The damaged file is written as a partial or garbage‑filled file; its size may match the original, but its content is unusable.
When a Password Appears to Cause a CRC Error
A rare scenario: you enter a password, extraction begins, and a CRC error appears mid‑extraction. This can happen when the password is correct but the archive is corrupted. Some extractors do not detect a wrong password until the CRC check on the decompressed data, so a CRC error on an encrypted archive can be ambiguous.
Observable test: Create a small, known‑good RAR archive with the same password you are using. Extract it. If it succeeds, the password is correct and the original archive is damaged. If the test archive also fails, you have a password typo or a character‑encoding mismatch (e.g., the password contains non‑ASCII characters and the locale differs between creation and extraction).
Explicit Recovery Limits
| Condition | Outcome |
|---|---|
| Single file CRC error, recovery record present, damage within capacity | Full recovery via rar r |
| Single file CRC error, no recovery record | That file is lost; other files in the archive may extract intact |
| Header or volume structure corruption, no recovery record | Archive is unreadable; no recovery possible |
| Multipart set, one volume missing, recovery record present | Repair may rebuild the missing volume if damage is within capacity |
| Multipart set, one volume missing, no recovery record | Only files not spanning the missing volume survive |
| CRC error after correct password entry | Treat as corruption, not a password problem |
After testing confirms which files are damaged and no recovery record is available, extract the undamaged files using rar x -kb or the equivalent “keep broken files” option in your extractor. The CRC error identifies exactly which file is lost and confirms that structurally intact portions of the archive remain usable.