Primary partition

On this page 7

A primary partition is a disk partition whose entry is stored directly in the main partition table of a disk, most commonly one of the four slots of the Master Boot Record (MBR). In operating systems and OS storage, it is the basic unit into which a disk is divided before a file system is created, and it is the only MBR partition type that legacy BIOS firmware can mark as active and boot from.

The term matters mainly on MBR disks, where it stands in contrast to the extended partition and the logical partitions inside it. On disks using the GUID Partition Table (GPT), every partition is effectively primary, so the distinction largely disappears.

How a primary partition is defined in the MBR

A primary partition is defined by one 16-byte entry in the MBR partition table, which occupies bytes 446 to 509 of the first sector of the disk. Because that table has room for exactly four entries, an MBR disk can hold at most four primary partitions, or three primary partitions plus one extended partition.

Each entry describes where the partition starts, how long it is and what it contains. The table below lists the fields that matter in practice.

FieldSizePurpose
Boot indicator1 byteValue 0x80 marks the active partition
Starting CHS address3 bytesLegacy cylinder-head-sector start position
Partition type ID1 byteIdentifies content, such as 0x07 or 0x83
Ending CHS address3 bytesLegacy cylinder-head-sector end position
Starting LBA4 bytesFirst sector in logical block addressing
Sector count4 bytesLength of the partition in sectors
Fields of an MBR primary partition entry

The 32-bit LBA fields impose the best-known MBR limit: with 512-byte sectors, a partition cannot start or extend beyond about 2 TiB. Disks with 4096-byte logical sectors raise this ceiling to about 16 TiB, but such disks are uncommon and poorly supported by older tools.

Primary, extended and logical partitions

The four-entry limit led to the extended partition, a special primary slot that acts as a container for logical partitions. Logical partitions are described by a chain of Extended Boot Records (EBRs) stored inside the container, so their number is limited only by space and by operating system support.

Partition kindWhere it is recordedMaximum numberCan hold a file system
Primary partitionMBR partition tableFour, or three with an extended oneYes
Extended partitionMBR partition tableOne per diskNo, it is only a container
Logical partitionEBR chain inside the extended oneLimited by space and OSYes
GPT partitionGPT partition entry arrayTypically 128 by defaultYes
Comparison of MBR partition kinds

For data storage, a logical partition behaves just like a primary one once a file system is created. The difference lies in booting and robustness: legacy BIOS boot code expects the active partition to be primary, and a damaged EBR can make every subsequent logical partition in the chain unreachable.

The role of primary partitions in booting

On a legacy BIOS system, the primary partition is central to booting because the MBR boot code loads the volume boot record of the partition flagged as active. Only primary partitions can carry that active flag, so the system partition of a BIOS-booted Windows installation must be primary.

Linux boot loaders such as GRUB are more flexible and can load kernels from logical partitions once their own code is running. Even so, many installers place the boot files on a primary partition for compatibility. On UEFI systems with GPT disks, the active flag is irrelevant: firmware reads the EFI system partition by its type GUID instead.

Firmware and schemeWhat the firmware looks forPrimary partition requirement
BIOS with MBRActive primary partitionRequired for the boot volume
UEFI with GPTEFI system partition by type GUIDNot applicable
UEFI with MBRPartition type 0xEF with FAT file systemUsually a primary partition
BIOS with GPTBIOS boot partition for GRUBNot applicable
Boot behavior by firmware and partition scheme

Planning primary partitions in practice

Planning matters because a fourth primary partition fills the table and prevents any further partitioning without reorganization. A typical Windows installation on an MBR disk already uses two or three primary slots: a system reserved partition, the Windows partition and often a recovery partition.

  • Keep the boot and operating system volumes primary on BIOS systems.
  • Use an extended partition for additional data volumes when more than four are needed on MBR.
  • Prefer GPT for disks larger than 2 TiB and for any UEFI installation.
  • Align every partition to a 1 MiB boundary to match modern sector and flash page sizes.

Tools present the concept differently. Windows Disk Management creates primary partitions by default until three exist and then switches to an extended container automatically, while diskpart, fdisk and parted let the administrator choose the type explicitly. Converting between MBR and GPT with tools such as mbr2gpt or gdisk preserves data in many cases, but a verified backup is still essential.

Limitations and common mistakes

Most errors with primary partitions stem from running out of table slots or from confusing MBR rules with GPT rules.

SymptomLikely causeFix
No new partition can be createdFour primary entries already usedConvert one to logical or switch to GPT
Only 2 TiB of a larger disk is usableMBR 32-bit sector limitConvert the disk to GPT
BIOS reports no bootable deviceNo primary partition marked activeSet the active flag on the boot volume
Several logical volumes disappearCorrupted EBR chainRebuild the chain with recovery tools
Symptoms, causes and fixes

A frequent misconception is that a primary partition is faster or more reliable for data than a logical one. Performance is identical, because the distinction exists only in the partition table; what changes is bootability and the number of available entries.

In simple terms

A disk can be split into separate sections called partitions, and a primary partition is one listed in the main table of contents at the very beginning of the disk. On older disks that table has only four lines, so you can list only four primary partitions.

If you need more sections, one line points to a separate box that holds extra sections inside it. The computer can start only from a primary partition on these older disks, which is why the operating system usually lives on one.

A practical example

A technician maintains a workshop computer with legacy BIOS firmware and a 1 TB disk using MBR. Windows Setup has created a 500 MB system reserved partition, a 900 GB Windows partition and a 600 MB recovery partition, all primary.

The owner wants two more data volumes for project archives. Creating them as primary partitions is impossible, because only one table slot remains. The technician shrinks the Windows partition by 200 GB, uses the last slot for an extended partition and creates two logical partitions of 100 GB each inside it.

The outcome is five usable volumes on a four-slot disk, while the boot partition stays primary and active. When the machine is later replaced by a UEFI system with a 4 TB drive, the new disk is initialized as GPT, where the four-partition limit no longer applies.