Resizing a System Partition Windows Server 2003 VM (Getting GParted Error)

diskparthyper-vpartitionwindows-server-2003

I am getting an error while trying to resize System Partition for Windows 2003 Server (this is a VM on a Hyper-v Windows Server 2008) using GParted Live CD ISO.

Followed this tutorial:
http://malaysiavm.com/blog/how-to-resize-windows-2003-server-virtual-disk-on-vmware-esx/
and GParted Doc
http://gparted.sourceforge.net/larry/resize/resizing.htm
(They are very similar)

The VM has a Dynamic VHD file, I have already increased it using Hyper-v. GParted doesn't give any clues or details for the error. Just simply errors when trying to grow the partition. Any ideas what I can do? Thanks!

Using version of Gparted: gparted-live-0.13.1-2

Best Answer

As @TheCleaner says, use diskpart from a Windows 2008+ install .iso. I always prefer to use Microsoft-supported tools and processes when messing with partitions and disks.

Assuming you've expanded .vhd inside Hyper-V console:

  1. Attach a Vista/win2008 or newer install .iso to the VM settings
  2. Boot to the .iso and once you're at setup prompts, hit shift-f10 to get Command Prompt
  3. diskpart
  4. something similar to:
    1. list disk
    2. select disk 0
    3. list partition
    4. select partition 1
    5. extend
    6. exit
  5. now reboot and windows should have all the space you expanded the .vhd for

P.S. If you have more then one partition in that .vhd and you're wanting to extend any other then the last one, it's a no go with diskpart (TMK).

Related Topic