How can I fix broken windows partition from Linux?

Dual booting windows and fedora, i somehow broke the windows partition and now it gets stuck at the loading screen with the text: “Getting a few things ready” or something like that.
but my Linux partition works perfectly fine, I can even access the windows partition files from linux. But I can’t get in windows at all, is there a way (from linux or a usb mount) install a clean windows without missing up anything else such as linux?

Thanks in advance!

It would be a bit risky, but you might be able to do something like that by attaching your whole disk to a virtual machine instance and reinstalling Windows. That would have a high probability of corrupting your Linux OS as well though if you don’t know what you are doing. I wouldn’t recommend it.

Actually, I don’t think that would work (anymore) due to the whole TPM requirement of Windows. It would see a different TPM device when you reboot your system (if you could get it to boot at all).

You should probably just reinstall Windows in a VM and then copy the files you want to keep from the old/broken installation.

Oh well, another solution I considered was wiping everything and then installing windows and after that installing fedora and setting up dual booting all over again.

On another note, how does one reinstall windows in a VM? Do you mean leaving the windows partition alone and using a windows VM on Linux? If so then thats 500 something GB wasted, would there be a way to expand the Linux partition? Could you please elaborate? I’m a bit lost… :sweat_smile:

Also i forgot to mention that I’m on the Lenovo think pad e15.
And here is a picture of the windows and linux partitions:


The big Ntfs partition is windows and fedora is the 104 GB one.

Fedora uses 3 partitions, so it would be good to give us a lsblk -f to see the lable and mount ponts.

Yes, that should be possible.

There are many guides available. There is one here, but I’m not sure if it is the “best” one. It might depend a bit on exactly how you intend to use Windows.

A backup is the first thing you should do regardless of what configuration you decide on.