win7,fedora33双系统安装以及引导
1,使用fedora33 官方刻录工具,制作U盘fedora镜像。
2,从U盘启动,安装fedora33。
3,安装过程中,选择自定义分区,不安装引导程序,等系统安装后,在win7中手动添加引导。
4,因为未安装引导程序,且安装过程中会将原来存放win7引导程序的C盘的活动状态覆盖掉,所以安装成功后,重启,会出现两个系统都无法进入,这时需要使用老毛桃或大白菜等软件制作U盘启动工具,进入PE,使用硬盘分区工具diskgenius,激活C盘,这样win7就可以启动了。
5,重启进入win7后,使用easybcd添加对fedora33的引导。具体步骤如下:
(1)进入win7系统,下载easybcd,并安装,也可以选择绿色免安装版下载
(2)启动easybcd,选择“添加新条目”,选择最后一项,点击安装,然后点击配置按钮
(3)点击配置后,在新打开的menu.lst文件中,添加引导fedora33启动的代码
# NeoSmart NeoGrub Bootloader Configuration File # # This is the NeoGrub configuration file, and should be located at C:\NST\menu.lst # Please see the EasyBCD Documentation for information on how to create/modify entries: # http://neosmart.net/wiki/display/EBCD/ title Fedora 33 root (hd0,8) kernel /vmlinuz-5.8.15-301.fc33.x86_64 root=UUID=cd5b4434-8116-4b8d-a227-f99aea430d75 ro rootflags=subvol=root initrd /initramfs-5.8.15-301.fc33.x86_64.img
第一行是启动菜单的名称,格式为:title 自定义菜单名称。
第二行代表内核以及镜像所在分区,hd0 代表第一块硬盘,8 代表编号为9的逻辑分区(从5开始编号),可使用请根据个人情况填写,查看盘符以及内核名称,可使用硬盘分区工具diskgenius,如下图所示。
第三行代表内核的文件名以及内核启动选项。
第四行代表初始的文件系统镜像。
具体内容可通过安装Paragon ExtFS for Windows 进入boot分区进行查看。
挂在成功后,进入boot分区,找到文件夹:\loader\entries,该目录下有两个文件,找到下图文件打开(名字较长的文件,文件名可能与下图不同)
文件内容如下:
title Fedora (5.8.15-301.fc33.x86_64) 33 (Workstation Edition) version 5.8.15-301.fc33.x86_64 linux /vmlinuz-5.8.15-301.fc33.x86_64 initrd /initramfs-5.8.15-301.fc33.x86_64.img options root=UUID=cd5b4434-8116-4b8d-a227-f99aea430d75 ro rootflags=subvol=root grub_users $grub_users grub_arg --unrestricted grub_class kernel
vmlinuz-5.8.15-301.fc33.x86_64 即内核的文件名。options代表内核启动选项。initramfs-5.8.15-301.fc33.x86_64.img代表初始的文件系统镜像名。
找到这三个参数后,在meun.lst中按照以下格式添加即可。
# NeoSmart NeoGrub Bootloader Configuration File # # This is the NeoGrub configuration file, and should be located at C:\NST\menu.lst # Please see the EasyBCD Documentation for information on how to create/modify entries: # http://neosmart.net/wiki/display/EBCD/ title Fedora 33 root (hd0,8) kernel /vmlinuz-5.8.15-301.fc33.x86_64 root=UUID=cd5b4434-8116-4b8d-a227-f99aea430d75 ro rootflags=subvol=root initrd /initramfs-5.8.15-301.fc33.x86_64.img