Solved Moving the winsxs folder

ultralame

New member
Member
Local time
11:11 PM
Messages
76
I have a system that I set up with two drives; a main SSD and a standard HDD. I used Sysprep to move Users and ProgramData to the larger, slower HDD to preserve the SSD. I realized that most of the writing to the SSD now occurs in the Windows folder, specifically the winSXS folder.

Is there any way to move this folder? I am scared to try a junction (I tried that once with Users and it was a disaster).

Any ideas?
 

My Computer

OS
XP, Vista, W7, all flavors
I would suggest against it. Actually the biggest writes to the drive will be the system restore information at this point. Most the other stuff is system logs and they are tiny little text files. Not enough activity to get upset over.
 

My Computer

Computer Manufacturer/Model Number
Insane hobo technologies. ;-)
OS
Windows 7 x64
CPU
Intel i7 2600k
Motherboard
Asrock z68 extreme 4 gen 3
Memory
G.skill Ripjaw 16gigs @ 1866
Graphics Card(s)
Nvidia gtx580 (evga)
Sound Card
Integrated HD audio + hdmi
Monitor(s) Displays
24" ASUS widescreen + 42" insignia
Screen Resolution
1080p (1920x1080)
Hard Drives
128 Samsung 830
256 Samsung 840
3 x 1tb storage drive (various)
1 western digital 1tb (eSATA)
1 Seagate 1tb (eSATA)
PSU
1 kilowatt SLI/Crossfire rated Silverstone modular
Case
NZXT Phantom + additional 220 fan
Cooling
Zalmann
Keyboard
Microsoft wireless 3000 (v2)
Mouse
MS - wireless 5000 (bluetrack)
Internet Speed
depends on if you ask me or my provider.
Other Info
The above information is provided as is, and the author assumes no responsibility for issues it may cause with your sanity or fanboyism.
I've seen references to it being done with Vista, but I think that's playing with fire. :)
 

My Computer

Computer Manufacturer/Model Number
Self
OS
Main - Windows 7 Pro SP1 64-Bit; 2nd - Windows Server 2008 R2
CPU
Main - Core i7 2600K; 2nd - Core i7 920
Motherboard
Main - Asus P8Z68-V Pro/Gen3; 2nd - Gigabyte GA-EX58-UDR3
Memory
Main - 16GB Corsair Vengeance; 2nd - 12GB Corsair Vengeance
Graphics Card(s)
Main - XFX Radeon 6870 1GB; 2nd - XFX Radeon 4870 1GB
Sound Card
Both: Onboard Realtek Azalia
Monitor(s) Displays
Main - Hann 25" + I-INC 25" + Acer 23"; 2nd - Upgrading Soon
Screen Resolution
Main - 1920x1080 (All Three Monitors); 2nd - Upgrading Soon
Hard Drives
Main - (1) Crucial M4 128GB (Boot)
Main - (1) Seagate 2TB 64MB Cache (Data)
Main - (1) Seagate 2TB 64MB Cache (Data Backup)
2nd - (1) Intel X25-M SSD 80GB (Boot)
2nd - (3) Seagate 1TB 32MB Cache (Data Backup)
2nd - (1) Seagate 320GB (Because)
PSU
Main - OCZ 600W Modular; 2nd - OCZ 600W
Case
Main - Thermaltake Element G; 2nd - NZXT something or other
Cooling
Main - Corsair H80; 2nd - Prolimatech Megahalems
Keyboard
Main - Razer Reclusa; 2nd - Old MS Keyboard
Mouse
Main - Logitech MX Revolution; 2nd - Old MS Mouse
Internet Speed
20Mbps Time-Warner Cable
The winsxs folder actually may not be taking up as much space as windows explorer reports because there're a lot of hard links and junctions used.
 

My Computer

Computer Manufacturer/Model Number
Too many to describe...
OS
Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
DO NOT MOVE THE WINSXS FOLDER. DO NOT! You will actually only take up more space by making the files in WinSxS become real duplicates. Hardlinks only work on the same local partition moving to another partition removes the link and makes the file a real taking-up-space-file. WinSxS contains every system file and everything hardlinks out of it. All the DLLs in System32 for example. Windows 7 in its bare state takes well under 8 GBs of space.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
I have a system that I set up with two drives; a main SSD and a standard HDD. I used Sysprep to move Users and ProgramData to the larger, slower HDD to preserve the SSD. I realized that most of the writing to the SSD now occurs in the Windows folder, specifically the winSXS folder.

Is there any way to move this folder? I am scared to try a junction (I tried that once with Users and it was a disaster).

Any ideas?

Don't.
 

My Computer

Computer Manufacturer/Model Number
Toshiba Satellite S875D-S7239 laptop
OS
MS Windows 7 Ultimate SP1 64-bit
CPU
AMD A10-4600M
Motherboard
AMD Pumori (Socket FT1)
Memory
6.00 GB Dual-Channel DDR3 @ 798MHz (11-11-12-28)
Graphics Card(s)
AMD Radeon HD 7660G
Sound Card
High Definition Audio Device
Monitor(s) Displays
Generic PnP Monitor (1600x900@60Hz)
Screen Resolution
1600x900@60Hz
Hard Drives
SSD 119GB Corsair CSSD-V128GB2 ATA Device
Keyboard
Standard PS/2 Keyboard
Mouse
HP Wireless Optical Mobile Mouse Model FHA-3410
Internet Speed
What the local pub, local coffee shop offers.
Other Info
Optical Drive:MATSHITA BD-CMB UJ160B ATA Device


Also have an Asus ha1002xp netbook with Win 7 Ultimate installed.

My Computer

Computer Manufacturer/Model Number
Self-Built in July 2009
OS
Windows 7 Ultimate x64
CPU
Intel Q9550 2.83Ghz OC'd to 3.40Ghz
Motherboard
Gigabyte GA-EP45-UD3R rev. 1.1, F12 BIOS
Memory
8GB G.Skill PI DDR2-800, 4-4-4-12 timings
Graphics Card(s)
EVGA 1280MB Nvidia GeForce GTX570
Sound Card
Realtek ALC899A 8 channel onboard audio
Monitor(s) Displays
23" Acer x233H
Screen Resolution
1920x1080
Hard Drives
Intel X25-M 80GB Gen 2 SSD
Western Digital 1TB Caviar Black, 32MB cache. WD1001FALS
PSU
Corsair 620HX modular
Case
Antec P182
Cooling
stock
Keyboard
ABS M1 Mechanical
Mouse
Logitech G9 Laser Mouse
Internet Speed
15/2 cable modem
Other Info
Windows and Linux enthusiast. Logitech G35 Headset.
there is a article i ran across awhile for moving the winsxs folder. i had a 36 gig wd raptor at that time and with everything i was using and wanted i needed to free up a large chunk of space. the procedure works, but it is not for a novice. it took me a better part of a day, because i was following the step, checking it, rechecking it, then moving onto the next step. if you do decide to do it i strongly recommend you have you os drive backed up.

as for taking up as much space as explorer claims yes it does. the idea behind the winsxs folder is to keep multiple versions of a file. in doing this program abc that needs version .1, but would stop working if it only had access to version .2 of the file. while program def will only work with version .2 or above. in doing this both programs keep working.
 

My Computer

OS
Windows 7 Ultimate
CPU
Core2Duo E8400
Motherboard
Asus Rampage Formula Rev. 1
Memory
5 Gigs
Graphics Card(s)
Asus Nvidia 9500 Gt
Sound Card
Creative X-Fi Extreme Audio
Monitor(s) Displays
18 Inch LCD
Screen Resolution
1366x768
Hard Drives
c: wd 300 gig velociaptor, wd 1tb, wd 500 gig, wd 320 gig, and 2 wd 40 gig ide drives
PSU
600 watts
there is a article i ran across awhile for moving the winsxs folder. i had a 36 gig wd raptor at that time and with everything i was using and wanted i needed to free up a large chunk of space. the procedure works, but it is not for a novice.
For arguments sake, I'm going to have to disagree that such a procedure exists unless you can produce this article because of the fact that the WinSXS is simply a collection of hardlinks to files that are contained within other areas on the hard drive. Getting rid of that folder, would not free up the space on the C drive, as the actual files themselves are stored elsewhere and simply referenced in C:\windows\winsxs.

If you look at the link that I posted before, I took a 200MB hard drive and created a WinSXS folder on it. Then copied in a single 13MB file. Then I linked to that same 13MB file 20 times. Windows explorer reported that my WINSXS folder was about 270MB in size...even though my entire hard drive was only 200MB. But if you went to a command prompt and typed "dir D:\", it would show the 187MB free...since technically the only "real" file that existed was the original 13MB file. But Windows explorer, windirstat, and treesize free all claimed that D:\winsxs was 270MB in size. Moving everything out of D:\winSXS would not have freed 270MB on my 200MB drive. It would have freed up 13MB and removed 20 hardlinks.
 

My Computer

Computer Manufacturer/Model Number
Self-Built in July 2009
OS
Windows 7 Ultimate x64
CPU
Intel Q9550 2.83Ghz OC'd to 3.40Ghz
Motherboard
Gigabyte GA-EP45-UD3R rev. 1.1, F12 BIOS
Memory
8GB G.Skill PI DDR2-800, 4-4-4-12 timings
Graphics Card(s)
EVGA 1280MB Nvidia GeForce GTX570
Sound Card
Realtek ALC899A 8 channel onboard audio
Monitor(s) Displays
23" Acer x233H
Screen Resolution
1920x1080
Hard Drives
Intel X25-M 80GB Gen 2 SSD
Western Digital 1TB Caviar Black, 32MB cache. WD1001FALS
PSU
Corsair 620HX modular
Case
Antec P182
Cooling
stock
Keyboard
ABS M1 Mechanical
Mouse
Logitech G9 Laser Mouse
Internet Speed
15/2 cable modem
Other Info
Windows and Linux enthusiast. Logitech G35 Headset.
I went ahead and looked at the winsxs folder using a tool called ctts.exe (calculates usage and then subtracts the amount due to duplicated inodes). Mine is a pretty fresh install, and I have 6.05GB in there + 98MB due to hard links.
 

My Computer

OS
XP, Vista, W7, all flavors
Hmmm...might have to revist this topic under Windows 7 to see if there are not as many hardlinks as MS led people to believe. If there are legit files in C:\windows\winsxs..they would take space. But my understanding was that these files were Mostly (80%+) hardlinks. However, ctts.exe seems to say otherwise...as it shows my 5.8GB of C:\windows\winsxs consists of only 75MB of hard links and 5.7GB of actual files. Most everything I have read in the past was reverse of this in Technet...meaning 75MB of files with over 5GB of hard links.
 

My Computer

Computer Manufacturer/Model Number
Self-Built in July 2009
OS
Windows 7 Ultimate x64
CPU
Intel Q9550 2.83Ghz OC'd to 3.40Ghz
Motherboard
Gigabyte GA-EP45-UD3R rev. 1.1, F12 BIOS
Memory
8GB G.Skill PI DDR2-800, 4-4-4-12 timings
Graphics Card(s)
EVGA 1280MB Nvidia GeForce GTX570
Sound Card
Realtek ALC899A 8 channel onboard audio
Monitor(s) Displays
23" Acer x233H
Screen Resolution
1920x1080
Hard Drives
Intel X25-M 80GB Gen 2 SSD
Western Digital 1TB Caviar Black, 32MB cache. WD1001FALS
PSU
Corsair 620HX modular
Case
Antec P182
Cooling
stock
Keyboard
ABS M1 Mechanical
Mouse
Logitech G9 Laser Mouse
Internet Speed
15/2 cable modem
Other Info
Windows and Linux enthusiast. Logitech G35 Headset.
Almost every single file in WinSxS is a hardlink. File that are not hardlinked in WinSxS are in hibernation, not currently in used. But moving WinSxS will not reclaim any thing. A file is only removed if all the hardlinks are removed. Link Shell Extension will give a visual indicator of all hardlinks in a directroy. As well as a tab in the properties for hardlinks.

On my system there is about 3 GBs worth of hardlinks in the WinSxS folder, it is also under 5 GB in total size.
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
I went ahead and looked at the winsxs folder using a tool called ctts.exe (calculates usage and then subtracts the amount due to duplicated inodes). Mine is a pretty fresh install, and I have 6.05GB in there + 98MB due to hard links.

You used that tool in the wrong way. It needs to look at the whole drive not just the WinSxS folder.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
hard links or not in vista anyway if you had a 20 gig drive and windows and everything else was using 5 gigs, winsxs was reporting 4.7 gigs, and you tried to add 12 gigs of files to your c drive you would get told not enough room. now in 7 they may have fixed that i honestly do not know. now once you moved the winsxs to say d in vista your free space in windows did increase by the full 4.7 gigs that winsxs was claiming it was.
 

My Computer

OS
Windows 7 Ultimate
CPU
Core2Duo E8400
Motherboard
Asus Rampage Formula Rev. 1
Memory
5 Gigs
Graphics Card(s)
Asus Nvidia 9500 Gt
Sound Card
Creative X-Fi Extreme Audio
Monitor(s) Displays
18 Inch LCD
Screen Resolution
1366x768
Hard Drives
c: wd 300 gig velociaptor, wd 1tb, wd 500 gig, wd 320 gig, and 2 wd 40 gig ide drives
PSU
600 watts
I am aware that winsxs is mainly hardlinks thus it does not take up much space.
From what I have read the idea is if you uninstall a program that has a shared .dll or similar these are not deleted from the disk as the link remains in winsxs?
Thus on a fresh install winsxs should be all hard links and only technically begins to take up space when you uninstall/remove something?
Thus the file physically exists on the drive (SSD) and remains even if one link is deleted.
So why not create a symbolic link of the folder to a slower drive; most likely it won't save you any space immediately but over time you will find more of the links become "active" (ie. they are the only link to the physical data) - would this cause a physical transfer of the file from the SSD to the HD, thus saving space?
 

My Computer

Computer Manufacturer/Model Number
Lenovo W520
OS
Windows 7 Professional x64, Windows xp 32, Unbuntu 10.4, DSL, Android 3.3
CPU
i7 2820QM
Memory
8 GB
Graphics Card(s)
Nvidia Quadro 2000M
Monitor(s) Displays
16.4" HD
Hard Drives
120 SSD
200 HD
If I finally understand what you are talking about, I think what you really want is one of the newer z68 motherboards with the smart response system for ssd's.
 

My Computer

Computer Manufacturer/Model Number
Insane hobo technologies. ;-)
OS
Windows 7 x64
CPU
Intel i7 2600k
Motherboard
Asrock z68 extreme 4 gen 3
Memory
G.skill Ripjaw 16gigs @ 1866
Graphics Card(s)
Nvidia gtx580 (evga)
Sound Card
Integrated HD audio + hdmi
Monitor(s) Displays
24" ASUS widescreen + 42" insignia
Screen Resolution
1080p (1920x1080)
Hard Drives
128 Samsung 830
256 Samsung 840
3 x 1tb storage drive (various)
1 western digital 1tb (eSATA)
1 Seagate 1tb (eSATA)
PSU
1 kilowatt SLI/Crossfire rated Silverstone modular
Case
NZXT Phantom + additional 220 fan
Cooling
Zalmann
Keyboard
Microsoft wireless 3000 (v2)
Mouse
MS - wireless 5000 (bluetrack)
Internet Speed
depends on if you ask me or my provider.
Other Info
The above information is provided as is, and the author assumes no responsibility for issues it may cause with your sanity or fanboyism.
Stubborn little myth, that "WinSxS is almost all hardlinks" thing...it isn't. Most of it is actual files, and these files are actual copies of real, live system/app files.

If they weren't, then how would one ever be able to reinstall deleted files?
Where would sfc /scannow get missing/corrupted files from in order to replace them if not from winsxs?
And how would anyone be able to upgrade their Windows edition in-place without, say, a huge download?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom-built
OS
Windows 7 Professional SP1 32-bit
CPU
Intel Core 2 Duo E6600 2.4GHz
Motherboard
Asus PL5D2
Memory
4GB DDR2-667 (4x1GB in dual-channel config)
Graphics Card(s)
nVidia GeForce 9800 GT
Sound Card
Creative X-Fi XtremeMusic
Monitor(s) Displays
Acer P236H
Screen Resolution
1920x1200 (DVI)
Hard Drives
OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache
PSU
Antec TruePower 2.0
Case
Cooler Master Centurion
Cooling
Too many fans
Keyboard
Standard
Mouse
Microsoft wireless optical mouse
Internet Speed
AT&T U-verse (18mbit/sec)
Antivirus
Microsoft Security Essentials
Browser
Firefox
Other Info
Other devices:
Compaq CQ-60 laptop
Google Nexus 7 (2012) tablet
Nvidia SHIELD tablet (US/LTE)
Hardkernel ODROID-XU single-board computer (Samsung Exynos 5420)
Corazon, they are hardlinks. The reason SFC can restore files delete by using WinSxS because when you delete a hardlink the file is never truely deleted until every single hardlink to the file is deleted.

Attached is a ZIP files containing a large text file that list all the hardlinks within WinSxS from my system.
 

Attachments

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
So basically what has been said is that this folder is reporting larger used space than is actually being used. Between this thread and the other referenced called WinSXS Folder not actually consuming lots of space
I think most of use can get a handle on what is happening.
But what about third party programs. (I'm talking about SSD drives) My SSD is 80GB. Windows 7 plus 3 or 4 of the newer games and this drive is full. (no hibernate, pagefile move to a fast HDD) Third party programs do not understand about hard links. They just ask windows how much space is available. If there is not enough, well your screwed then. It is great to now know what is going on with the winsx Dir. But that does not help real world use for SSD's
There needs to be a way to reduce or be able to move this dir to another drive (for advanced users). I have removed the SP1 backup files with dism/ & diskcleanup, & cleanmgr sageset/run, but my winsx dir is still over 10GB as windows reports it (57K of files & links) that can not be used to install other programs to the fastest drive I have.
Just for kicks, I made a back up image of my win7 instal. Then deleted 9gb of the oldest files in winsx. I got about 4gb back. I installed a couple more big programs just to fill the drive. As I suspected, when I installed the last program that needed more space than what windows explorer reported, it would not install. winsx grew some in size during this exercise. The system was stable until patch Tuesday. Installing updated hosed the win install. It would boot, then freeze, or sometimes reboot itself, but never got back to the desktop.
I want MS to put a method out in the wild to help me (us) get back that space on SSD's. 12.5% of my SSD is basically not usable, and I want it back. :(
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Built
OS
Win 7 Ultiamte x64
CPU
Intel E8500
Motherboard
EVGA nforce 680i
Memory
4GB Kensington Hyper
Graphics Card(s)
EVGA e6800
Sound Card
onboard
Monitor(s) Displays
Sanyo 32" HD TV
Screen Resolution
1080P
Hard Drives
WD black 500Gig
PSU
Thermatake 680
Case
none
Cooling
Zalman 7800 CPU gooler
Keyboard
generic
Mouse
generic
Internet Speed
none
Antivirus
none
Browser
FF, IE, Chrone
Other Info
This is an offline MAME dedicated machine I'm building from extra parts I have. I use USB drive to move or update files
Back
Top