Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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


25 Apr 2014   #1

Windows 7 x64 (Ultimate)
 
 
+ 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
+ 85GBs on my VHD file... Can't Shrink it-vhd.png  
Attached Images
 
My System SpecsSystem Spec
.

25 Apr 2014   #2

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

Please post a screenshot of the XP Mode's Disk Management, let's start from there.
My System SpecsSystem Spec
25 Apr 2014   #3

Windows 7 x64 (Ultimate)
 
 

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
+ 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 System SpecsSystem Spec
.


25 Apr 2014   #4

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

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 System SpecsSystem Spec
25 Apr 2014   #5

Windows 7 x64 (Ultimate)
 
 

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?
My System SpecsSystem Spec
29 Apr 2014   #6

Windows 7 x64 (Ultimate)
 
 

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 System SpecsSystem Spec
29 Apr 2014   #7

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

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 System SpecsSystem Spec
29 Apr 2014   #8

Windows 7 x64 (Ultimate)
 
 

Quote   Quote: Originally Posted by Kari View Post
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 System SpecsSystem Spec
29 Apr 2014   #9
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

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 System SpecsSystem Spec
29 Apr 2014   #10

Windows 7 x64 (Ultimate)
 
 

Quote   Quote: Originally Posted by whs View Post
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 System SpecsSystem Spec
Reply

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




Thread Tools



Similar help and support threads for2: + 85GBs on my VHD file... Can't Shrink it
Thread Forum
How to Shrink Windows 7 iso Installation & Setup
How to shrink animated gif file Music, Pictures & Video
HOW to shrink disk ? Installation & Setup
DVD shrink question. Music, Pictures & Video
How do I shrink a VHD file? Virtualization

Our Sites

Site Links

About Us

Find 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 12:38 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33