Page 1 of 1

Resizing VHD doesn't work

Posted: 10. Apr 2016, 17:50
by Yerst
Hey, i tried to resize my VHD from 100GB to 200GB with "VBoxManage modifyhd [PathToVHD] --resize=200000" which did work, VirtualBox tells me the Virtual Size of my VHD is 195GB.
So i started it with a GParted live CD, but GParted shows the VHD is only 100GB big.
The Windows Disk Management on the other side sees that the VHD is 200GB big, but 100GB are unallocated. But it doesn't allow to extend the Partition.
Do you have any ideas what may cause this problem?
Thanks in Advance, Yerst

Re: Resizing VHD doesn't work

Posted: 10. Apr 2016, 18:00
by Perryg
Are you using snapshots?

viewtopic.php?f=24&t=50661

Re: Resizing VHD doesn't work

Posted: 10. Apr 2016, 19:43
by socratis
Yerst wrote:--resize=200000" which did work, VirtualBox tells me the Virtual Size of my VHD is 195GB.
Nothing to do with advising you about changing the size (Perry did that already), but next time you do math:
200000 รท 1024 = 195,3125
You're dealing with binary numbers... ;) You should have inputted " --resize 204800", or "--resizebyte 209715200" if you wanted to be at the 200 GB size exactly.