Windows 8 and 8.1 Forums


Shrink Hard Drive in VMware

  1. #11


    Posts : 1
    Windows 7

    No need for external drive wiper


    Sorry, maybe it is too late for the original requester, but maybe others will benefit. There is no need to install an external drive wiper, the Vmware player already has everything it needs. Just that it is commandline. So all you need to do is run a command in the Vmware tools installation folder:

    VMwareToolboxCmd.exe disk shrink c:\

    It zeroes the free space and then compacts the virtual disk. Of course, if you have several partitions inside the virtual machine, run the command for each one.

      My System SpecsSystem Spec

  2. #12


    excellent , thanks, that will come in handy for the future!.

    Tony
      My System SpecsSystem Spec

  3. #13


    Hafnarfjörður IS
    Posts : 4,376
    Linux Centos 7, W8.1, W7, W2K3 Server W10


    Hi there
    Things like CCleaner IMO are not a good idea.

    EASY way - especially if you back up your system anyway --you should be regularly be backing up your HOST OS in any case.

    1) use from WITHIN the VM a backup tool to backup your existing VM. (Acronis / Free Macrium etc).

    2) Delete the Virtual drive - if using VMware just choose delete VM otherwise delete with Windows / File explorer.

    3) Now create new virtual machine with the wizard -- select install the OS later. Choose the NEW size of storage you need for the VM.

    4) Set the VM to boot from a USB / DVD where you have the bootable recovery program (Free Macrium or whatever).

    5) Now restore the VM to your new virtual disk -- you CAN restore to a smaller disk so long as it all fits on to the allocated space.

    Easy -- job done and you've still got your original VM. Sometimes the "SHRINK DISK options don't allow flexible re-sizing.


    Note - using something like Partition Wizard won't be any good in a VM -- although it CAN re-size the partitions it won't release the free space to Windows -- the free space will still be in the VHD (Allocated storage space in the Virtual Hard drive).

    Cheers
    jimbo
      My System SpecsSystem Spec

  4. #14


    Orbiting the Moon
    Posts : 2,975
    Windows 10 x64

    Some explanation about compacting VM disks


    First of all, CCleaner is fine for this purpose: wiping free space with a GUI program in order to prepare the disk for shrinking. You can compare the operation with VMware's tools own operation of preparing/wiping free space:
    Shrinking Virtual Disks
    Note that the link above describes WS 5 but in WS 9 we have to rely on command line tools (as mentioned by valipod: VMwareToolboxCmd.exe disk shrink c:\).

    What we can do then is compacting from within the VM or from the host (after is turned off) in Player or WS VM storage settings -> disk -> compact.

    There are actually 2 steps involved here: preparing/wiping free space (from within the VM) and compacting. Wasting time with extra steps is possible but not needed.

    EDIT: after seeing all posts above, we can say that the problem can be solved in multiple ways. To each his preferred solution then.
      My System SpecsSystem Spec

Page 2 of 2 FirstFirst 12
Shrink Hard Drive in VMware
Related Threads
Hi all, I'm trying to shrink my C partition so I can dual boot with Xubuntu. I attempted to do so using Disk Management, however, it only would allow me to shrink 556 MB which is obviously very little space. 57817 Admittedly my hard drive is quite small but I have 47GB free and am only...
I have Windows 8.1 installed on an external hard drive. actually installed...like you would on an internal drive (https://www.eightforums.com/tutorials/58616-wintousb-install-run-windows-usb-drive.html) and I want to use it with my main PC without booting entirely from it... which is where VMWare...
I can't shrink my C: drive? in General Support
hi everyone in new on here and id like to ask why my windows 8 is acting up badly. (its been the biggest mistake i made in my life infact). I want to shrink my 450gb c drive down a little but the following occurs. I'm a daily gamer, and have been using windows 7 ever since. I have no idea why...
Hi All, I want to format my external hard drive into two partitions so that I can use one of them as a recovery drive for my Windows PC and the other one for my personal data. I am using Windows 8.1. It is a 1TB WD Elements hard drive currently formatted into one exFAT partition. It is about...
Just purchased a new win 8.1 computer. As you know it only has the system, recovery partitions and a very large C drive containing the OS and whatever programs that came with the computer. After cleaning up any unneeded programs, I would like to create 2 more partitions besides drive C: ...
Okay, so my HP laptop computer glitched up yesterday so I factory resetted it. Just today, it finished, and I went to install some games on it. While I was about to install BF4, it said that there was not enough disk space, so I went to my "THIS PC". It said that I only had 4.18GB...
Solved shrink C drive in Performance & Maintenance
Hi everyone, I've had a look around both here in 8Forums and general Googling, but what I've found is unclear and contradictory. I have a new HP Pavilion 15 e073sa laptop with a 750Gb HD. I would like to mimic my Win7HP setup on my old Toshiba laptop which is to partition the C drive to...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook