CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了CentOS覆盖win10引导的解决办法大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_262_1@

概述

解决办法: 1:在centos中安装ntfs-3g和os-prober。 2:运行grub2-mkconfig -o /boot/grub2/grub.cfg出现下图提示: grub2-mkconfig -o /boot/grub2/grub.cfg GeneraTing grub configuration file ... Found linux image: /boot/vmlinuz-3.

解决办法:
1:在centos中安装ntfs-3g和os-prober。
2:运行grub2-mkconfig -o /boot/grub2/grub.cfg出现下图提示

grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-327.18.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-327.18.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-08110bed159d42b487ce3200ed07c40d
Found initrd image: /boot/initramfs-0-rescue-08110bed159d42b487ce3200ed07c40d.img
Found Windows 7 (loader) on /dev/sda1
done

把win10识别成win7了,进入/boot/grub2/grub.cfg多了如下内容

@H_263_19@menuentry 'Windows 10 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-FEE4DCEEE4DCAA63' { insmod part_msdos insmod ntfs set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-bareMetal=ahci0,msdos1 --hint='hd0,msdos1' FEE4DCEEE4DCAA63 else search --no-floppy --fs-uuid --set=root FEE4DCEEE4DCAA63 fi parttool ${root} hidden- chainloader +1 }

重起后即可进入win10

大佬总结

以上是大佬教程为你收集整理的CentOS覆盖win10引导的解决办法全部内容,希望文章能够帮你解决CentOS覆盖win10引导的解决办法所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。