先安装win7后安装centos7后 以及后面恢win7添加centos引导复Win7引导的曲折历程

番茄系统家园 · 2021-07-19 15:10:05

先安装win7后安装centos7后 以及后面恢win7添加centos引导复Win7引导的曲折历程

先安装win7后安装后,的引导管理中没有win7的引导项。需要在的中中添加win7的引导。

进入,进入root账户,在中添加win7引导,但是是系统不推荐直接修改的,需要修改/etc/grub.d中的40_custom,然后执行命令grub2-mkconfig

-o

/boot/grub2/grub.cfg更新修改到grub2.cfg。reboot后成功出现window7引导项目。

另外根据个人需要还可以更改grub2默认引导项为window7。方法为更改/boot/grub2/中的grubenv文件。

40_custom内容如下:

#!/bin/sh

exectail-n+3$0

#Thisfileprovidesaneasywaytoaddcustommenuentries.

Simplytypethe

#menuentriesyouwanttoaddafterthiscomment.

Becarefulnottochange

#the'exectail'lineabove.

menuentry'Windows7'{

相关阅读

  • 如何关闭win10系统自动更新
  • win7添加centos引导
  • 先安装win7后安装centos7后 以及后面恢win7添加centos引导复Win7引导的曲折历程
  • 免责声明: 凡标注转载/编译字样内容并非本站原创,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如果你觉得本文好,欢迎推荐给朋友阅读;本文链接: https://m.nndssk.com/post/15493.html。
    猜你喜欢
    最新应用
    热门应用