New
#1
Need help repairing the winsxs folder
So one day my computer was running low on storage. I noticed that the winsxs folder was taking up a decent chunk of storage. All I knew about the winsxs folder at the time was that it was the "windows update folder" so I thought that it wouldn't really do much harm to clear it out (in the back of my mind I knew it might not be the best idea but I was stressed and just wanted to clean up some space quickly so I didn't really think it through). So after deleting everything in it I rebooted my computer and after the "starting windows" animation there was just a black screen.
Then I thought that mabye I could copy the winsxs folder from a working installation to the broken one. So I intalled Windows on a separate partition on my extra HDD and copied the winsxs folder from there to the broken install.
When I booted into it there was still a black screen but now I could see the mouse! But still I couldn't log in or do anything (I could still see the mouse cursor spinning every once in a while).
In the working installation tried to run:
sfc /scannow /offbootdir=E:\ /offwindir=E:\Windows
but I got
Windows Resource Protection could not start the repair service.
(sfc /scannow still worked fine on the online installation)
I thought that mabye it wasn't working because it is an EFI install, so I mounted the EFI partition (F:\) and tried to point it to the folders there but to no avail:
sfc /scannow /offbootdir=F:\ /offwindir=E:\Windows
Windows Resource Protection could not start the repair service.
sfc /scannow /offbootdir=F:\EFI\Microsoft /offwindir=E:\Windows
Windows Resource Protection could not start the repair service.
sfc /scannow /offbootdir=F:\EFI\Microsoft\Boot /offwindir=E:\Windows
Windows Resource Protection could not start the repair service.
sfc /scannow /offbootdir=F:\EFI\Boot /offwindir=E:\Windows
Windows Resource Protection could not start the repair service.
I found a tool called SFCFix that looked like it would be able to help but I couldnt figure out how to point it to an offline installation.
Help would be appreciated as I really want to try to avoid reinstalling Windows as I would have to transfer user data, programs, program data, environment variables, registry keys, reinstall SDKs etc.. and that would take a lot of time and effort.
If there is one thing I've learned from this it is to backup regularly in case anything goes wrong.
side note: I thought that had system restore (shadow copy) enabled but turns out it was only enabled for my other drive not my OS drive
Last edited by tlr08; 22 Oct 2023 at 16:06. Reason: change [code] tags to [c] tags