Document directory
A friend who has installed linux has had this experience. When Grub was installed, he modified the hard disk MBR, but when LINUX was deleted, the original WINDOWS system could not be started, what should I do?
Two simple methods for writing data into MBR
Method 2: After the Windows installation disk is placed on the computer, restart the computer, enter the Windows Installation program, then enter the recovery console, and enter the command fixmbr.
You can use the MBRFix tool to fix the problem.
It is very convenient for the MBRFix tool to repair MBR. First, enter the cmd command window, then enter the directory where the mbrfix tool is located (run the cd command), then enter the command MbrFix/drive 0 fixmbr, and then confirm it. After the restart, you will find that without Linux, you can directly access Windows.
Appendix 1: MbrFix command
Commands:
MbrFix /drive <num> driveinfo Display drive information
MbrFix /drive <num> listpartitions Display partition information
MbrFix /drive <num> savembr <file> Save MBR and partitions to file
MbrFix /drive <num> restorembr <file> Restore MBR and partitions from file
MbrFix /drive <num> fixmbr Update MBR code to W2K/XP/2003
MbrFix /drive <num> clean Delete partitions in MBR
MbrFix /drive <num> readsignature {/byte} Read disk signature from MBR
MbrFix /drive <num> generatesignature Generate disk signature in MBR
MbrFix /drive <num> readstate Read state from byte 0x1b0 in MBR
MbrFix /drive <num> writestate <state> Write state to byte 0x1b0 in MBR
Drive numbering <num> starts on 0.
Commands restorembr, fixmbr, generatesignature, writestate and clean will ask for confirmation unless/yes is already ded.
If the/byte option is given for the readsignature command, the signature is returned as a byte array instead of as a DWORD.
Appendix 2: Mbr Fix download (35KB)
Http://www.cnitblog.com/Files/CoffeeCat/MbrFix.rar