Skip to content

Instantly share code, notes, and snippets.

@ramingar
Last active August 21, 2025 15:59
Show Gist options
  • Select an option

  • Save ramingar/6c70a9cde91c0e2e950afe1b33109a55 to your computer and use it in GitHub Desktop.

Select an option

Save ramingar/6c70a9cde91c0e2e950afe1b33109a55 to your computer and use it in GitHub Desktop.
Expand unallocated space on root server
df -h
image
sudo lsblk
image
sudo growpart /dev/vda 3    # Resize partition 3 on /dev/vda
image
sudo resize2fs /dev/vda3    # Make the operating system aware of the new space and resize the filesystem to fill the expanded partition

Reboot your server from its internal drive and verify the increased disk space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment