Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:Nero NRG

From ReverseEngineering.wiki
Format
Magic NERO or NER5 in the last 8 or 12 bytes (not at offset 0)
Extensions .nrg
Endianness big-endian
On this wiki Facts · Code · Notes · Topics

Nero Burning ROM disc image (.nrg): raw sector data followed by a chunk list that ends in a footer; the footer is found from the end of the file and has two variants, NERO (32-bit offset) and NER5 (64-bit offset).

Layout

A Nero image has no header at the start of the file: the disc data comes first and the metadata is a chain of chunks reached from a footer at the very end. The Aaru reader (LGPL-2.1 or later) seeks to the end, reads the footer, jumps to its first-chunk offset and then reads chunks (4-byte id, 4-byte big-endian length, payload) until it meets the end chunk.

  • Old footer "NERO" (id 0x4E45524F): last 8 bytes = id + u32 offset of the first chunk (used by Nero 5.5 and earlier, Unverified).
  • New footer "NER5" (id 0x4E455235): last 12 bytes = id + u64 offset of the first chunk.

Chunks

CUES/CUEX (cuesheet; the CUEX entry has a signed 32-bit LBA field in Aaru's struct), DAOI/DAOX (disc-at-once track info), TINF/ETNF/ETN2 (track-at-once track info), CDTX (CD-TEXT), SINF (session info), MTYP (medium type), DINF (disc info), TOCT (TOC type), RELO and END!. The X, 2 and v2 variants are the 64-bit-offset forms used with NER5 (Unverified, from names only).

Identification

See the facts: the footer check is done against the file end, with the new footer tested before the old one in Aaru's Identify but the old one tested first in its Read.

See also Format:CD-ROM raw sector layouts.

Code & repositories

  • https://github.com/aaru-dps/Aaru @ 1eaee6f63254f85e8a1119f4fce1e55f276e0846 · license: LGPL-2.1-or-later (declared by the contributor; GitHub's detector did not recognize LICENSE)
    Aaru Data Preservation Suite; Aaru.Images has readers for Nero, Alcohol 120%, CloneCD, DiscJuggler, CHD and more (image plugins are LGPL-2.1-or-later per file headers).
    Tested on: source read, not run: read only, no build · checked 2026-10-19; last activity 2026-10-18; Note: the latest release ships binaries; the wiki links only the source, never the binaries