Skip to content
Luca Dell'Oca Principal Cloud Architect @Veeam
Virtual To The Core Virtual To The Core

Virtualization blog, the italian way.

  • Media
  • About me
Virtual To The Core
Virtual To The Core

Virtualization blog, the italian way.

[EN] ExtPart: step-by-step how-to expand Windows virtual disks

Luca Dell'Oca, December 6, 2011December 4, 2016

If you have a Windows virtual machine with an operating system prior to Windows 2008, where this function is available, you need a third-party tool to expand your partitions. This tutorial will explain you, step-by-step, how to do this task; you can do it on both data disks and boot disks.

 

  1. From vClient, go to VM settings (in this example, is a Windows 2003 Enterprise x64)
  2. Choose the hard disk you want to expand. If the size bo is greyed-out, there are two possible causes:
    – there is a snapsoht on the disk. You need to delete it, otherwise expansion is not possible
    – it’s a IDE disk. In this case(for example a VM with Windows XP) you cannot extend the disk.
  3.  Change the size by your needs. You will only be able to increase the size, not to reduce. Maximum size depends on the datastore hosting the disk. vCenter will tell you when the task has been completed.
  4. Log into the VM
  5. Check if Disk Manager shows the increased disk. You should see a screen like this:

    After checking, CLOSE Disk Manager. ExtPart will return the error “Unable to connect to C or it does not exists” if you leave Disk Manager open.
  6. download ExtPart and save it on C: (or in another path where you can go from command prompt)
  7. Open command prompt, go in the directory contening ExtPart, and run these commands:
    extpart   <- ENTER
    c: <- ENTER
    <additional_space_in_MB> <- ENTER
  8. Some hits: disk need to be indicated with a colon after the drive letter.
    About additional space, if you added 10 Gb like in my example, you will input the value 10240. If you get back an error like this (I created it on purpose by declaring a higher value):

    you can run ExtPart multiple times adding less space (maybe 10000, then 200, then40) until you fill all the additional MB you gave to th disk. If everything went well, you would end up with a screen like this:
  9. Last check, open again Disk Manager and check the new layout, without unassigned MB:

    Disk has been expanded successfully.

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
Tech

Post navigation

Previous post
Next post

Search

Sponsors

Latest Posts

  • Migrate WSL (Windows Subsystem for Linux) to a new computer
  • Pass keystrokes to a pfSense virtual machine to install it automatically
  • Automatically deploy pfSense with Terraform and Ansible
  • My Automated Lab project: #6 Create a S3 Bucket with Terraform
  • My Automated Lab project: #5 Deploy a Linux vSphere VM with Terraform and custom disks
©2025 Virtual To The Core | WordPress Theme by SuperbThemes
We use cookies to ensure that we give you the best experience on our website, and to collect anonymous data regarding navigations stats using 3rd party plugins; they all adhere to the EU Privacy Laws. If you continue to use this site we will assume that you are ok with it.OkNoPrivacy Policy