After you have increased the size of your SSD in the MyTilaa dashboard, the FreeBSD operating system sees the larger disk, but the partition layout is still set to the old size.
Depending on your filesystem (UFS or ZFS), you need to execute a few commands to claim this free space.
Messing with partition tables always carries a risk. Please create a Snapshot before running these commands.
Step 1: Repair the Partition Table
Because the physical disk has grown, the "backup header" of the GPT partition table is no longer at the end of the disk. FreeBSD marks this as "CORRUPT". We must fix this first.
- Log in via SSH as
root. -
Check the disk status:
gpart show vtbd0 -
If it says
CORRUPT, run the recovery command:gpart recover vtbd0
Now the disk table is healthy and sees the extra free space.
Step 2: Resize the Partition
Now we need to tell the partition to fill the new empty space.
1. Check which partition index is your root partition (usually the largest one, e.g., index 2 or 3):
gpart show vtbd02. Resize the partition (replace 2 with your index number):
gpart resize -i 2 vtbd0If your Swap partition is located after your root partition, you cannot resize the root partition. You would need to disable swap, delete that partition, resize root, and recreate swap.
Step 3: Grow the Filesystem
The partition is now larger, but the filesystem inside it needs to be expanded. Follow the instructions for your specific filesystem.
Option A: UFS (Standard)
If you use the standard Unix File System, use growfs. This can be done on a live system.
# Syntax: growfs /dev/vtbd0p
growfs /dev/vtbd0p2(Confirm with 'Yes' if prompted).
Option B: ZFS (OpenZFS)
If you use ZFS, you need to tell the Zpool to expand.
# Syntax: zpool online -e
zpool online -e zroot vtbd0p2Verify the new size with:
df -h