Home Resize Ubuntu disk on VMware
Post
Cancel

Resize Ubuntu disk on VMware

  • Add more storage to the drive in Vmware and reboot the server.
  • SSH into the server once back up, OR use the console.

/sda being the disk name/ ;abel given by the system. Note the space between sda & 1 is not a type-o

Grow the partition

1
sudo growpart /dev/sda 1

Rezise the partition

1
sudo resize2fs /dev/sda1

Check the disk size

1
df -h to check

This also works with Google Cloud instances.

This post is licensed under CC BY 4.0 by the author.