Expand VHD not working

This is for discussing general topics about how to use VirtualBox.
Post Reply
sams5817
Posts: 3
Joined: 22. Jul 2011, 05:54
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: windows 2008

Expand VHD not working

Post by sams5817 »

Hi All,

I have an issue on hard disk space in my VM, the virtualbox version using is 4.1.8
the growth of content in the VM required me to expand the VHD (from 40GB to 150GB)
I had run the command as below to modify the hard disk to larger space, and yet the hard disk space still remain the same.

VBoxManage modifyhd "PATH" --resize 150000

the command above successfully resize the VHD (refer attachment img1.png).
but after I run the VM and notice the hard disk space remain the same (refer attachment img2.png)
it not allow me to paste file size larger than the free space (in my case 5.71GB)

any solution for this? thank you in advanced.
Attachments
VM hard disk space
VM hard disk space
img2.png (3.34 KiB) Viewed 1289 times
virtualbox setting
virtualbox setting
img1.png (50.58 KiB) Viewed 1289 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Expand VHD not working

Post by mpack »

Asked and answered too many times: enlarging a disk does not affect the filesystem on the disk. To affect the latter you need to use a partitioning tool. Vista+ has a built in disk partitioning tool, I'm not sure if Win2K8 does - if in doubt you can always use a gparted live CD iso.
Post Reply