Windows LDM (Dynamic Disks)

The Logical Disk Manager is the Windows dynamic-disk format (Windows 2000 onward) used for spanned, striped, mirrored and RAID-5 volumes. It is found on older servers and software-RAID setups, and needs its private database for reassembly.

Overview

Dynamic disks have a private header (PRIVHEAD) near the start (and copies near the end), a table of contents block (TOCBLOCK) and a database (VMDB) of records (VBLK) for disk groups, disks, components, partitions and volumes. Volume types include simple, spanned, striped, mirrored and RAID-5.

History

  • Introduced with Windows 2000, based on technology licensed from Veritas.

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.

Gpt Ldm Metadata End

OffsetSizeTypeFieldNotes
0x488u64 LEEntries Lba
0x504u32 LECount
0x544u32 LEEntry Size

Parse Private Header

OffsetSizeTypeFieldNotes
0xC2u16 BEAjor
0xE2u16 BEInor
0x11B8u64 BEStart
0x1238u64 BESize
0x12B8u64 BEConfig Start
0x1338u64 BEConfig Size

Read Database

OffsetSizeTypeFieldNotes
0x01u8–
0x11u8–
0x21u8–
0x31u8–
0x84u32 BERecord
0xC2u16 BEEntry
0xE2u16 BETotal

Read Database

OffsetSizeTypeFieldNotes
0x84u32 BEVblk Size
0xC4u32 BEFirst Offset
0x758u64 BECommitted Sequence

Other fields read

Read inOffsetSizeTypeFieldNotes
Gpt Ldm Metadata Endi + 408u64 LE–
Read Databasebitmap + 108u64 BEStart Sector
Big Endian64_at8u64 BEValue

Constants

Ldm Database

NameValueTypeNotes
LdmMetadataType[0xAA, 0xC8, 0x08, 0x58, 0x8F, 0x7E, 0xE0, 0x42, 0x85, 0xD2, 0xE1, 0xE9, 0x04, 0x34, 0x…byte[]

Implementation limits

ClassNameValueNotes
Ldm DatabaseMaxConfigSectors64 * 1024
Structures and constants were extracted from the implementation. Prose sections are a summary from public sources; verify details before relying on them.