ADDPART(8)

โœจ ADDPART โ€” the addpart(8) of it all โœจ

okay so bestie, you know how the kernel is like, out here living its life, having zero clue that a partition even exists? ๐Ÿ’€ Yeah. This is the little sysadmin tool from the System Administration corner of your system that fixes that. One job. Iconic behaviour.


๐ŸŒธ NAME ๐ŸŒธ

addpart โ€” tell the kernel about the existence of a partition ๐Ÿซถ


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

addpart device partition start length

๐Ÿ’… DESCRIPTION ๐Ÿ’…

So addpart literally just tells the Linux kernel that the partition you're describing is, in fact, real and out there. That's it, that's the whole vibe. โœจ

Under the hood it's a simple wrapper around the "add partition" ioctl โ€” no drama, no extra steps, just the one call. iykyk. ๐Ÿ”ฅ

โš ๏ธ Okay important one, bestie: this command doesnโ€™t manipulate partitions on a block device. Like, at all. It does not go in there and change anything. It just informs. It's giving "letting the group chat know" energy, not "editing the group chat" energy. ๐Ÿ™ˆ

๐Ÿฆ‹ PARAMETERS ๐Ÿฆ‹

  • device โ€” the disk device. ๐Ÿ–ฅ๏ธ
  • partition โ€” the partition number. ๐Ÿ”ข
  • start โ€” where the partition begins, measured in 512-byte sectors. ๐Ÿ“
  • length โ€” how long the partition is, also in 512-byte sectors. ๐Ÿ“

And then the two lil flag besties that every util-linux command comes with:

  • -h, --help โ€” display help text and exit. ๐Ÿ†˜
  • -V, --version โ€” display version and exit. ๐Ÿท๏ธ

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

The whole squad, go say hi: delpart(8), fdisk(8), parted(8), partprobe(8), partx(8) ๐Ÿ’–


๐Ÿ’€ REPORTING BUGS ๐Ÿ’€

Found a bug? not the vibe, but also thank you for your service ๐Ÿซก. For bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>.


๐Ÿ‘‘ AVAILABILITY ๐Ÿ‘‘

The addpart command is part of the util-linux package, which you can download from the Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>. Go get it, it's free, it's iconic. โœจ


and that's the whole page, bestie!! ๐ŸŽ€ This was util-linux 2.42.4, dated 2026-09-21, and yes, ADDPART(8) ate and left no crumbs. periodt. ๐Ÿ’…๐ŸŒธ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from
  • arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms