CentOS 7 Installation Restore Windows boot entry

Source: Internet
Author: User

Install CENTOS7 on the computer WINDOWS10 system and cannot find the Windows7 boot menu after installation.

Reason: Because CentOS 7 has a new GRUB2 system, you need to use VI to edit the grub.cfg file after entering the/BOOT/GRUB2 directory.

Workaround One: Modify the GRUB2 boot of CentOS 7 to add the Windows startup entry

1 1.sudo vi/boot/grub2/grub.cfg2 2. Find the # # # begin/etc/grub.d/30_os-prober # # #3    add 4    menuentry "Windows Ten (load ER) (on/dev/sda1) "{5      insmod ntfs6      set root= (hd0,1) #由于我的windows安装在硬盘的C盘, therefore (hd0,1) 7      chainloader +18    }

Solution Two: System automatically detects if there are other systems

Linux can only recognize the EXT3/4,FAT32 format, and if Windows is an NTFS-formatted disk partition, GRUB2 will not be recognized.

Transferred from: http://www.cnblogs.com/duzishanglu/p/4687958.html

CentOS 7 Installation Restore Windows boot entry

Related Article

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.