How to get out of automatic repair loop in Windows 8?

Solution 1:

Run this command on recovery prompt:

bcdboot c:\windows

assuming c: is drive where Windows is installed, else change letter accordingly.

New computers use UEFI and GPT style disk formating so there is no MBR and boot sector code.

In case disk is MBR style one additional command is needed:

bootsect /nt60 all /force /mbr

If booting is still not possible after completing command(s) above you have to run system file check sfc /scannow

or

sfc /SCANNOW /OFFBOOTDIR=c:\ /OFFWINDIR=c:\windows

assuming c: is your Windows drive.