如何双启动 Fedora 和 Windows
Windows Fedora 双启动
![](/data/attachment/album/202203/27/094744eczngnxczcanshff.jpg)



> 
> 这篇详细的教程一步一步地向你展示 **如何双启动 Fedora Linux 和 Windows 10**，附有适当的截图。
> 
> 
> 


双启动 Linux 和 Windows 是一种完全享受这两款操作系统的流行方式。你可以在同一个硬件系统上安装 Linux 和 Windows 两款系统，并在你启动你的硬件系统时选择使用哪款操作系统。


![On the grub screen, you can select the operating system](/data/attachment/album/202203/27/094745c3nny46lvxq8nlhk.jpg)


如果你有一个已经安装 Windows 的系统，你将在这篇教程中学习如何在 Windows 的旁侧安装 Fedora 。


### 在 Windows 的旁侧安装 Fedora


这篇教程是在一款已经安装 Windows，采用 GPT 分区和 UEFI 启动的硬件系统的基础上执行的。它应该也适用于其它的带有 MBR 分区和传统 BIOS 的硬件系统，但是我不能确认这一点。


注意：如果你的 Windows 系统使用 BitLocker 加密，在你安装 Fedora 前禁用它会是一个好主意。


#### 必要条件


这里是你需要遵循这篇教程的东西:


* 一个已预装 Windows 的系统
* 良好的互联网连接速度
* 一个至少 4 GB 大小的 USB 接口设备（U 盘）
* 可选: 用于备份你的 Windows 现有数据的外部 USB 磁盘。
* 可选: Windows 恢复或可启动磁盘（如果你偶遇一些严重的启动问题，你可以修复它）。


让我们看看步骤。


#### 步骤 1: 制作 Windows 系统的数据备份 [可选]


备份总会是一个好主意。因为你将要处理磁盘分区。在一些罕见的不幸情况下，假设你出错并删除了错误的分区，你将丢失你的数据。


最简单的方法是将文档、视频、音乐、图片和其它的文件夹中的数据复制到一块外部 USB 磁盘中。你可以使用一个外部的机械硬盘（传输速度较慢，但是价格较便宜）或固态硬盘（传输速度较快，但是价格较昂贵），并将重要的文件和文件夹复制到其中。


#### 步骤 2: 为 Fedora 的安装准备一些可用的空间


你需要创建一个分区，你将在其中安装 Fedora 。如果你只有一个 C 驱动器，缩小它的分区。如果你有 D、E 或 F 等多个驱动器，确保你可以移动这些驱动器中的数据到一些其它的分区中，删除或缩小其中的一个驱动器。超过 40 GB 的驱动器分区都能有足够的空间来安装安装 Fedora 。


在 Windows 的菜单中，搜索 “磁盘分区” 并转到 “创建并格式化磁盘分区”。


![](/data/attachment/album/202203/27/094745e7sn7rbhrrkjzr2h.png)


在磁盘管理工具中，右键单件你想要分区的驱动器，并选择 “缩小卷”。


如果你只有一个像这样的分区，你需要为 Linux 腾出一些可用的空间。如果你有一些空间相当大的分区，请使用除 C 驱动器分区外的分区，因为它会擦除数据。


![](/data/attachment/album/202203/27/094746s2dzcdbcebsesdkz.jpg)


#### 步骤 3: 在 Windows 中制作一个 Fedora 的临场 USB


现在，这个步骤可以通过不同的方法来完成。你可以下载 ISO 并使用 [Etcher](https://itsfoss.com/install-etcher-linux/) 或 Rufus 或一些其它的工具来将 ISO 镜像写入 USB 磁盘。


不过，Fedora 提供了一个用于下载 ISO 镜像和制作 <ruby> 临场 USB <rt>  Live USB </rt></ruby> 的专用工具。我将在这篇教程中使用它。Fedora 团队在创建这个工具时付出了很多艰难的努力，因此为什么不使用它呢。


但是，首先, **插入 USB 接口设备**。现在，转到 Fedora 的下载页面：


* [下载 Fedora](https://getfedora.org/en/workstation/download/)


你将看到针对 Windows 版本的下载 “Fedora Media Writer” 工具的选项。


![](/data/attachment/album/202203/27/094748fglv8eaxt8ogo81a.png)


它将下载一个 exe 文件。在下载完成后，转到你所下载到的文件夹，并双击 `FedoraMediaWriter.exe` 文件来安装 “Fedora Media Writer” 工具。只需要重复点击 “<ruby> 下一步 <rt>  next </rt></ruby> 。


![](/data/attachment/album/202203/27/094749u7lhi7qlw9q7bk95.png)


在安装完成后，运行 “Fedora Media Writer” 工具。但是在此之前，**确保你已经插入 USB 设备**。


它将给予你安装各种 Fedora 版本的选项。针对桌面机，选择<ruby> 工作站 <rt>  Workstation </rt></ruby>版本。


![](/data/attachment/album/202203/27/094751pifnhb7bcgjbbqjt.png)


在接下来的屏幕中，你将会得到一个创建临场 USB 的选项。当你点击这个按钮时，它将开始下载 ISO 文件。它也将识别出你所插入的 USB 接口设备。


你需要良好的互联网访问速度来在一段时间内顺畅地下载 2GB 大小的 ISO 文件。


![](/data/attachment/album/202203/27/094753wpxzzf3mxwnfyw1r.jpg)


在下载 ISO 后，它会自动地对其进行检验，并给予你将 ISO 镜像写入到 USB 磁盘的选项，例如，创建临场 USB 。点击 “<ruby> 写入到磁盘 <rt>  Write to Disk </rt></ruby>” 按钮。


![](/data/attachment/album/202203/27/094754ba728zyctppc2y7y.png)


它将花费几分钟来完成安装过程。它显示 “<ruby> 完成 <rt>  Finished </rt></ruby>” 信息后，你可以关闭 “Fedora Media Writer” 工具了。


![](/data/attachment/album/202203/27/094755skslwrbl6qmcq5zz.png)


很好！现在你已经准备好了 Fedora 临场 USB 。现在是时候使用它来安装带有图形用户界面的 Fedora 了。


#### 步骤 4: 从临场 USB 启动并安装 Fedora


一些系统不允许你在使用安全启动的情形下从临场 USB 启动。如果你是这种情况的话，请 [禁用安全启动](https://itsfoss.com/disable-secure-boot-windows/)。


在处于显示硬件系统制造商徽标的屏幕期间，按下 `F2` 或 `F10` 或 `F12` 按键。如果你不确定是哪个按键，你可以逐个尝试。但是，你要 **快速地** 按下按键 ，否则它将会启动到操作系统之中。


不同品牌计算机的按键是不同的。一些计算机甚至可能使用 `Esc` 或 `Del` 按键来完成此目的。


![Quickly press F2, F10 or F12 keys at the screen showing your system manufacturer’s logo](/data/attachment/album/202203/27/094757w7ztf0etfk64sf6x.jpg)


在一些罕见的情况下，你可能需要 [在 Windows 中访问 UEFI 启动设置](https://itsfoss.com/access-uefi-settings-windows-10/)。


在 BIOS 设置中，通常，你应该会看到像这样的屏幕。在这里，你可以使用箭头按键来向下移动到 USB 选项，并按下回车键来从 USB 启动。请注意，在不同的系统中，这一屏幕可能会看起来有所不同。


![](/data/attachment/album/202203/27/094759wltq6y699aqm69f1.jpg)


如果一切顺利，你应该会看到像下面的一个屏幕。选择第一个选项 “<ruby> 启动 Fedora 工作站 <rt>  Start Fedora Workstation </rt></ruby>”：


![](/data/attachment/album/202203/27/094800kinoytmcinthnjhg.jpg)


在数秒后，你应该会启动到 Fedora 临场会话期间，并会看到尝试或安装它的选项。选择 “<ruby> 安装到硬盘 <rt>  Install to Hard Drive </rt></ruby>” 。


![](/data/attachment/album/202203/27/094802kx1jx7oa88ou9xol.jpg)


它会要求选择安装过程的语言选项。


![](/data/attachment/album/202203/27/094803thq0yxnl0kqpq9ix.png)


接下来的屏幕是很重要的。如果你已经在 “步骤 2” 中创建了可用的空间，你应该能够点击 “<ruby> 开始安装 <rt>  Begin Installation </rt></ruby>” 。如果你在“<ruby> 系统 <rt>  SYSTEM </rt></ruby>”下的磁盘图标上看到一个感叹号，单击它，并查看你能够在这里使用哪种磁盘配置。


如果你有多个磁盘，你可以为 Fedora 选择使用哪个磁盘。


![](/data/attachment/album/202203/27/094805l6itn61uimf10kwf.png)


选择磁盘，并点击“<ruby> 完成 <rt>  Done </rt></ruby>” 。现在，你应该会看到一条警告信息。在我的实例中，我没有在 “步骤 2” 中创建可用的空间，因此它会抱怨这里没有足够的可用的空间来安装 Fedora 。


![](/data/attachment/album/202203/27/094807pzaawlzw9nlnqnzp.png)


我点击 “<ruby> 回收空间 <rt>  Reclaim space </rt></ruby>” ，并缩小在这里的 Windows 分区。


![](/data/attachment/album/202203/27/094809cclill4pp2jepuup.png)


在这以后，将出现 “<ruby> 开始安装 <rt>  Begin Installation </rt></ruby>” 选项，开启安装过程。


![](/data/attachment/album/202203/27/094811qwcf3lbuct3ukpcd.png)


现在，它只是一个需要耐心等待的游戏了。将花费数分钟来提取文件并安装它们。


![](/data/attachment/album/202203/27/094812tghve1raa146vq7b.png)


当过程完成后，你将看到 “<ruby> 结束安装 <rt>  Finish Installation </rt></ruby>” 按钮，点击它。


![](/data/attachment/album/202203/27/094814wk0iaim6v0bm1az8.png)


你将回到 Fedora 临场会话期间。单击右上角的下拉菜单并选择 “<ruby> 重新启动 <rt>  Restart </rt></ruby>” 。


![](/data/attachment/album/202203/27/094817ehvv1f1e3wmo6ow3.jpg)


现在，当系统启动时，你应该会看到带有启动到 Fedora 和 Windows 选项的 [Grub 启动器](https://itsfoss.com/what-is-grub/)。


![](/data/attachment/album/202203/27/094745c3nny46lvxq8nlhk.jpg)


#### 步骤 5: 完成 Fedora 安装


至此你几乎完成了安装。你注意到 Fedora 没有要求你输入用户名和密码了吗？很多发行版（像 Ubuntu ）在安装期间会要求你创建一个管理用户。作为另一种方式，Fedora 会在你第一次登录到所安装的系统时给予你这个选项。


当你第一次登录时，它会运行一次设置，并创建用户名和密码来作为这次初始化设置的一部分。


![](/data/attachment/album/202203/27/094820x349pc0juhgk0cwn.png)


![](/data/attachment/album/202203/27/094822ngt94elt609i7wo1.png)


![](/data/attachment/album/202203/27/094824nulg510gx1ngff95.png)


在你完成后，你已经用上 Fedora Linux 了。


![](/data/attachment/album/202203/27/094825xt3k4x3wc2ccqc3s.jpg)


就这样，你可以在同一个硬件系统上以双启动的模式来享受 Fedora Linux 和 Windows 。


如果你在学习这篇教程时有一些问题或者你正在面对一些重大难题，请在评论系统中告诉我。




---


via: <https://itsfoss.com/dual-boot-fedora-windows/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[robsean](https://github.com/robsean) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

Dual booting Linux and Windows is one of the popular ways to enjoy the full potential of the two operating systems. You have both Linux and Windows installed on the same system and you can choose which one to use after starting your system.

![dual boot grub screen fedora windows](https://itsfoss.com/content/images/wordpress/2021/07/dual-boot-grub-screen-fedora-windows.jpg)

If you have a system with Windows installed already, you’ll learn how to install Fedora alongside Windows in this tutorial.

## Installing Fedora alongside Windows

The tutorial has been performed on a system with Windows already installed, GPT partitioning and UEFI boot. It should be applicable to other systems with MBR partitioning and legacy BIOS system as well, but I cannot confirm that.

Note: If your Windows system uses BitLocker encryption, it will be a good idea to disable it first before you go on installing Fedora.

### Requirements

Here’s what you’ll need to follow this tutorial:

- A system preinstalled with Windows
- Good speed internet connection
- A USB key (pen drive) with at least 4 GB in size
- Optional: External USB disk for making back up of your existing data on Windows.
- Optional: Windows recovery or bootable disk (if you encounter any major boot issues, you can fix with it).

Let’s see the steps.

### Step 1: Make a backup of data on your Windows system [optional]

Backup is always a good idea. You will be dealing with the disk partitions. In the rare unfortunate case, if you make a mistake and delete the wrong partition, you’ll lose your data.

The simplest way would to be to copy the data in Documents, Videos, Music, Pictures and other folders to an external USB disk. You can use an external HDD (slower but cheaper) or SSD (faster but expensive) and copy the important files and folders on it.

### Step 2: Make some free space for Fedora installation

You need to create a partition where you’ll be installing Fedora. If you just have C drive, shrink it. If you have D, E or F drive, see if you can move their data to some other partition and delete or shrink one of them. Anything above 40 GB should be comfortable enough space for Fedora.

In the Windows menu, search for ‘disk partitions’ and go to ‘Create and format hard disk partitions’.

![disc management windows](https://itsfoss.com/content/images/wordpress/2021/03/disc-management-windows-800x561.png)

In the Disk Management tool, right-click on the drive which you want to partition and select **shrink volume**.

If you have just one partition like this, you need to make some free space out of it for Linux. If you have several partitions of considerable size, use any of them except C drive because it may erase the data.

![making free space for dual boot](https://itsfoss.com/content/images/wordpress/2021/04/making-free-space-for-dual-boot.jpg)

### Step 3: Making a live USB of Fedora in Windows

Now, this can be done in different ways. You can download the ISO and [use Etcher](https://itsfoss.com/install-etcher-linux/) or Rufus or some other tool to write the ISO image to the USB disk.

However, Fedora provides a dedicated tool for downloading and making live USB. I am going to use that in this tutorial. The Fedora team put some effort in creating this tool, so why not use it.

But first, **plug in the USB key**. Now, go to the download page of Fedora:

You’ll see the option to download the Fedora Media Writer tool for Windows.

![download fedora media writer tool](https://itsfoss.com/content/images/wordpress/2021/07/download-fedora-media-writer-tool-800x373.png)

It will download an exe file. Once downloaded, go to your downloads folder and double-click the FedoraMediaWriter exe file to install the Fedora Media Writer tool. Just keep on hitting next.

![installing fedora media writer tool windows](https://itsfoss.com/content/images/wordpress/2021/07/installing-Fedora-Media-Writer-tool-Windows.png)

Once installed, run the Fedora Media Writer tool. But before that, **make sure that you have plugged in the USB**.

It will give you the option to install various editions of Fedora. For desktops, go with Workstation.

![Downloading and installing Fedora](https://itsfoss.com/content/images/wordpress/2021/07/fedora-media-writer-1-800x425.png)

On the next screen, you’ll get the option to create live USB. When you hit that button, it starts downloading the ISO. It will also recognize your inserted USB key.

You need to have a good speed internet connection to download the 2 GB of ISO in a comfortable time span.

![Downloading Fedora with Fedora Media Writer](https://itsfoss.com/content/images/wordpress/2021/07/fedora-media-writer-2-800x422.jpg)

After downloading the ISO, it checks the download automatically and then gives you the option to write the ISO image to the USB disk, i.e. create the live USB. Hit the “Write to Disk” button.

![writing fedora iso to usb with fedora media writer tool](https://itsfoss.com/content/images/wordpress/2021/07/writing-fedora-iso-to-usb-with-Fedora-Media-Writer-Tool-800x285.png)

It will take a couple of minutes to complete the process. It displays “Finished” message and you can close the Fedora Media Writer tool now.

![fedoa live usb with fedora media writer](https://itsfoss.com/content/images/wordpress/2021/07/fedoa-live-usb-with-fedora-media-writer-800x300.png)

Good! So now you have the Fedora live USB ready with you. Time to use it for installing Fedora with Windows.

### Step 4: Boot from live USB and install Fedora

Some systems do not allow you to boot from live USB with secure boot. If that’s the case with you, please [disable secure boot](https://itsfoss.com/disable-secure-boot-windows/).

At the screen that shows the logo of your system manufacturer, press the **F2 or F10 or F12** key. You may try pressing all of them one by one if you are not sure of the key. But **be quick** when you do that otherwise it will boot into the operating system.

This key is different for different brand of computers. Some may even use **Esc** or **Del** keys for this purpose.

![acer predator boot](https://itsfoss.com/content/images/wordpress/2021/04/acer-predator-boot.jpg?resize=800%2C600&ssl=1)

In some rare cases, you may have to [access the UEFI boot settings from within Windows](https://itsfoss.com/access-uefi-settings-windows-10/).

In the BIOS settings, normally, you should see a screen like this. Here, you use the arrow keys to move down to USB option and press enter to boot from the USB. Please note that the screen may look different in different systems.

![select boot from live usb](https://itsfoss.com/content/images/wordpress/2021/06/select-boot-from-live-usb-800x330.jpg)

If things go right, you should see a screen like below. **Go with the first option “Start Fedora Workstation”:**

![fedora live screen](https://itsfoss.com/content/images/wordpress/2021/07/fedora-live-screen.jpg)

After some seconds, you should boot into the live Fedora session and see the option to try or install it. Go with “Install to Hard Drive”.

![fedora install screen](https://itsfoss.com/content/images/wordpress/2021/07/Fedora-install-screen-800x450.jpg)

It will ask to choose the language of choice for the installation process.

![installing fedora Linux](https://itsfoss.com/content/images/wordpress/2021/07/installing-fedora-1-800x450.png)

The next screen is important. If you had created the free space in the step 2, you should be able to hit on the “Begin Installation”. If you see an exclamation mark on the disk icon under System, click on it and see what kind of disk configuration you can use here.

If you have more than one disk, you can choose which disk to use for Fedora.

![Choosing the disk to install Fedora](https://itsfoss.com/content/images/wordpress/2021/07/installing-fedora-2-800x450.png)

Select the disk and click on Done. You may see a warning message now. In my case, I did not create free space in the step 2 and hence it complained that there is not enough free space to install Fedora.

![Making free disk space to install Fedora](https://itsfoss.com/content/images/wordpress/2021/07/installing-fedora-3-800x450.png)

I clicked on reclaim space and shrank the Windows partition here.

![Installing Fedora alongside Windows on the same disk by shrinking Windows partition](https://itsfoss.com/content/images/wordpress/2021/07/installing-fedora-4-800x450.png)

After this, the “Begin Installation” option appeared to start the installation.

![Begin Fedora installation](https://itsfoss.com/content/images/wordpress/2021/07/installing-fedora-5-800x450.png)

Now it’s just a waiting game. It will take a few minutes to extract files and install them.

![Installing Fedora](https://itsfoss.com/content/images/wordpress/2021/07/installing-fedora-6-800x450.png)

When the process completes, you’ll see the “Finish Installation” button. Hit it.

![Finishing Fedora installation](https://itsfoss.com/content/images/wordpress/2021/07/installing-fedora-7-800x450.png)

You’ll be back to Fedora live session. Click the top right corner to bring down the menu and select Restart.

![restart gnome fedora](https://itsfoss.com/content/images/wordpress/2021/07/restart-gnome-fedora.jpg)

When the system starts now, you should see the [Grub bootloader](https://itsfoss.com/what-is-grub/) screen with option to boot into Fedora and Windows.

![dual boot grub screen fedora windows](https://itsfoss.com/content/images/wordpress/2021/07/dual-boot-grub-screen-fedora-windows.jpg)

### Step 5: Complete Fedora setup

You are almost there. Did you notice that Fedora didn’t ask you to enter username and password? Many distributions like Ubuntu ask you to create an admin user during the installation itself. On the other hand, Fedora gives you this option when you log in to the installed system for the first time.

When you first log in, it runs a setup and creation of user and password is part of this initial setup.

![fedora setup](https://itsfoss.com/content/images/wordpress/2021/07/fedora-setup-1-800x575.png)

Once you do that, you are ready to enjoy Fedora Linux.

![fedora setup completed](https://itsfoss.com/content/images/wordpress/2021/07/fedora-setup-completed.jpg)

That’s it. You can enjoy Fedora Linux and Windows in dual boot mode on the same system.

If you have any questions or if you are facing any issues while following this tutorial, please let me know in the comment system.