I know if you have a non-bootable computer, one of the first issues to try and resolve is to fix the MBR. This can be done via the Command Line from a Recovery Disc and also there are various utilities that have an option to fix/rewrite the MBR. My question is: what is the corresponding process / commands used to fix the GPT. Via research I have discovered that the boot structure will be a GPT if the operating system is Windows 8 or 8.1 that is UEFI / secure boot enabled. I am guessing that most newer computers fit this category. I have found a process / commands which I believe can be used to fix the boot structure which is a GPT - However I am not sure and would like to put this to the forum for verification and or modification, and or define a completely different scenario. Also if I am completely wrong please let me know.
The process of commands for GPT Boot Record (?) are:
The process of commands for GPT Boot Record (?) are:
- bcdedit /export c:\bcdbackup
- Type: C: - where C: is your Windows drive
- Type: CD boot
- Type: attrib bcd -s -h -r (another form for these two commands would be)
- attrib c:\boot\bcd -h -r -s
- Type: ren c:\boot\bcd bcd.old
- Type: bootrec /rebuildbcd (this scans for installations on drive and allows you to select which to add to BCD)
- If you see to add one or more detected (1) windows installation after the rebuildbcd command, press "A" and then "Enter" - This means the BCD has been fixed successfully and you can now reboot.
- If the results are 0, then it has not been fixed, and you need to enter the following commands to try again:
- Type: attrib c:\boot\BCD -h -r -s
- Type: ren c:\boot\bcde bcd.old - rename again
- Type: bootrec/rebuildbcd - retries the rebuild