Reinstalling win7 to repair Grub

Source: Internet
Author: User

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:
 

 
 
  1. #grub.confgeneratedbyanaconda  
  2. #  
  3. #Notethatyoudonothavetorerungrubaftermakingchangestothisfile  
  4. #NOTICE:Youhavea/bootpartition.Thismeansthat  
  5. #allkernelandinitrdpathsarerelativeto/boot/,eg.  
  6. #root(hd0,5)  
  7. #kernel/vmlinuz-versionroroot=/dev/hdb7  
  8. #initrd/initrd-version.img  
  9. #boot=/dev/hdb  
  10. default=1 
  11. timeout=5 
  12. splashimage=(hd0,5)/grub/splash.xpm.gz  
  13. hiddenmenu  
  14. titleCentOS(2.6.18-164.10.1.el5xen)  
  15. root(hd0,5)  
  16. kernel/xen.gz-2.6.18-164.10.1.el5  
  17. module/vmlinuz-2.6.18-164.10.1.el5xenroroot=LABEL=/rhgbquiet  
  18. module/initrd-2.6.18-164.10.1.el5xen.img  
  19. titleXP  
  20. rootnoverify(hd0,0)  
  21. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.