Format:Alcohol MDS and MDF
| Magic | MEDIA DESCRIPTOR at offset 0 of the .mds |
|---|---|
| Extensions | .mds, .mdf |
| Endianness | little-endian |
| On this wiki | Facts · Code · Notes · Topics |
Alcohol 120% disc image: a small .mds descriptor (signature MEDIA DESCRIPTOR, session and track blocks) plus a .mdf data file holding the sectors.
Files
The descriptor (.mds) starts with the 16 ASCII bytes MEDIA DESCRIPTOR, followed by a two-byte version. Sector data lives in a separate .mdf file named by a footer (a filename offset in the track footer; the filename may be wide-character). The Aaru reader (LGPL-2.1 or later) reads little-endian structures: an 88-byte header, 24-byte session blocks at header.sessionOffset, 80-byte track blocks at each session's trackOffset, an optional 8-byte extra block (pregap, sectors) per track, a 16-byte footer, and optional BCA, disc structures (4100 bytes) and disc metadata blocks.
Track mode and subchannel
The track block has a mode byte (0xA9/0xE9 audio, 0xAA/0xEA mode 1, 0xAB mode 2, 0xEC/0xAC Mode 2 Form 1, 0xED/0xAD Form 2, 0x02 DVD, 0x00 no data) and a subchannel mode byte (0 none, 0x08 interleaved 96 bytes). The sector stride is computed from the sector size plus skipped subchannel bytes. See Format:CD-ROM raw sector layouts.
Unverified: the meanings of the fields Aaru names unknown (header words, track bytes) are not documented in the source read.
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.Images plugins for Alcohol 120%, CloneCD and DiscJuggler (Identify.cs, Read.cs, Structs.cs).
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