Actual Size not matching Virtual Size

Discussions related to using VirtualBox on Windows hosts.
Post Reply
ram tr
Posts: 1
Joined: 6. Oct 2015, 05:54

Actual Size not matching Virtual Size

Post by ram tr »

Hi,

I have created a Virtual machine for Cent Os using VDI file and its initial Virtual size and Actual size was 7 GB.

I have extended the storage size using Gparted to 80 GB. Now My Virtual size becomes 80 GB, but my actual size still showing 7 GB.

When I start the Cent OS machine, still it is using only 7 GB. It is supposed to be 80GB.

I am not sure what I am missing. Can anyone help me on this. Any help would be appreciated.

Thanks
Ram
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Actual Size not matching Virtual Size

Post by scottgus1 »

ram tr wrote:its initial Virtual size and Actual size was 7 GB.
Did you make this drive a fixed-size drive or dynamic? If the 7GB size was achieved right away even before the OS was installed, it was probably fixed. If the drive was some few kilo- or megabytes at first it was dynamic. As far as I remember, fixed drives can't be re-sized. You can clone it to a dynamic drive then it can be re-sized.
ram tr wrote:I have extended the storage size using Gparted to 80 GB.
You do have to use something like GParted to expand the partition, but you have to expand the drive's "media" first. You don't mention running any Virtualbox commands to attempt to expand the drive. Did you?

An easy way to expand a disk is to do so while cloning it using Mpack's CloneVDI tool (see the top of the Windows Hosts forum). Make the clone in the same folder as the original drive file. Then use the cloned drive file. Depending on the filesystem you may be able to have CloneVDI expand the partition inside too. Check the "Keep old UUID" box, then when the clone is done, rename the old drive file to some other name, and rename the clone to the original drive file's original name. Then you'll have your new bigger drive ready to use.
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: Actual Size not matching Virtual Size

Post by mpack »

No way GParted lets you make a partition larger than the drive its on. We're missing vital parts of the story here.
Post Reply