Extended partition

On this page 7

An extended partition is a special entry in the Master Boot Record (MBR) partition table that does not hold a file system itself but serves as a container for logical partitions, allowing a disk to carry more than the four partitions that the MBR scheme natively supports. In operating systems and OS storage, it is a legacy structure that still appears on older Windows and Linux installations, external drives and virtual machine images.

Only one extended partition may exist per MBR disk, and it occupies one of the four primary slots. Inside it, a linked chain of Extended Boot Records (EBRs) describes each logical partition. Disks that use the GUID Partition Table (GPT) do not need extended partitions at all.

Why the extended partition exists

The extended partition exists because the classic MBR occupies a single 512-byte sector, and its partition table has room for only four 16-byte entries. When disks grew and users wanted separate volumes for the system, data, swap space or multiple operating systems, four slots proved too few.

Rather than redesign the MBR, DOS 3.2 and later versions introduced a type code that marks one primary entry as extended. The space covered by that entry becomes a nested area in which further partitions can be defined. This preserved backward compatibility with existing boot code and tools while removing the practical cap on partition count.

The table below summarizes the three kinds of MBR partitions and how they relate.

Partition kindMaximum numberHolds a file systemDescribed by
Primary partitionFour, or three with an extended oneYesEntry in the MBR table
Extended partitionOne per diskNo, it is a containerEntry in the MBR table
Logical partitionLimited mainly by tools and OSYesEntry in an EBR inside the extended area
Partition kinds on an MBR disk

How logical partitions are chained inside it

Logical partitions are described by a linked list of Extended Boot Records, each placed in a sector at the start of its own region within the extended partition. Every EBR uses the same layout as the MBR table, but in practice only two entries are used: the first describes the logical partition that follows, and the second points to the next EBR in the chain.

Addresses inside an EBR are relative rather than absolute. The first entry is measured from the current EBR, while the link entry is measured from the start of the extended partition. This detail matters for recovery tools, because a single corrupted EBR breaks the chain and makes every following logical partition invisible to the operating system even though its data is intact.

ParameterTypical valueSignificance
Extended type code0x05 (CHS) or 0x0F (LBA)Marks the container entry in the MBR
Linux extended code0x85Used by some Linux tools, ignored by DOS
EBR sizeOne 512-byte sectorHolds the local table and boot signature
Boot signature0x55AA at the sector endValidates the MBR and each EBR
Addressing limit32-bit LBA, about 2 TiB with 512-byte sectorsCaps the usable disk size under MBR
Key values used by extended partitions

Linux names logical partitions starting at number 5 (for example sda5), regardless of how many primary partitions exist, because numbers 1 to 4 are reserved for the MBR slots. Windows assigns them drive letters like any other volume.

Extended partition compared with GPT and other layouts

The extended partition is a workaround specific to MBR, and modern disks increasingly avoid the problem it solves. GPT stores 128 partition entries by default in a dedicated table, with a backup copy at the end of the disk, so no container is needed.

ApproachPartition limitResilienceTypical use today
MBR with extended partitionThree primary plus many logicalSingle EBR chain, no backupLegacy BIOS systems, old images
GPT128 entries by defaultPrimary and backup tables with CRC32UEFI systems and disks above 2 TiB
Logical Volume ManagerMany logical volumes in one partitionMetadata copies, flexible resizingLinux servers and workstations
Windows dynamic diskMany simple or spanned volumesDatabase replicated on the diskDeprecated in favor of Storage Spaces
Ways to obtain more than four volumes

Because GPT also removes the 2 TiB addressing ceiling and is required for UEFI booting of current Windows releases, the extended partition is now mainly a compatibility concern rather than a design choice.

Working with extended partitions in practice

Most partitioning tools create the extended partition automatically when a user requests a fifth volume on an MBR disk. Windows Disk Management does this silently and displays the container as a green outline, while fdisk and parted on Linux ask explicitly whether to create a primary, extended or logical partition.

  • Size the container generously: the extended partition must cover all future logical partitions, and enlarging it later requires free space directly adjacent to it.
  • Place it last: keeping the extended partition at the end of the disk simplifies resizing and leaves primary slots for boot or recovery volumes.
  • Boot from a primary partition where possible: older boot code and some firmware cannot start an operating system from a logical partition.
  • Back up the partition layout: saving the MBR and EBR chain with a tool such as sfdisk allows quick restoration after corruption.

Converting an MBR disk with logical partitions to GPT is possible without data loss using tools such as gdisk or the Windows MBR2GPT utility, but MBR2GPT accepts only disks with at most three primary partitions and no extended or logical ones, so such layouts need gdisk or a rebuild, and a full backup remains essential.

Limitations and common problems

The extended partition carries several structural weaknesses that experienced administrators recognize. The most serious is the lack of redundancy in the EBR chain, followed by the 2 TiB limit inherited from MBR.

SymptomLikely causeRemedy
Logical partitions vanishDamaged or overwritten EBRRebuild the chain with TestDisk or similar
Cannot create a new partitionFour primary entries already usedConvert to GPT or reorganize primaries
Free space unusableUnallocated area outside the containerExtend the container if space is adjacent
Disk shows only 2 TiBMBR 32-bit addressing limitReinitialize the disk as GPT
Typical extended partition problems

A common misconception is that the extended partition itself can be formatted or assigned a drive letter. It cannot, because it is only a reserved region; only the logical partitions inside it receive file systems.

A plain-language summary

Picture a filing cabinet with only four drawers. If you need more compartments, you can turn one drawer into a box that holds several smaller folders. An extended partition is that box: it uses one of the four main spots on an older disk and lets you fit many smaller partitions inside it.

Newer disks use a different layout that has room for many partitions from the start, so the box is no longer needed. The main point is that extended partitions are a clever fix for an old limit, and you mostly meet them on older computers and drives.

An example from practice

A small engineering office runs a ten-year-old workstation with a 1 TB disk partitioned under MBR. The disk holds a Windows system partition, a recovery partition and an extended partition containing three logical partitions for project data, archives and a Linux test system.

After a power failure, the archive and Linux volumes disappear from both operating systems. The administrator boots a rescue USB, runs a partition recovery tool and finds that the second EBR was overwritten, cutting the chain after the first logical partition. The tool scans for file system signatures and rebuilds the missing EBR entries.

Within an hour, all three logical partitions are visible again with no data lost. The administrator then schedules a migration to a new GPT disk so that the layout gains a backup partition table and no longer depends on a single fragile chain.