Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

MBR

Direct answer

MBR (Master Boot Record) is the legacy partition scheme: up to four primary partitions (or three plus an extended partition with logical ones) and a 2 TiB limit; BIOS boot code lives in the first sector.

When to use this

Use it on older systems or small disks, and to recognise its limits.

First 30 seconds

1. fdisk -l /dev/<disk> — Disklabel type: dos?

2. Need > 2 TiB or > 4 partitions → GPT.

3. Boot disk on BIOS → MBR boot code via grub-install.

4. Back up before converting.

5. lsblk to confirm.

Operational verification

MBR in sector 0 → up to four entries (one extended) → partitions

Evidence · next step

For Disks & Block Devices → MBR, continue with the first unproven Topic check: Preserve the existing MBR sector and partition layout before modifying it. If that boundary is healthy, advance to the adjacent check: Verify signature, primary entries, start sectors, lengths and disk-size bounds. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Scope / prerequisiteUse it on older systems or small disks, and to recognise its limits.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

disk sector 0 → MBR signature + primary entries → optional extended/EBR chain → kernel partition devices → filesystem/LVM → workload

Healthy evidence: signature and partition entries are internally consistent, within disk bounds, logical partitions chain correctly and upper layers resolve to expected data.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Preserve the existing MBR sector and partition layout before modifying it.

  • Verify signature, primary entries, start sectors, lengths and disk-size bounds.
  • If extended partitions exist, walk the EBR chain and validate logical partition relationships.
  • After any correction, force a safe reread and verify upper storage layers and workload data.

Verification chain. disk sector 0 → MBR signature + primary entries → optional extended/EBR chain → kernel partition devices → filesystem/LVM → workload

Step 3 Commands Verify boundary
fdisk -l /dev/sda
parted /dev/sda print
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: overlapping/out-of-range entries, broken EBR links, a rewritten disk size or accidental boot-code/partition-table overwrite can make otherwise intact data unreachable.

Step 5 Common mistakes Narrow the fault
  • MBR on disks over 2 TiB.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points

Disks over 2 TiB need GPT. Converting MBR to GPT is possible with gdisk but take a backup first. Use fdisk for MBR.

Key checks
  • lsblk -f — disks, partitions, filesystems, UUIDs and mount points
  • blkid — UUIDs, labels and types
  • fdisk -l / parted -l — partition tables
  • udevadm info /dev/<dev> — device properties
ReferenceWhat it is1 section · depth on demand

Core model

Capture sector 0 and disk geometry/size before changes. Distinguish boot-code problems from partition-entry problems, and distinguish primary partitions from the extended-partition EBR chain. Validate partition type, start/length and non-overlap before writing a new table.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

MBR evidence shows legacy partition metadata only, but it does not show bootloader correctness, filesystem health or application data.

In depth

MBR: the legacy partition table

The Master Boot Record is the original PC partition format, and it's still found on older systems and small disks. The UEFI specification describes its layout as part of the GPT chapter:

  • 424 bytes of boot code at the start of sector 0.
  • A disk signature at offset 440.
  • Four 16-byte partition records from offset 446, each with an OS type, a starting LBA and a size in LBAs.
  • The signature 0xAA55 at offset 510.

UEFI firmware doesn't execute the MBR boot code. On GPT disks, the MBR contains a single protective partition of type 0xEE, so that old tools see the disk as fully in use.

MBR structure

OffsetSizeContent
0424 bytesBoot code (BIOS systems)
4404 bytesDisk signature
4464 × 16 bytesPartition records
5102 bytes0x55 0xAA

Partition types in MBR

KindNotes
PrimaryAt most four
ExtendedOne primary slot used as a container
LogicalInside the extended partition, numbered from 5 (fdisk(8))

Common MBR type codes

CodeUse
83Linux file system
82Linux swap
8eLinux LVM
fdLinux RAID autodetect
07NTFS/exFAT
eeGPT protective MBR

Limits

The starting LBA and size fields are 32-bit. With 512-byte sectors, that limits an MBR partition, and in practice the usable disk, to 2 TiB. Larger disks need GPT. The fdisk(8) manual itself calls GPT the better choice on modern UEFI hardware.

host$ sudo fdisk -l /dev/sdd | grep -E "Disklabel|^/dev"
Disklabel type: dos
/dev/sdd1  *     2048   2099199   2097152    1G 83 Linux
/dev/sdd2     2099200  62914559  60815360   29G 8e Linux LVM
host$ sudo dd if=/dev/sdd bs=512 count=1 2>/dev/null | xxd | tail -2
host$ sudo sfdisk -d /dev/sdd > sdd-table.bak
host$ sudo sgdisk --mbrtogpt /dev/sdd
host$ sudo fdisk -l /dev/sda | grep Disklabel
Disklabel type: gpt

Converting MBR to GPT

sgdisk --mbrtogpt converts the table in place. GPT needs space for its structures at the start and end of the disk. If the system boots in BIOS mode with GRUB, it also needs a small BIOS boot partition. Save the old table with sfdisk -d first, as in the example, so it can be restored.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works at runtime

MBR is part of Disks & Block Devices → MBR. MBR partitioning stores boot code and a four-entry primary partition table in the first sector, with extended/logical partition chaining used to exceed four partitions and classic 32-bit LBA limits constraining large disks.

Topic-specific state model. MBR partitioning stores boot code and a four-entry primary partition table in the first sector, with extended/logical partition chaining used to exceed four partitions and classic 32-bit LBA limits constraining large disks.

Interpretation rule. - Valid MBR signature ≠ partition entries are correct.

  • Boot code failure ≠ partition table failure.
  • Extended partition entry ≠ every logical partition in the EBR chain is valid.
  • MBR partition table readable ≠ filesystem contents are intact.

Quick reference

MBR (msdos) on Linux: max 2 TiB disks, four primary partitions (or three + extended with logical partitions numbered from 5), no backup table.

fdisk -l /dev/sdb            # Disklabel type: dos
sfdisk -d /dev/sdb > sdb.dump       # backup table
sfdisk /dev/sdb < sdb.dump          # restore

Use GPT for all new disks; MBR remains on old VMs and small boot disks. Converting in place: sgdisk -g /dev/sdb (risky — back up first, and BIOS boot needs a BIOS boot partition with GRUB afterwards).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Limits and how it fails

Primary failure point. MBR evidence shows legacy partition metadata only, but it does not show bootloader correctness, filesystem health or application data.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. MBR owns DOS/MBR partition-table semantics. Boot Process owns bootloader behavior; Filesystems/LVM own contents of the partitions.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Disks & Block Devices → MBR. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/filesystems/index.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
master boot record partitionmbr partition tabledos partition table linuxextended partition ebr
Embedded reference data

Quick lookup tables

MBR operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for MBR.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateMBR partitioning stores boot code and a four-entry primary partition table in the first sector, with extended/logical partition chaining used to exceed four partitions and classic 32-bit LBA limits constraining large disks.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin host + incident/change time → capture block topology and stable identities → validate partition/device metadata → validate filesystem identity/integrity and effective mount namespace/options → validate PV/VG/LV/device-mapper state where used → make one controlled change at the first failed boundary → re-read effective storage state → repeat original workload I/O/acceptance test.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chaindisk sector 0 → MBR signature + primary entries → optional extended/EBR chain → kernel partition devices → filesystem/LVM → workloadTrace requested/configured state through effective state to the observed workload result.
Failure boundaryMBR evidence proves legacy partition metadata only; it does not prove bootloader correctness, filesystem health or application data.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux storage evidence can establish this proof path: disk sector 0 → MBR signature + primary entries → optional extended/EBR chain → kernel partition devices → filesystem/LVM → workloadUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured device, metadata, mapping, mount or workload scope. MBR evidence proves legacy partition metadata only; it does not prove bootloader correctness, filesystem health or application data.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven boundary: prove backing identity, then on-device metadata, then filesystem/LVM mapping and effective mount/device state, and finally repeat the original workload I/O before any additional storage change.Continue to the next unresolved boundary while preserving the original test condition.

MBR · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryMBR
Topic pathDisks & Block Devices → MBR
Runtime stateMBR partitioning stores boot code and a four-entry primary partition table in the first sector, with extended/logical partition chaining used to exceed four partitions and classic 32-bit LBA limits constraining large disks.
Fast checks- Preserve the existing MBR sector and partition layout before modifying it. - Verify signature, primary entries, start sectors, lengths and disk-size bounds. - If extended partitions exist, walk the EBR chain and validate logical partition relationships. - After any correction, force a safe reread and verify upper storage layers and workload data.
Verification chaindisk sector 0 → MBR signature + primary entries → optional extended/EBR chain → kernel partition devices → filesystem/LVM → workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary.
Failure boundaryMBR evidence proves legacy partition metadata only; it does not prove bootloader correctness, filesystem health or application data. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?