RESIZEPART(8)

๐Ÿ’– RESIZEPART(8) โ€” the resizepart page, bestie edition ๐Ÿ’–

okay so you're in resizepart(8) from the System Administration corner of the manual, and honestly? it's a lil bop. it does ONE thing and it does it well. main character energy fr.


โœจ NAME โœจ

resizepart โ€” tell the kernel about the new size of a partition

like. that's it. that's the whole job. no cap. ๐ŸŽ€


๐ŸŒธ SYNOPSIS ๐ŸŒธ

resizepart device partition length

three lil arguments, one big vibe. let's get into it ๐Ÿฆ‹


๐Ÿ’… DESCRIPTION ๐Ÿ’…

So. resizepart tells the Linux kernel about the new size of the specified partition. That's the whole assignment. periodt. ๐Ÿ’–

And the way it does it?? It's just a simple wrapper around the "resize partition" ioctl. That's it. No drama, no extra steps, no weird side quests. lowkey iconic. โœจ

๐Ÿšจ but listen โ€” this command doesn't manipulate partitions on a block device. Read that again. It does NOT touch the actual partition table situation on your disk. It's just the messenger telling the kernel "hey bestie, new size, ok bye". Do not come for it expecting it to edit your partitions. It won't. ๐Ÿ™ˆ

๐ŸŽ€ PARAMETERS ๐ŸŽ€

  • device โ€” the disk device. yes, THE disk. the whole thing. ๐Ÿ‘‘
  • partition โ€” the partition number. just the number, babe, not the whole path. ๐Ÿ”ข
  • length โ€” the new length of the partition, measured in 512-byte sectors. remember: sectors, not bytes, not megabytes. 512-byte sectors. iykyk. ๐Ÿ“
  • -h, --help โ€” display help text and exit. your lil "wait what does this do again" safety net ๐Ÿซถ
  • -V, --version โ€” display version and exit. for when you gotta know exactly which build you're working with ๐Ÿ’…

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

go be nosy, these are all friends of the family:


๐Ÿ˜ญ REPORTING BUGS ๐Ÿ˜ญ

Found a bug?? bestie we need to know. For bug reports, use the issue tracker at <https://github.com/util-linux/util-linux/issues>. be nice, be specific, include the details. the devs are people too ๐Ÿ’œ


โญ AVAILABILITY โญ

The resizepart command is part of the util-linux package, which you can download from the Linux Kernel Archive at <https://www.kernel.org/pub/linux/utils/util-linux/>. go get it, it's free, it's giving open source excellence ๐ŸŒธ


and that's the whole page, bestie!! ๐Ÿ’– this one shipped as part of util-linux 2.42.4, dated 2026-09-21 โ€” so if you're reading this, that's the version that had your back. mwah. ๐Ÿงšโœจ๐Ÿ’…

๐Ÿ“ฆ 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