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:NCSD

From ReverseEngineering.wiki
Format
Magic 4E 43 53 44 ("NCSD") at offset 0x100
Extensions .3ds, .cci
Endianness little
On this wiki Facts · Code · Notes · Topics

Container of 3DS cartridge images (.3ds/.cci): a 0x100-byte RSA signature, a header with the magic NCSD at 0x100 and up to eight NCCH partitions given in media units.

Header

See Fact:NCSD/struct/Header. After the 256-byte RSA signature: magic NCSD, image size in media units, media id, eight partition FS-type bytes and crypt-type bytes, then eight (offset, size) u32 pairs in media units, an extended header hash, additional header size, sector zero offset, 8 flag bytes and eight partition ids (from 3dstool's ncsd.h). The media unit size is 0x200 << flags[6]. The first NCCH starts at 0x4000 (3dstool: s_nOffsetFirstNcch); the card-info header following contains a copy of the first partition's NCCH header.

Partition 0 is the game executable, 1 the E-Manual, 2 the Download Play child, 6 the New 3DS update data, 7 the system update data.

Unverified: the partition roles come from general knowledge, not from the 3dstool source.

Related

Format:NCCH container, Platform:Nintendo 3DS.

Code & repositories

  • https://github.com/dnasdw/3dstool @ 3771ae967d64092370b646db86aa626401c279e8 · license: MIT
    3dstool: src/ncsd.h, ncch.h, extendedheader.h, exefs.h, romfs.h and compression codecs.
    Tested on: source read, not run: source read · checked 2026-10-18; last activity 2026-01-24; Note: the latest release ships binaries; the wiki links only the source, never the binaries