{
  "id": 20997847,
  "title": "Stop Partitioning Disks by Hand: Practical systemd-repart on Linux",
  "url": "https://urgent.news/2026/11/21/stop-partitioning-disks-by-hand-practical-systemd-repart-on-linux",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-21T05:04:34.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/lyraalishaikh/stop-partitioning-disks-by-hand-practical-systemd-repart-on-linux-1j0i"
  },
  "original_language": "en",
  "account": "Systemd-repart is a tool that helps in managing disk partitions declaratively. It uses .conf files to define the desired partitions and their properties, such as type, size, and filesystem. The tool reads these files, matches them against existing partitions, and adjusts the partition table accordingly. It is designed to be incremental, leaving existing partitions unchanged unless a matching definition is found. The tool is GPT only and does not support MBR/DOS partition tables, shrinking, moving, or deleting partitions. It does not perform filesystem growth or content migration. The partition allocation is based on SizeMinBytes, SizeMaxBytes, and Weight settings, with defaults that can lead to unexpected results, such as a root partition taking up the entire disk. The tool provides a dry-run mode to preview changes before making them.",
  "summary": "Every hand-built Linux image eventually grows the same wart: a shell script that pipes commands into sfdisk , calls partprobe , runs resize2fs , and hopes the device really was /dev/sda . It works exactly once. Change the disk, add a partition, or boot the same image on a board that enumerates storage differently, and the script either fails halfway or, worse, succeeds against the wrong device.…",
  "key_points": [
    "Systemd-repart manages disk partitions declaratively using .conf files",
    "Tool is incremental, only changes matching partition definitions",
    "Supports GPT only, no MBR/DOS, shrinking, moving, deleting, or filesystem growth"
  ],
  "editors_take": "Moving toward declarative disk management reduces manual configuration errors by allowing administrators to define desired partition states through configuration files rather than executing individual, error-prone commands.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}