How to Diagnose and Repair a Corrupted RAR File

November 08, 2026 · RAR.now Editorial · RAR Essentials

Separate storage failure, structural damage and unsupported RAR features before attempting repair.

Identify the Failure Category

Before any repair attempt, determine why the archive fails. RAR corruption falls into three categories, and applying the wrong fix can destroy recoverable data.

Storage failure originates at the physical medium: bad sectors on a hard drive, a failing USB controller, an interrupted file transfer, or a truncated download. The file may carry a recognizable .rar signature but produce CRC failed or Unexpected end of archive at a consistent byte offset. If the storage device itself is degrading, no software repair can compensate for missing physical blocks. Image the drive first with a tool such as ddrescue, then work from the image.

Structural damage means the compressed data blocks are intact, but the archive header, block pointers, or recovery record are misaligned. Causes include a partial copy that completed at the filesystem level, a crash during compression, or a faulty network transfer that corrupted metadata while preserving payload. The archive may open and list filenames but fail extraction with Header corrupt. This is the only category where RAR's built-in repair tools apply.

Unsupported features are not corruption. An archive compressed with RAR5 and opened in software that only understands RAR4 will report Unknown method. An encrypted archive opened without the password will prompt for credentials or fail silently. The archive is structurally sound but inaccessible to the current decompressor. No repair tool can bypass encryption or add backward compatibility.

Rule out hardware failure and missing features before touching repair commands.

Test Without Extraction

Run the built-in test command to inspect the archive without writing files to disk:

rar t damaged.rar

Interpret the output against known failure signatures:

  • No errors found with no extracted files: the archive is valid, but the decompressor does not support the compression method. This is a version mismatch, not corruption.
  • CRC failed on a specific file while all filenames appear: the header is intact; one or more compressed blocks are damaged. If a recovery record exists, repair may succeed.
  • Unexpected end of archive early in the listing: the file is truncated. Compare the current file size against the expected size. A smaller file points to storage failure or an interrupted transfer.
  • Cannot open or File not found: the file may be missing from the filesystem, or the disk subsystem is failing.
  • Header is corrupt immediately: structural integrity is compromised. Proceed to recovery record repair.

For archives split across multiple volumes (archive.part1.rar, archive.part2.rar), run the test against the first volume. RAR will traverse the entire set automatically.

Repair Using the Recovery Record

A recovery record stores Reed-Solomon parity data calculated during archive creation. It can reconstruct up to a configurable number of contiguous damaged bytes. The record exists only if the original archiver specified the rr parameter, such as -rr5% for a 5% recovery record.

To attempt repair:

rar r damaged.rar

RAR creates reconstructed.damaged.rar in the same directory. The tool reports one of three outcomes:

  • Repair succeeded with a list of fixed files.
  • Recovery record not found — no parity data exists.
  • Too many errors — the damage exceeds the recovery record's correction capacity.

If repair succeeds, immediately test the reconstructed archive:

rar t reconstructed.damaged.rar

Then extract and verify each file against known checksums (MD5, SHA-256) if available. The recovery record corrects byte-level corruption within compressed blocks. It cannot reconstruct missing header fields, repair logical errors in the archive structure, or recover files whose compressed data was entirely absent before the record was applied.

Hard limits: the maximum correctable damage equals the recovery record size specified at creation. A 5% record on a 100 MB archive can repair up to 5 MB of contiguous corruption. Damage scattered across multiple non-contiguous regions may exceed this capacity even if the total damaged byte count is lower. If no recovery record exists, or if the damage surpasses the record's capacity, the corrupted files are permanently unrecoverable through structural repair. The RAR format provides no block-level redundancy outside the recovery record.

Salvage Data Without a Recovery Record

When rar r fails due to a missing or exhausted recovery record, data salvage is the remaining option. This extracts readable data before the corruption point but does not repair the archive.

For a truncated archive, use the keep-broken flag:

unrar e -kb damaged.rar

Files fully stored before the truncation point extract correctly. Files partially written at the break extract as truncated. This is a salvage operation, not a repair.

For structural damage beyond truncation, manual reconstruction using a hex editor is theoretically possible but practical only for small archives (under 1 MB). Locate the RAR signature bytes — 0x52617221 for RAR4 or 0x1A2B3C4D for RAR5 — and attempt to realign block boundaries by following the header structure documented in the RAR technical note. In practice, this succeeds only when the damage is localized to a known offset and the archive contains a single uncompressed or stored file.

Validate Output After Every Operation

RAR's repair tool guarantees that the archive decompresses without errors. It does not guarantee that reconstructed files match the originals. Silent data corruption within repaired blocks is possible.

If a checksum file was created alongside the original archive:

sha256sum -c original.sha256

Without checksums, compare file sizes and modification timestamps against a known-good copy. For critical data, create a new archive with a recovery record from the repaired files:

rar a -rr10% repaired.rar extracted_files/

This embeds a 10% recovery record, providing future repair capability.

Recognize Unrecoverable States

No tool can recover data from a RAR archive that has been:

  • Overwritten on the same disk sectors by a different file
  • Encrypted with a password that is unknown or lost
  • Compressed with a method unsupported by the available decompressor (e.g., RAR5 solid archives opened in RAR4-only software)
  • Damaged beyond the correction capacity of its recovery record, or damaged without any recovery record present

The RAR specification (see RarLab's technical note) defines the recovery record as the sole built-in error correction mechanism. There is no secondary data stream, no hidden redundancy, and no deep-scan recovery path. If the recovery record is absent or exhausted, the corrupted files are gone. Third-party tools that claim otherwise are operating on the same structural constraints and cannot recover what the format does not preserve.