I successful converted a machine from physical to virtual. The physical machine has one hard disk with two partitions.
I made a fixed vhd of 300gb and I see 2 partition, one of the system and the other one is unallocated. I don't want to create a new partition, I want only one with the full space. I tried with partition magic but it says that there aren't any parittion to merge.

This is what I see in disk management enter image description here


What you want to do is expand the existing partition to consume the entire disk. From Windows Server 2008 onwards, you could expand the system partition online, so we need to know which OS your VM is running. If it is running Windows 2003 R2 and older, your options are to either use a 3rd party tool or booting the VM using WinPE and expanding the partition offline using diskpart from within WinPE. The latter is quite easy to do.

The process is described in this document: How to extend a data volume in Windows Server 2003, in Windows XP, in Windows 2000, and in Windows Server 2008

  • Thanks for the answer! The OS installed is Windows XP SP3, the host is Windows Server 2012. So the only method is to use winpe or a live cd? I can't with the system running use software like partition manager? – Kreker Oct 10 '13 at 12:42
  • you should be able to, yes. "3rd party tool OR booting the VM using WinPE". Partition Manager qualifies as a 3rd party tool. – Trondh Oct 10 '13 at 12:50
  • but partition magic is running on the vm, so impossible if the disk is activated, right? – Kreker Oct 10 '13 at 12:54
  • Those 3rd party tools should be able to do it inside the running VM (they basically use their own boot manager to carry out the instructions on reboot). You should choose the option "extend partition" or similar. – Trondh Oct 10 '13 at 13:03
  • 1
    You can also shutdown the VM and mount the VHD directly on the hyper-v host and try and perform the partition extension from there: blog.christosoft.de/2013/04/enlarge-vhd-drives – Trondh Oct 10 '13 at 13:57

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.