possible to extend C drive volume?

Posted on 2012-08-29
Last Modified: 2012-08-30
I am running server 2008 R2 std in vmware (vsphere 5 essential). Currently the C drive is reaching its capacity. And it doesn't allow me to extend the volume. Any possible way to achive it?

Question by:okamon
    LVL 4

    Assisted Solution

    You can only extend the C drive like this if the free space is directly to the right of the C drive. From your pic it looks like it isnt?
    You can use a 3rd party partitioning tool like Paragon Hard Disk Manager to to move/resize the partitions instead. But make sure you take a full backup and run check disk on the drives first!
    LVL 15

    Expert Comment

    We solved this issue recently. You need to shutdown the Virtual machine. Add the Virtual machine drive as a an additional drive to another Virtual machine. Then you can add diskspace as per the normal steps. Then remove the drive and re-add it to the original virtual machine. You now have extended said c drive.
    LVL 23

    Expert Comment

    by:Nagendra Pratap Singh
    Extend the vmdk, create new partition. Move D: stuff on it  using robocoy to retain permissions.

    Detach D: from the current area and attach it to the new one.

    Delete the D: partition. Now you can extend C:
    LVL 42

    Assisted Solution

    If you want to do this non disruptively you can perform a V2V with VMware converter.  As part of the process you can resize any volumes to desired size
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    See my EE Article on how to Extend your virtual disk

    HOW TO:  Resize a VMware (VMDK) Virtual Disk
    LVL 46

    Assisted Solution

    Copy out the data from the two partitions next to C: drive. Then delete these partitions. Right click on C: - Extend. Select new size.
    After that recreate the two deleted partitions and copy the data back. Fast and simple.
    LVL 70

    Expert Comment

    This is very simple -- and works the same way in a virtual machine as on a real one.

    Since the disk in question is a basic disk, it's very easily done using the free demo version of Boot-It BM.    

    First, download the free demo version [ ];  and create a bootable CD (or an ISO) using the included MakeDisk utility.

    Now boot the VM to Boot-It VM;  choosing CANCEL at the first prompt;  then Okay.

    Go to Partition Work.

    Highlight the E: partition (the one before the unallocated space);  then click on "Slide", and choose zero free space "Before".

    Repeat this for the D: partition (the one after C:) -- again choosing "Slide" with zero free space "Before".

    Those two operations will result in your unallocated space being immediately adjacent to the C: partition -- which is what you need.

    Now highlight the C: partition and click on ReSize -- choose the max size and let it complete.

    Done :-)

    Note:   The two "Slide" operations will take a while -- all of the data in those partitions has to be moved.    The final ReSize will be VERY quick (a couple seconds).
    LVL 57

    Expert Comment

    by:Pete Long
    LVL 9

    Accepted Solution

    Pete Long has the most simplest instructions in my mind.

    For the record: Why in the earth have you created partitions within a VMDK? Since you have sub-partitioned the VMDK in Windows, means that you loose some flexibility and requires you to have downtime on your VM to add more space (since you cannot simply extend disk space in Windows 2008 R2 unless there is free space next to the volume you want to extend.

    For the future, I would strongly recommend to add more VMDK's to a VM in case you need more volumes available to a Win VM. In that case you can simply resize the existing VMDK on the VM, and then extend the disk in Server Manager in Win, without any reboot or downtime.
    LVL 46

    Expert Comment

    Actually he has a free space block of 40GB if you look on his screen shot and it seems to me that his questions was - how to allocate this space to C: drive.

    Author Comment

    hi xcomiii, do you mean I should add more virtual hard disk instead doing partition on 1 virtual hard disk?
    LVL 9

    Expert Comment

    Yes, next time you setup a new VM, it will be easier for your self if you add seperate VMDK's instead of one big VMDK that you divide within the Windows OS. That will save you time and downtime for the VM's.
    LVL 4

    Expert Comment

    Lots of good comments from everyone.. Not sure if we can all agree but I'll try and summarize the best way to fix this!

    take a backup of the entire disk (all partitions) before doing anything
    run check disk /f on each partition
    add another vmdk to this machine
    copy the data from the D and E partitions to the new vmdk
    delete the D and E partitions
    this means that there is now room to resize C
    but because C is the system drive this cant be done from within Windows
    you will need to boot the VM from an ISO of another tool that you can use to resize the partition.
    There are lots of different tools that you can use to to this. Disk part, gparted, paragon hard disk manager etc etc, some of these tools are free some are not.
    If you’re comfortable with the command line – try disk part. If you’d prefer a GUI tool – try Paragon HDM

    Good luck!
    LVL 4

    Expert Comment

    One more thing,
    Set yourself up a test VM (with the same partition setup) to practice this on before you do this on your production server.
    And again - make sure your backups are good!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
    New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
    This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…
    This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

    761 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

    11 Experts available now in Live!

    Get 1:1 Help Now