How to extend the OS partition of a Virtual Machine Drive (VMDK) if it contains 2 or more partitions
Before we begin, this is all done with VMWare ESX 3.5 and you need to have an ISO of GParted.
Last night I was given the task to extend the Operating System (C:) drives of a few virtual machines because we ran out of room for Windows patching. This is a relatively easy task. Shutdown the VM, extend the disc a few GB under edit settings of the VI Client, boot into GParted, resize, apply, and reboot. Bam, you're done. Well, let me throw this scenario at you. Someone before you did a P2V (Physical to Virtual) of a server that had 2 physical hard drives and during the process didn't hit that little checkmark to create 2 seperate virtual hard drives (VMDKs). Instead, you are left with one large hard drive with 2 partitions. Windows still functions as it did when it was physical, having 2 seperate hard drives, for this instance we will say C: & E:. Since the Operating System partition is at the beginning of the drive, you can't move it to the end and extend it because that would screw up the MBR (Master boot record).Add a comment