Going from 220 MB Free to 22 GB free on SSD Hard Drive space

by jask2002 6. January 2013 15:34

I've an  Lenovo X220 laptop which comes with SSD HDD of 150 GB with Windows 7 installed



As you can see above; out of 150 only 148.75 GB can be actually used for storage

From the last couple of days I had started getting pop up complaining about Low Space on C:\

Time to get rid of that message .Lets Nuke it:

First step is figure out who has occupied my 148 GB[ I did this manually but there are tools available like WinDirStat, FolderSizeWin32)




Can do something about it?


12 GB

C:\pagefile.sys [ hidden file ]



6 GB

C:\hibernate.sys [hidden file]

Yes maybe

Outlook OST file

11 GB



WinSXS Folder

10 GB


May be

Installer Folder

3 GB



Temp Folder

1.7 GB



Temporary Internet Files:

190 MB


Temporary Internet Files


Event Logs

230 MB




Looking at following locations chart applies to me since I use this laptop as my primary box for testing the web application and debugging the dump files .





Can do something about it?

IIS Logs

1.2 GB




4 GB

C:\Program Files\DebugDiag\Logs\*



800 MB




42 GB


No for me

HttErr Logs 300 MB C:\Windows\System32\LogFiles\HTTPERR Yes


WARNING: Do it at your OWN RISK !

Will look at options one by one for gaining back the disk space

1) Pagefile.sys

From http://support.microsoft.com/kb/99768 (Old Article)

1.In general, you should set the size of the paging file to the same size as your system RAM plus 12 MB



Also, if you have enough surplus RAM to support the operating system and application memory requirements, the need for a large paging file is lessened.

From KB http://support.microsoft.com/kb/2160852 

Users frequently ask "how big should I make the pagefile?" There is no single answer to this question because it depends on the amount of installed RAM and on how much virtual memory that workload requires.


Since I’ve 8 GB Physical RAM and with small SSD . I decided to take up this challenge by reducing it to 2400 MB (2.4 GB approx)

OR another option would be to change the PageFile.sys location to another drive (if you have that option)




 2) Hibernate.SYS

What is that?

In this mode Windows completely writes the memory out to the hard drive, and then powers the PC down entirely, so you can even take the battery out, put it back in, start back up, and be right back where you were.  I use this option so I decided not to alter this option.

Anyway if Sleep option [which keeps the PC running in a low power state so you can almost instantly get back to what you were working on]  from power management is sufficient for you then can think off turning it off completely or adjust its size from the admin command prompt

powercfg /?

            Enables-Disables the hibernate feature.  Hibernate timeout is not
            supported on all systems.


                  POWERCFG -H <ON|OFF>
                   POWERCFG -H -Size <PercentSize>

            -Size  Specifies the desired hiberfile size in percentage of the
                   total memory. The default size cannot be smaller than 50.
                   This switch will also enable the hiberfile automatically.

Read More here and here


3) Outlook OST file

Valid option which helped me in reducing the size of .ost [offline storage] was Compact Now . It took couple of hours to reduce size from 11 GB to 6 GB.




4)  WinSXS folder

According to Windows team blog you should NOT touch this directory . Only valid option is to delete all the files which have been backed up by service pack 1 installation by running following command

dism /online /cleanup-image /spsuperseded /hidesp    --> It can help you to gain atleast 4-6 Gb

5) Temp and Temporary internet files folder

You can use Disk Cleanup tool to Clean up Temporary Files Folder[1.7 GB] , Zune converted files and Recycle Bin. I purposefully did not clean up Temporary internet files [since I don’t want to lose cookies , saved pages]





6) Event Logs



You can limit the size of the individual log files by Right Click –> Properties



Now coming to the cleaning of the my debugging related logs[Take the backup if there is a need to review these logs. For me this is dev box so it doesn’t really matter]:

1) I keep stressing my ASP.NET websites through TINYGET (free stress tool from MS) that bloated my IIS logs. So it is the right time to clean them up by running following cmd

del C:\Inetpub\Logs\Logfiles\*

2) Similarly for debugging purpose I keep capturing dumps using Debug Diag 1.2. Over the period Debug Diag folder crossed over 1.2 GB. Time for it to go:

del C:\Program Files\DebugDiag\Logs\*

3) Next stop is to clean up the IDNA aka Nirvana tracing or TTT tracing logs files

del C:\Users\jaskis\AppData\Local\iDNATraces\*

4) Last option is to clean up the HttpErr log folder

del C:\Windows\System32\LogFiles\HTTPERR\*


To sum up : All in all I was able to free around 22 GB on my SSD Hard Drive. Hope this helps somebody out there

Party Time Smile

PayPal — The safer, easier way to pay online. Has this post helped you? Saved you? If you'd like to show your appreciation. Please buy me a coffee or make a small contribution toward blog's maintenance(to keep it Ads free )

Tags: , , , ,

Pingbacks and trackbacks (1)+

Add comment

  Country flag

  • Comment
  • Preview

Tag cloud

Month List


Comment RSS



The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.