Shrinking volume of a system drive in Windows XP running as Hyper-V guest

Posted on 2014-08-27
Last Modified: 2014-11-12
I tried using a couple of partition editors to shrink size of c drive of Windows XP inside Hyper-V, it seems not doing the job. The purpose of resizing the volume is to shrink the vhdx file size for disk space.
which tool do I use?
Question by:crcsupport
    LVL 6

    Accepted Solution

    A lot of times this is due to fragmentation in the drive, as some of the last blocks may be used by files which would stop the shrink from occurring.

    Take a look at the website below, follow the procedure and the vhd file should shrink just fine.
    LVL 1

    Assisted Solution

    by:JA Reynolds
    I tried the VhdResizer because it seemed quick and easy. Only problem is the minimum size is 100GB. I am trying to go from 100GB to 75GB and 50GB on certain VMs.  VHDResizer will only shrink the VHD to the extent that there is unallocated (unpartitioned) space on the "disk".  So if you are needing to change a vhd from say, 40 GB down to 20 GB. VHDResizer is only part of the answer.

    Try this, keeping in mind I've only done this on Windows Server 2008 R2 so I don't know if this is a new feature in your version of Windows Server?

    1. Open the VM you want to change then go to Disk Managment
    2. Right click the volume to shrink and select "Shrink Volume"
    3. Choose how small you want to make the volume and click OK
    4. Shutdown the VM
    5. Run VHDResizer from the host/parent
    6. Now you should be able to reduce the size of the VHD (Note: a little bug in VHDResizer seems to be you cannot choose the smallest size possible, say 20 GB but instead must add to it - 21 GB works)

    Hope this helps!
    LVL 70

    Assisted Solution

    Can't say for sure it will work in Hyper-V, but I know from personal experience that Boot-It BM will shrink the partitions of virtual disks in VMware (both Workstation and ESXi), and VirtualBox, so I assume it will work fine in this case as well.

    Just create a bootable ISO using MakeDisk from the free demo download [ ];  then boot the virtual machine with that ISO ... select CANCEL at the first prompt; then OK.   Click on Partition Work; and you can then select the partition you want to resize, and click on ReSize.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
    If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
    This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
    How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now