I want to expand the size of my Windows VM under VirtualBox. I expanded the size of the volume following the steps here, that is,

VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB

but I am unable to expand the partition in the guest VM. "Extend volume" is grayed out. How to proceed?

Here is a screen shot of my guest OS Disk Management.

guest OS Disk Management

  • You can't resize the C partition because the recovery partition is in the way.
    – wjandrea
    Dec 2, 2016 at 16:21
  • You cannot expand your C: partition; you'ld have to (re)move the "Recovery Partition" first.
    – ridgy
    Dec 2, 2016 at 16:23
  • 1
    Do you only need additional storage space for the VM? If so, why not create another virtual disk, and attach it to the VM? Dec 2, 2016 at 17:40

2 Answers 2

  2. boot the guest OS and open Disk Management again
  3. delete the recovery partition
  4. right click on the C partition
  5. from the context menu select Extend volume
  6. Increase the size to accommodate the one you added. See here for images, starting from step 5 or 6.

After that your Windows partition size should have increased.

  • @wjandrea, just make a copy of the original and put it some where in case it get corrupted when you resize. For the recovery partition I don;t think he needs to do anything just follow the steps if it goes bad then the copy made will be reused. Dec 3, 2016 at 2:44
  • So, delete the recovery partition?
    – wjandrea
    Dec 3, 2016 at 2:46
  • @wjandrea, the backup is from the host OS not the guest. Just make a copy of it in the host OS. Dec 3, 2016 at 2:48
  • I don't think he needs to delete it as his target is the 5GB he created which is at the end of the disk partitions as can be seen from his image. He should just expand his C drive to add the 5GB space. Dec 3, 2016 at 2:54
  • 1
    You can't expand an NTFS partition into non-contiguous space.
    – wjandrea
    Dec 3, 2016 at 2:56

You need contiguous space to expand any partition. I would go into gparted, create a 450 MB partition at the disk, and then move the recovery partition to that new partition, or delete it if you don't need it.

Once you have free space adjacent to the windows partition, you should be able to expand it to incorporate that free space. I'm not sure, but you may need to then go into Windows to the disk manager and tell it to use the full size of the disk.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.