How to fix a 20GB windows directory

1

I found out my Windows 7 installation which is more than a year old has a bloated Windows (C:\Windows) directory (20GB). Correct me if i am wrong but i don't think this is normal. Is there a way i can fix this and prevent it from happening?

yohannes

Posted 2012-12-10T09:56:25.807

Reputation: 113

1Yes, this is normal. Windows does many things to allow you to fix problems that might appear. One of those is to maintain a history of the files that change. 20GB is nothing and its unlikely its actually that large, because of of thing it also does is, links files in different locations to one others. This means the same file might be calculated multiple times. Just get a larger hdd. – Ramhound – 2012-12-10T12:38:38.867

That number also may be artifically high depending on how you arrived at it. The windows sxs folder uses hard links so you may be double counting a lot of files. (windows explorer will double count and give you a wrong number FYI) – Scott Chamberlain – 2012-12-10T12:38:47.497

Answers

7

It doesn't seams wrong that Windows7 takes 20GB after installation.

Natim

Posted 2012-12-10T09:56:25.807

Reputation: 1 531

+1 On my windows partition, I have win7, Visual Studio and winamp. Disk usage in the windows directory is: 25GB (and counting) – mcalex – 2012-12-10T11:20:43.137

Sorry if it is not clear, i'm talking about C:\Windows directory. – yohannes – 2012-12-10T18:31:59.733

@fire'fly I'm pretty sure that's what Natim is talking about too. 20GB for that folder isn't all that odd. – David – 2012-12-10T19:49:25.467

2

One thing you can do to shrink your windows install is remove the uninstall files for the service packs. Running the following command as a elevated command prompt (right click Run as Administrator) will remove the uninstall files and free up some space

dism /online /cleanup-image /spsuperseded

However I am willing to bet that windows is not taking up as much space as you think, the windows sxs (Side by side) system uses Hard Links on the files. Most tools (including windows explorer itself) will count both copies of the file when calculating folder size, however due to how hard links work both copies use the same physical spot on the hard disk so it does not take up that much room.

Programs like WinDirStat are hard link aware and can give you a more accurate picture of disk space usage.

Scott Chamberlain

Posted 2012-12-10T09:56:25.807

Reputation: 28 923

Thanks, i will check windirstat but when i say windows directory i was meaning to say "C:\Windows" – yohannes – 2012-12-10T18:36:43.907

Yes, and with I say windows sxs I mean "C:\Windows\winsxs" – Scott Chamberlain – 2012-12-10T20:10:07.453

0

the only way to shrink Windows is to uninstall Windows Updates which are replaced by newer ones. Remove old IE updates and this can reduce the size a bit.

magicandre1981

Posted 2012-12-10T09:56:25.807

Reputation: 86 560

-1 for suggesting uninstalling Windows updates. Normal users should never interfere with Windows update or uninstall patches, as without expert help they will potentially put their machine at risk of being compromised by malware. – SecurityMatt – 2012-12-13T13:49:37.647

lol If you removed too many updates, WU reinstalls them for you. Based on my request, MS implemented the removal old Updates in Windows 8: http://www.msfn.org/board/topic/153742-dism-improvements-in-windows-8/page__st__60__p__1015509#entry1015509 – magicandre1981 – 2012-12-13T18:02:57.713