The previous day, I installed ubuntu12.04 on the USB flash drive. After the boot, I checked the first default installation, but forgot to select the ext4 partition. After the installation, I cannot start win7, And the win7 option also changed to winvista, then uninstall Ubuntu and restart grub rescue mode. Use the following method to switch to normal:
By checking the file, you can determine the partition in which the grub2 core file is located. Next, you can perform the conversion from rescue to normal:
First Ls
Look at the partition. Based on the partition list, guess the/Partition Number and then ls (hd0, x)/check the file in the partition directory to find/partition. If not, continue searching. Locate/partition (hd0, x) and continue
Grub rescue> root = (hd0, X)
Grub rescue> prefix =/boot/GRUB
Grub rescue> set root = (hd0, X)
Grub rescue> set prefix = (hd0, x)/boot/GRUB
Grub rescue> insmod normal
Rescue> normal --------> If the Startup menu appears, press C to enter the command line mode.
Then go to grub normal mode.
Find -- Set-root/bootmgr
Chainloader/bootmgr
Boot
After chainloader is executed, the ntldr startup address is displayed ......, After boot, restart the boot screen and then enter grub again.
Finally, go to the installation page through the win7 system disk, press SHIFT + F10 to open cmd, enter the bootrec command, bootrec/fixmbr, boot/fixboot to fix the problem, but still cannot start win7, and useBootrec/Rebuildbcd. After reconstruction, add win7 to the startup Item., Restart, enter win7, and you are done!