Virtual disk dimension

Discussions about using Windows guests in VirtualBox.
Post Reply
Andrew_VB
Posts: 7
Joined: 29. Apr 2022, 15:22
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Win 10

Virtual disk dimension

Post by Andrew_VB »

Good morning

I have expanded from 50 Gb to 90 Gb the VHD space

But in the virtual machine whit Windows 10 the propieties of C:\ still 50 Gb

How can i update it

Thanks
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Virtual disk dimension

Post by mpack »

See step 2 of the resizing FAQ: How to resize a Virtual Drive.
Andrew_VB
Posts: 7
Joined: 29. Apr 2022, 15:22
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Win 10

Re: Virtual disk dimension

Post by Andrew_VB »

I fixed it

The space in Windows was corret

Only was necessary increase the space in Windows Device Manager
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Virtual disk dimension

Post by scottgus1 »

Andrew_VB wrote:Only was necessary increase the space in Windows Device Manager
Yep, that's the animal. Step 2 in Mpack's linked tutorial: increase the partition inside the disk.
Nicolas-MEAE
Posts: 8
Joined: 25. May 2022, 09:21

Re: Virtual disk dimension

Post by Nicolas-MEAE »

Hi,
If that can help someone, this is a powsershell script we run at Windows startup to automaticaly increase its C partition size to "whatever" is available, if the disk size has increased.
Nota : it only works for the last of windows partition. If you have C and D partition (for an example, in that order), then you can only increase the D this way.

Code: Select all

$size = Get-PartitionSupportedSize -DriveLetter C
Resize-Partition -DriveLetter C -Size $size.SizeMax
Post Reply