After CentOS is installed, add the Windows boot item to grub2.

Source: Internet
Author: User

After CentOS is installed, add the Windows boot item to grub2.

Recover Windows boot after CentOS 7 Installation

According to the practices in the website/Boot/grub2/grub. cfgAfter the following content is added to the file, you can see the Windows boot item after restart and enter the win10 system smoothly.

### BEGIN/etc/grub. d/30_os-prober ### menuentry 'windows 10 (loader) (on/dev/sda1) '-- class windows -- class OS $ menuentry_id_option' osprober-chain-140E68540E6830C2 '{insmod part_msdos insmod ntfs set root = 'hd0, msdos1' chainloader + 1 }### END/etc/grub. d/30_os-prober ###

Note that,Set root =It is followed by the partition where the Windows System Boot is located, that is, the Windows system disk, which is generally a drive C.Hd0It refers to the first hard disk.Msdos1It refers to the first partition.

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.