FreeBSD gpart
freebsd.org
- Free plan
- Self-hosted
What FreeBSD gpart is
FreeBSD gpart is a free utility included with FreeBSD for managing disk partitioning through the GEOM class. It works with partition providers, usually disks, and can create, add, delete, modify, resize, and inspect partitions, as well as set or clear their attributes. Documented schemes include APM, BSD, BSD64, LDM, GPT, and MBR. When adding a partition, users can request alignment for its start offset and size. The show action reports partition indexes, types, starting blocks, sizes, and human-readable sizes; libxo can produce human- or machine-readable output. A table can be saved with dump and restored, including to replicate it across providers. Changes can remain pending until commit, or be reversed with undo. The recover action can address corrupt partition-scheme metadata, but selecting the wrong provider can damage metadata for another GEOM class. The utility cannot delete a partition while the kernel is actively using it. FreeBSD is free and includes source code, with installation images for physical and virtual environments. gpart requires kernel support for the partitioning scheme in use.
Who it suits
gpart suits FreeBSD users managing partition providers who need partition operations, table backup, or machine-readable output. It requires kernel support for the scheme being used.
Good to know, and what to watch
- Supports multiple documented partition schemes
- Can dump and restore partition tables
- Changes can be committed or undone
- Offers machine-readable output formats
- Requires kernel support for the selected scheme
- Wrong provider selection during recovery can damage metadata
- Active kernel-use prevents partition deletion
Plans
Every plan and priceFreeBSD gpart
Free plan
The verdict
gpart provides partition management and recovery actions within FreeBSD’s GEOM framework. Take care with recovery provider selection, and note that active partitions cannot be deleted.
What the maker publishes
- Availability
- FreeBSD is available free of charge and includes its source code. source
- Backup and restore
- gpart can dump a partition table in a format accepted by its restore action, including for cloning a table to multiple providers. source
- Backup and restore
- It can dump a partition table to a special format and restore a table from a backup; restoring the table does not restore partition contents. source
- Boot code
- The bootcode command can write bootstrap code to partitioning metadata or to a specified partition. source
- Boot support
- gpart can embed bootstrap code in partitioning metadata or write it to a partition, subject to scheme-specific requirements. source
- Download formats
- FreeBSD offers installer images, virtual machine images, and SD card images; installer and USB options include offline and network-dependent variants. source
- Founded
- 1993 source
- FreeBSD included
- FreeBSD is available free of charge and comes with its source code. source
- Inspect partitions
- The show command reports partition start blocks, sizes, indexes, types, and human-readable sizes. source
- Installation media
- FreeBSD offers DVD and USB installer images, virtual machine images, and SD card images. source
- Intended environments
- FreeBSD describes its supported uses as including server, desktop, appliance, and embedded environments. source
- Intended use
- FreeBSD describes itself as an operating system for varied platforms and highlights server, appliance, and embedded uses; gpart’s manual describes its use for partitioning providers, normally disks. source
- Machine-readable output
- The --libxo option can generate output in different human- and machine-readable formats. source
- Output formats
- The show command supports libxo output in several human-readable and machine-readable formats. source
- Partition alignment
- When adding a partition, users can request alignment for its start offset and size. source
- Partition operations
- It can create, add, delete, modify, resize, and show partitions, and set or clear partition attributes. source
- Partition operations
- Its commands include creating, adding, deleting, modifying, resizing, recovering, and destroying partitions or partitioning schemes. source
- Partition schemes
- Documented schemes include APM, BSD, BSD64, LDM, GPT, and MBR. source
- Pending changes
- Changes can be left pending and later written with commit or reverted with undo. source
- Project history
- The gpart utility appeared in FreeBSD 7.0. source
- Purpose
- gpart is FreeBSD’s utility for managing disk partitioning through the GEOM class. source
- Purpose
- gpart is a utility for partitioning GEOM providers, normally disks. source
- Recovery
- The recover command can recover corrupt partition scheme metadata; the manual cautions that choosing the wrong provider can damage metadata belonging to another GEOM class. source
- Safety behavior
- A partition cannot be deleted while it is actively used by the kernel. source
Checked against the maker's pages on 9 Oct 2026.