Gpart Resize Partition

Finally, administrators sometimes forget to update bootcode after moving or resizing a boot partition. While resizing does not typically affect bootcode location, moving a partition’s start sector (which gpart resize never does—it only changes the end sector) would require re-installing the bootloader.

Finally, Elias turned his attention to the root partition. It was grey, tight, and full. He right-clicked it. "Resize/Move." He grabbed the right handle and dragged it into the empty space. The bar expanded, growing from 100GB to a comfortable 600GB. gpart resize partition

Shrinking is riskier and requires precise ordering. The file system must be reduced before the partition table is updated. Assuming a UFS partition ( ada0p2 ) of 50 GB needs to shrink to 40 GB to make room for another partition: It was grey, tight, and full

: If the disk was resized in a virtual environment, it might show as [CORRUPT] . Fix it with: gpart recover [diskname] (e.g., ada0 ) 2. Prepare the Space The bar expanded, growing from 100GB to a comfortable 600GB

Growing root... The final act. The partition table updated. The file system recognized the new boundaries. This was instant. The bar filled with green.

The warning box popped up, screaming in bold red text:

"Gpart," Elias muttered, the nickname rolling off his tongue like the name of an old tool. "Do your magic."