Resizing VHD doesn't work

This is for discussing general topics about how to use VirtualBox.
Post Reply
Yerst
Posts: 1
Joined: 10. Apr 2016, 17:44

Resizing VHD doesn't work

Post 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
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Resizing VHD doesn't work

Post by Perryg »

Are you using snapshots?

viewtopic.php?f=24&t=50661
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Resizing VHD doesn't work

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply