Page 1 of 4

modifying the size of two disks .vdi

Posted: 6. Sep 2013, 00:40
by Fielding
I have reach a strange situation :
host windows 7 - 64 -16GB RaM
guest windows xp , with two data disks

I apply the command :

Vboxmanage modifyhd "Y:\VirtualBox\Data\Machines\WindowsXPpro-btwinVA-COMUNICACIONES\WindowsXPpro-btwinVA-COMUNICACIONES-disk2.vdi" --resize 50000 for one of the disks and seems quickly resized.

I observ this in the main VB window by the size indicated for disk2.vdi
But also observ a occupation of 67 MB.
I enter in the COMUNICACIONES machine and see that the old .vdi continues with the same size of 10 GB and the old occupation. No data loss. I have a security copy if necessary, but I don't understand what is happening.

Can you help me please ?


Best Regards

Re: modifying the size of two disks .vdi

Posted: 6. Sep 2013, 01:09
by Perryg
Just increasing the size of the hard drive will not extend the primary partition to use the new space.
viewtopic.php?f=24&t=50661

Re: modifying the size of two disks .vdi

Posted: 6. Sep 2013, 02:37
by Fielding
Perryg wrote:Just increasing the size of the hard drive will not extend the primary partition to use the new space.
viewtopic.php?f=24&t=50661
I'll try
Any problem i will comment
Best Regards

Re: modifying the size of two disks .vdi

Posted: 6. Sep 2013, 11:44
by Fielding
I am trying
I boot from the gparted iso but only see the three virtual disks of 10 GB initially created, but don't see the new units of 50 GB
What am i doing bad ?

Image


Simply i don't know how expand the primary partition to use the new space

Best Regards

Re: modifying the size of two disks .vdi

Posted: 6. Sep 2013, 11:53
by Fielding
I have found this tutorial .
http://www.llakomy.com/articles/increas ... th-gparted

but really i don't see any unallocated space.
I only see the three original 10 GB disks , but no the new size created that i can see from outside the VM in the storage section.

Best Regards

Note : The two 10 GB disks are data disks inside the VM
I haven't try resize the system disk of 10 GB because is a VMDK and have to convert to vdi.

Re: modifying the size of two disks .vdi

Posted: 6. Sep 2013, 13:43
by Fielding
A screenshot of the situation outside the VM

Image

Re: modifying the size of two disks .vdi

Posted: 6. Sep 2013, 14:10
by Fielding
May be in relation with the limit four IDE devices ?

Re: modifying the size of two disks .vdi

Posted: 6. Sep 2013, 14:40
by Perryg
Are you booting the guest with the Gparted ISO in the guests virtual drive?
Do you have snapshots?

Re: modifying the size of two disks .vdi

Posted: 7. Sep 2013, 00:36
by Fielding
Hello again Perry.
I have 5 snapshots
I am not able to understand well the second question. The GParted drive seems to be IDE secondary master. Please see my screenshot.

Re: modifying the size of two disks .vdi

Posted: 7. Sep 2013, 01:08
by Perryg
I think I see what is happening. Since the VDI drives are not the primary drive Gparted is not seeing them.
I can see that the resize did work for the HDD but the partition will not show by 10GB and you can't extend the primary partition to use the new space.
I don't know if this is an XP host issue or not. Someone with XP as host will need to test.

The other thing is you can not resize a drive if you have snapshots. I have not tested this on secondary drives though. That I can try tomorrow.

Re: modifying the size of two disks .vdi

Posted: 7. Sep 2013, 01:23
by Perryg
I go to this sooner and can tell you that if you have snapshots you can not resize the additional drives either.

Re: modifying the size of two disks .vdi

Posted: 7. Sep 2013, 01:27
by Fielding
Perryg wrote:I go to this sooner and can tell you that if you have snapshots you can not resize the additional drives either.

Do you have any idea ?

Perhaps delete the snapshots ?

Clone the virtual machine ?

No solution ?

Re: modifying the size of two disks .vdi

Posted: 7. Sep 2013, 01:32
by Perryg
The safest is to clone the guest. select to create a new guest as one file without snapshots. ( not sure the exact wording )
Then you will be able to see the new sizes in Gparted.

Re: modifying the size of two disks .vdi

Posted: 7. Sep 2013, 03:09
by Fielding
I'll try and comment.
Best Regards

Re: modifying the size of two disks .vdi

Posted: 7. Sep 2013, 05:17
by Fielding
Tomorrow more
I supposed i need to redimensionate again the hard disk before applying Gparted.
In the clone machine the HD are again 10 GB from outside according to the screenshot
Best Regards

Image
Image
Image
Image
Image
Image