Recovering a boot partition
Detailed instructions on how to recover a boot partition without losing files
The first thing you need to do is insert a bootable USB flash drive with Windows installation files formatted in FAT32.

Next, you need to enter the BIOS and boot by selecting this USB flash drive as the boot device.

After booting from the USB flash drive, you will see the "Windows Setup" window.

You don’t need to press anything, as we don’t need to go through the Windows installation process!
We need to open the Command Prompt and execute the commands.
On the Windows setup screen, press SHIFT + F10.
The Command Prompt window will open. In the Command Prompt, type:
diskpart
Next, type:
list vol
Next, type:
sel vol "5"
Next, type:
format fs=fat32 quick
Next, type:
assign letter=Z
Next, type:
exit
Next, type:
bcdboot C:\Windows /s Z: /f all
After executing the command, you should see the message:
Boot files successfully created.Here’s an example of how it should look!

If all steps were completed correctly, turn off the computer, remove the USB flash drive, and turn it on again.
Done! We have successfully restored the Windows bootpart
Last updated