Use it on older systems or small disks, and to recognise its limits.
MBR
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.
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.
MBR in sector 0 → up to four entries (one extended) → partitions
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
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
Disks over 2 TiB need GPT. Converting MBR to GPT is possible with gdisk but take a backup first. Use fdisk for MBR.
lsblk -f— disks, partitions, filesystems, UUIDs and mount pointsblkid— UUIDs, labels and typesfdisk -l / parted -l— partition tablesudevadm 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
| Offset | Size | Content |
|---|---|---|
| 0 | 424 bytes | Boot code (BIOS systems) |
| 440 | 4 bytes | Disk signature |
| 446 | 4 × 16 bytes | Partition records |
| 510 | 2 bytes | 0x55 0xAA |
Partition types in MBR
| Kind | Notes |
|---|---|
| Primary | At most four |
| Extended | One primary slot used as a container |
| Logical | Inside the extended partition, numbered from 5 (fdisk(8)) |
Common MBR type codes
| Code | Use |
|---|---|
| 83 | Linux file system |
| 82 | Linux swap |
| 8e | Linux LVM |
| fd | Linux RAID autodetect |
| 07 | NTFS/exFAT |
| ee | GPT 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.
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).
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
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.
Quick lookup tables
MBR operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for MBR.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | 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. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin 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 chain | disk sector 0 → MBR signature + primary entries → optional extended/EBR chain → kernel partition devices → filesystem/LVM → workload | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | MBR 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 evidence | Correlated Linux storage evidence can establish this proof path: disk sector 0 → MBR signature + primary entries → optional extended/EBR chain → kernel partition devices → filesystem/LVM → workload | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It 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 check | Continue 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 boundary | MBR |
|---|---|
| Topic path | Disks & Block Devices → MBR |
| Runtime state | 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. |
| 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 chain | disk 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 boundary | MBR 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 rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |