+ 85GBs on my VHD file... Can't Shrink it

Page 1 of 3 123 LastLast

  1. Posts : 1,962
    Windows 7 x64 (Ultimate)
       #1

    + 85GBs on my VHD file...[SOLVED]


    OK so I am running out of space on my 128GB SSD and the culprit is my Windows XP Mode.vhd file that is humongously huge in size... it is a whooping + 85GBs

    I swear, I have read google up and down, left and right and all of them end up using a third party software but I never get to finish or end up with an unallocated file inside the virtual world.

    By Uninstalling less used programs I have been able to rescue about 5GBs of space but every damn time I open the Virtual Windows XP, the vhd file increases and I am back to running out of space.

    I am running Win XP Mode inside my Windows 7 Ultimate 64bit OS and pretty much all of the scenarios I have run/read in google are for win 2008 server or XP or whatever but none specifically for Win 7 64bit.

    If I use Win 7 Disk Management I end up with two virtual drives or 1 shrunk drive (Awesome!) and 1 huge unallocated drive (Not so Awesome!).

    I am failing in the last piece of the puzzle... move the unallocated partition to my regular SSD partition so instead of being 123GBs used it can read something like 65GBs Used and 60GBs Free... is that to much to ask?
    Attached Thumbnails Attached Thumbnails + 85GBs on my VHD file... Can't Shrink it-ssdproperties.png   + 85GBs on my VHD file... Can't Shrink it-vhd.png  
    Last edited by AstaLaVista; 08 May 2014 at 15:39.
      My Computer


  2. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #2

    Please post a screenshot of the XP Mode's Disk Management, let's start from there.
      My Computer


  3. Posts : 1,962
    Windows 7 x64 (Ultimate)
    Thread Starter
       #3

    OK, here it is... this is from within Win XP Mode

    There's another DM from Win 7 without the Attached VHD and the next one with the Attached VHD and also from Win 7 DM

    I also tried the OrbStart/All Programs/WindowsVirtualPC/Settings and merging the vhd but I kept getting the following error. Tried disabling the Read-Only attribute but to now avail, it tells me Access Denied. I even tried in Safe Mode to no avail. Getting to its properties and trying to change the security does nothing for me.
    Attached Thumbnails Attached Thumbnails + 85GBs on my VHD file... Can't Shrink it-xpmodedm.png   + 85GBs on my VHD file... Can't Shrink it-win7dm-wvhd.png   + 85GBs on my VHD file... Can't Shrink it-win7-dm.png   + 85GBs on my VHD file... Can't Shrink it-vhderror.png  
      My Computer


  4. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #4

    That is very strange. XP Mode is using just under 20 GB but reporting over 80 GB to host, I have never seen something like that.

    You could try this:
    • Launch XP Mode, run Disk Cleanup and thereafter defragmenter (both in XP Mode, not host)
    • When finished, shut down XP Mode (really shut down, not just hibernate as by default)
    • Make a copy of the XP Mode vhd to another drive
    • Create a new virtual machine selecting use existing vhd, using the copy you created
    • Launch the new XP Mode (copy) once, shut down it
    • Check how big vhd the new XP Mode has and compare it to old one, come back and tell what happened
      My Computer


  5. Posts : 1,962
    Windows 7 x64 (Ultimate)
    Thread Starter
       #5

    Properties inside Win XP Mode tells me that the Virtual drive has no more than 6GBs usage... damn

    Did a clean up and defrag but I can not copy to another drive, the data drive does not have enough space for it... I am going to have to wait until Monday so I can bring in an External drive.

    Meanwhile... Thanks for the tips so far.

    To create a "New Virtual Machine"... do I have to go through the whole process or is there a shortcut since I already have a copy of the drive?
    Last edited by AstaLaVista; 25 Apr 2014 at 14:59.
      My Computer


  6. Posts : 1,962
    Windows 7 x64 (Ultimate)
    Thread Starter
       #6

    Well, I seemed to have botched something, even though, I would not know what I did... all I know is I copied the vhd 85GB file from my SSD to my HDD Data Drive. After that I had to delete the vhd file in my SSD because it literally did not stop with the pop ups of not enough space.

    So I tried to go to the setting and make XP Mode see the new Data Drive for the vhd file but all of a sudden, the vhd file imploded from 85GBs to barely 400 KBs in size

    So, long story short, tomorrow I will install Windows 7 from scratch and another copy of Win XP Mode... it will probably take all day with everything else I have to install but I gotta ask the question

    Now that I will make a fresh install of the virtual XP, what can I do to not let the vhd file grow that big?
      My Computer


  7. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #7

    Miles, you should not try to edit XP Mode settings to use the new (copied) vhd. Instead you should create a new virtual machine and add it as existing vhd, as told in my previous post.
      My Computer


  8. Posts : 1,962
    Windows 7 x64 (Ultimate)
    Thread Starter
       #8

    Kari said:
    Miles, you should not try to edit XP Mode settings to use the new (copied) vhd. Instead you should create a new virtual machine and add it as existing vhd, as told in my previous post.
    Well, making Virtual XPs is not really what I do on a daily basis so I did not know what exactly I was doing. The last time I did this was about a year or two... In the end it does not matter because it is already botched, over and done with. :)

    Well, not really, perhaps God is not out to fully get me because I have found a Clone Disk I did back when I first did this build (It has Firefox 15 and we are already on 29 ) and I can see that this vhd file is already at 17 GBs (17,648,086 KBs to be exact)

    Now, being said this, I am quiet comfortable with that size and I don't care to maximize it and bring it down even more, what I do care and would love to know is... HOW DO I STOP IT FROM GROWING FROM NOW ON??

    This drive is very old, to the point that writing to it is extremely slow. I want to install a few more things and clone it to the SSD so I can put it back to pasture again but I don't want to do that until I learn how to block the vhd file from growing exponentially.
      My Computer


  9. whs
    Posts : 26,210
    Vista, Windows7, Mint Mate, Zorin, Windows 8
       #9

    I installed all my virtual systems (5xLinux and Windows 8.1) on an external drive. I use VMware Player. Reason is also lack of space on the SSD where the OS is installed.

    I wonder whether that is also possible with this XP mode which I never touched because I have no XP. On the external a few bytes more would no bother.
      My Computer


  10. Posts : 1,962
    Windows 7 x64 (Ultimate)
    Thread Starter
       #10

    whs said:
    I installed all my virtual systems (5xLinux and Windows 8.1) on an external drive. I use VMware Player. Reason is also lack of space on the SSD where the OS is installed.

    I wonder whether that is also possible with this XP mode which I never touched because I have no XP. On the external a few bytes more would no bother.
    While I was making (or attempting) to make another virtual XP mode, I noticed that it does let you choose a different drive if you want but, and here's the kicker... what if when you are done (say on a 1TB drive) it wants to make its size 500 GBs? my issue is the fact that it does not allow or gives the option (at least not one I can see) to set or define a size and hold it there.
      My Computer


 
Page 1 of 3 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:49.
Find Us