Pcornel
Linux · Disks & Block Devices

MBR

Cheat sheet · https://pcornel.dk/topic.php?topic=2750

Back to the Topic

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.

Remember

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

First 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

Verify in this order

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

Where it usually breaks

First mismatch in hardware/block device → kernel driver/mapper/RAID/LVM → filesystem → mount namespace/options → path permissions/MAC → consumer I/O; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2750

Confirmation

Confirm action

Continue?