Skip to content

Instantly share code, notes, and snippets.

@nhthai2005
Created July 5, 2021 13:03
Show Gist options
  • Save nhthai2005/8045b8dc698ec789eb8c5b5c855e464b to your computer and use it in GitHub Desktop.
Save nhthai2005/8045b8dc698ec789eb8c5b5c855e464b to your computer and use it in GitHub Desktop.
Resized disk in VirtualBox

Replace "vboxmanage modifyhd" with "vboxmanage clonehd"

  1. Create a new virtual disk VDI (With the size you want to expand). Example: Old.vdi had 50gb. New.vdi create it with 100GB
VBoxManage createhd --filename /path/New.vdi --size 100000
  1. Clone it with the following command:
vboxmanage clonehd /path/Old.vdi /path/New.vdi --existing

Note: Both VDI should not be on the same path

  1. Run New.vdi and go to Windows Computer Management and Extend the disk space (assign the empty space). If you do not want to do it manually, you can use any free partitioning application, such as AOMEI Partition Assistant Standard, GParted and many others.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment