Fix win 7 boot in CentOS

Source: Internet
Author: User

1. We can clearly see/boot/grub2/grub.cfg inside, said: Do not edit this file, this file is automatically generated by Grub2-mkconfig (of course you can also manually), modify this file although you can achieve the effect, However, after the system executes grub2-mkconfig, the configuration you modify will fail, which is obviously not good.


So the right approach should be:
You do Grub2-mkconfig-o/boot/grub2/grub.cfg first.
If you can get back Win7 or other system startup items, you won't have to do the following step,
If not, please modify the/etc/grub.d/40_custom, see figure.



Menuentry "Win7" {
Set root= (hd0,1)
Chainloader +1
}



After the modification, use the Grub2-mkconfig-o/boot/grub2/grub.cfg command to reconstruct the GRUB2 boot.

Fix win 7 boot in CentOS

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.