{
  "slug": "disk-partition",
  "term": "Disk partition",
  "aliases": [
    "disk partitioning",
    "partition (disk)"
  ],
  "definition": "A disk partition is a contiguous range of logical blocks on a block device, described by a partitioning scheme.",
  "note": "A partition table records the division into address ranges. The range is not itself a filesystem: partitioning and organizing files are separate layers. [fdisk]\n\nGPT entries store an inclusive StartingLBA and EndingLBA. The byte offset is StartingLBA times logical-block bytes, and the length is (EndingLBA - StartingLBA + 1) times logical-block bytes. Physical-sector size is not the multiplier for these addresses. [uefi]\n\nResizing a partition and resizing its filesystem are distinct operations. For ext2/3/4, resize2fs changes the filesystem, not the partition table. Growing the containing range does not by itself make that space usable by the filesystem; shrinking it below the filesystem size can destroy data. [resize]\n\nA readable partition table does not establish that the enclosed filesystem or files are intact. Interpreting GPT LBA ranges in an image requires the logical-block size used by that layout. Check the acquired bytes and their interpretation separately. [hesela]\n\nUnit trap: blockdev --report labels its partition start in 512-byte sectors; --getsz uses the same fixed unit. Neither count changes to 4096-byte units when --getss reports a 4096-byte logical sector. [units]",
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "related": [
    "guid-partition-table",
    "block-device",
    "filesystem",
    "logical-sector",
    "logical-volume",
    "partition-alignment"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-22",
  "citations": [
    {
      "id": "fdisk",
      "title": "util-linux v2.40.4: fdisk, partition tables and block devices",
      "url": "https://raw.githubusercontent.com/util-linux/util-linux/v2.40.4/disk-utils/fdisk.8.adoc",
      "accessed": "2026-11-22"
    },
    {
      "id": "uefi",
      "title": "UEFI 2.10, section 5.3.3: GPT partition entry ranges",
      "url": "https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html",
      "accessed": "2026-11-22"
    },
    {
      "id": "resize",
      "title": "e2fsprogs v1.47.2: resize2fs, separate filesystem and partition resizing",
      "url": "https://raw.githubusercontent.com/tytso/e2fsprogs/v1.47.2/resize/resize2fs.8.in",
      "accessed": "2026-11-22"
    },
    {
      "id": "hesela",
      "title": "Hesela: acquisition coverage and GPT metadata checks",
      "url": "https://hesela.com/analyses/ddrescue-image-provenance/",
      "accessed": "2026-11-22"
    },
    {
      "id": "units",
      "title": "util-linux v2.40.4: blockdev report and sector-size units",
      "url": "https://raw.githubusercontent.com/util-linux/util-linux/v2.40.4/disk-utils/blockdev.8.adoc",
      "accessed": "2026-11-22"
    }
  ],
  "provenance": [
    "Documentation synthesis using UEFI 2.10, util-linux v2.40.4 and e2fsprogs v1.47.2; no device repartitioning or recovery experiment.",
    "Contiguity describes the partition's logical address range, not placement on physical media or a volume manager's backing extents."
  ]
}
