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

Source: Internet
Author: User
After CentOS7 is installed, resume Windows boot. the following content is added to the cfg file. after restarting, you can see the Windows boot item and enter the win10 system smoothly. ### BEGIN/etc/grub. d/30_os-prober ### menuentry & #39; Windows10 (loader) (on/dev/sd

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.

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.