I used the Ghost method. Before the installation step was completed, the MBR had not been changed. The previous system would not recognize it, and I continued the original method just as nothing had happened. The following is an analysis of how to reinstall win7 to repair Grub.
In this case, re-enter PE, simply recreate the partition table, and delete or block the primary partition first. She provides several disk tools to use. The entire Partition Table is deleted! Everything has to be reinstalled! Don't be reconciled. Restart PE. It's okay to restore the partition table. But the original primary partition has two partitions. Now there is only one partition and data is lost. Well, first hide the primary partition, and then use the disk tool to fix the boot. Restart. Now, nothing can be started. The MBR was deleted and no backup was performed. Please try again in case of trouble. Continue to repair, repair, restart, and restart. Is it because the primary partition is hidden too early and not formatted? In this way, display and format the primary partition, fix and Boot windows, and restart. Finally, enter the win7 installation interface!
Reinstall win7 repair Grub update repair centos boot.
Since Windows 7 is installed in NTFS format, GRUB4DOS downloaded requires FAT32 format. Otherwise, there will always be many prompts and errors, so it has been restarted many times. Re-import PE, or use the provided disk tool and install it several times, no effect. Finally, the fix guide was installed. This time I learned how to back up the partition table and MBR. Restart, select commandline for more than 10 options, and enter the grub prompt interface. The original grub is as follows:
- #grub.confgeneratedbyanaconda
- #
- #Notethatyoudonothavetorerungrubaftermakingchangestothisfile
- #NOTICE:Youhavea/bootpartition.Thismeansthat
- #allkernelandinitrdpathsarerelativeto/boot/,eg.
- #root(hd0,5)
- #kernel/vmlinuz-versionroroot=/dev/hdb7
- #initrd/initrd-version.img
- #boot=/dev/hdb
- default=1
- timeout=5
- splashimage=(hd0,5)/grub/splash.xpm.gz
- hiddenmenu
- titleCentOS(2.6.18-164.10.1.el5xen)
- root(hd0,5)
- kernel/xen.gz-2.6.18-164.10.1.el5
- module/vmlinuz-2.6.18-164.10.1.el5xenroroot=LABEL=/rhgbquiet
- module/initrd-2.6.18-164.10.1.el5xen.img
- titleXP
- rootnoverify(hd0,0)
- chainloader+1
According to the input, the results found that the input "module/vmlinuz-2.6.18-164.10.1.el5xenroroot = LABEL =/rhgbquiet" always prompts an error, change it, enter "module/vmlinuz-2.6.18-164.10.1.el5xen", HA can, enter "setup (hd0)". Success! Restart and the familiar GRUB appears again.
Reinstalling win7 to repair Grub Summary: during this period, many methods on the Internet have no effect. It was successful only when some commands were changed. Therefore, to analyze the specific situation and find the most appropriate method, the information on the Internet or on the book is not necessarily generic.