After centos is installed, you cannot boot windows7.

Source: Internet
Author: User

After centos is installed, you cannot boot windows7.

Install Centos7 on Windows 7. After installation, the Windows 7 boot menu cannot be found.

Cause: Because CentOS 7 uses the new grub2 system, you need to enter the/boot/grub2 directory and use vi to edit the grub. cfg file.

Solution 1: Modify the Grub2 boot guide of Centos 7 and add a Windows Startup item.

1. sudo vi/boot/grub2/grub. cfg2 2. find ### BEGIN/etc/grub. d/30_os-prober ### 3 add 4 menuentry "Windows 7 (loader) (on/dev/sda1)" {5 insmod ntfs6 set root = (hd0, 1) # Because my windows is installed on the hard drive C, (hd0, 1) 7 chainloader + 18}

Solution 2: the system automatically checks whether other systems exist.

Grub2-mkconfig-o/boot/grub2/grub. cfg

Linux only supports Ext3/4 and fat32 formats. Grub2 cannot recognize partitions in NTFS format.

Other solutions: Enter PE to restore Windows mbr boot (of course, The Grub2 Boot of Centos 7 is gone), and then use easyBCD to add the Grub2 Boot of Centos 7 in Windows, however, this method seems quite troublesome. If you are a lazy patient, you don't want to go over it.

 

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.