Last Updated on May 4, 2012 by GrahamWalsh
Have you ever experienced an issue where you have reached the maximum of a dynamically expanding drive. For example, the default drive size for a Windows 7 installation is 20GB. You soon fill that, so rather than starting again, you can just expand the disk with the command prompt or terminal. Run the command below (which expands to 80GB) and then just go into disk manager in Windows 7 and expand the primary drive to use the free space.
vboxManage modifyhd “/Users/gwalsh/VirtualBox VMs/Windows7/Windows7.vdi” –resize 81920
The whole process takes a few seconds.