CentOS覆盖win10引导的解决办法

解决办法: 1:在centos中安装ntfs-3g和os-prober。 [ntfs-3g]wget (https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2015.3.14.tgz) 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被识别成Winows Recovery Enviroment了,进入/boot/grub2/grub.cfg多了类似如下内容:

menuentry 'Winows Recovery Enviroment (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
}

3:重起后即可进入win10

转载于:https://my.oschina.net/besttone/blog/736000

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值