How to resolve windows 8 boot failed

First, get a windows 8 recover disc or usb, then boot with usb ,

go into the command prompt , and type this few commands

bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd