ISO 9660 (CD-ROM File System)

ISO 9660 is the standard file system of data CD-ROMs and DVD-ROMs and of ISO image files, with Joliet (long Unicode names) and Rock Ridge (POSIX metadata) extensions. It remains the base for bootable installer images, while UDF handles larger and rewritable discs.

Overview

ISO 9660 (ECMA-119) begins with a system area of 16 sectors followed by a sequence of volume descriptors in 2048-byte logical blocks, each carrying the identifier CD001. The primary volume descriptor locates the root directory record and the path tables. Directories are sequences of variable-length records that point to contiguous file extents, so there is no allocation table.

Two extensions add long names and metadata. Joliet adds a supplementary volume descriptor with UCS-2 names. Rock Ridge stores POSIX names, permissions, links and symbolic links in system-use fields of each directory record. El Torito boot catalogs make discs bootable.

History

  • Standardized as ECMA-119 in 1987 and ISO 9660 in 1988, derived from the High Sierra format.
  • Rock Ridge was proposed in 1993; Joliet appeared with Windows 95.
  • El Torito bootable CD specification: 1995.

Structures

Offsets are in bytes from the start of the structure named in each heading. Field names are descriptive and are not an official specification. Fixed-width integers are shown as u/i (unsigned/signed) followed by bit width and byte order.

Boot Image

OffsetSizeTypeFieldNotes
0x01u8–
0x1E1u8–
0x1F1u8–
0x2032bytesEntry

Boot Image

OffsetSizeTypeFieldNotes
0x01u8Name
0x11u8Edia
0x62u16 LESectors
0x84u32 LERba

Iso9660 File System

OffsetSizeTypeFieldNotes
0x24u32 LEModule State
0xA4u32 LEModule State
0x127bytesModified

List Children

OffsetSizeTypeFieldNotes
0x11u8Extentextended attribute record comes first
0x11u8–
0x24u32 LEExtentextended attribute record comes first
0xA4u32 LESize
0x127bytesModified
0x191u8Flags
0x201u8Name Length

Read Descriptors

OffsetSizeTypeFieldNotes
0x2832bytesLabel
0x504u32 LETotal Bytes
0x802u16 LESize
0x32D16bytesVolume Serial

Read Descriptors

OffsetSizeTypeFieldNotes
0x01u8–
0x15bytesId
0x723bytes–
0x581u8–
0x591u8–
0x5A1u8–
0x9C1u8–

Read Sessions

OffsetSizeTypeFieldNotes
0x01u8–
0x15bytes–

Volume Details

OffsetSizeTypeFieldNotes
0x832bytes–
0xBE128bytes–
0x13E128bytes–
0x1BE128bytes–
0x23E128bytes–
0x32D17bytes–

Probe

OffsetSizeTypeFieldNotes
0x2832bytesDescription
0x504u32 LEBlocks

Rock Ridge

OffsetSizeTypeFieldNotes
0x44u32 LEMode
0x44u32 LEChild Link
0x44u32 LEBlock
0x41u8–
0x41u8Tflags
0xC4u32 LEOffset
0x144u32 LEUid
0x144u32 LELength
0x1C4u32 LEGid
q + 11u8Clen

Other fields read

Read inOffsetSizeTypeFieldNotes
Boot Image0x474u32 LECatalog
Iso9660 File System0x9C34bytesRoot Record
Read Dot Length0xA4u32 LE–
Read Sessions0x504u32 LESize
Root Rock Ridge0x9C34bytesRoot
Root Rock Ridge0x24u32 LEExtent
Session Device0x24u32 LE–
Session Device0x9E4u32 LERoot

Constants

Implementation limits

ClassNameValueNotes
Iso9660 ModuleSectorBytes2048

Signatures and magic strings referenced

TextWhere checked
CD001Read Sessions
NSR02Read Descriptors
NSR03Read Descriptors
BEA01Read Descriptors
TEA01Read Descriptors
BOOT2Read Descriptors
EL TORITO SPECIFICATIONRead Descriptors
Structures and constants were extracted from the implementation. Prose sections are a summary from public sources; verify details before relying on them.