# Windows 11 + Linux 双系统：UEFI、分区、GRUB 与 BitLocker

> 规划 Windows 11 与 Linux 的 UEFI 双系统：未分配空间、共享 ESP、Fast Startup、BitLocker、GRUB 与恢复。

**测试环境**

- 版本号: 26300.9457
- 版本: Pro (26H2)
- 架构: x64
- 证据: E1
- 核验日期: 2026-10-28

## 一句话结论

可靠的双系统，大部分工作是在准备：

1. **只用 UEFI。** 两个系统都必须 UEFI 启动。
2. **备份并保存 BitLocker 密钥。** 重新分区可能触发恢复。
3. **从 Windows 里压缩分区**，不要用 Linux 工具动 Windows 分区。
4. **关掉 Fast Startup**（和休眠）再改启动顺序。
5. **共享现有 ESP**；同一块盘不要建第二个 ESP。
6. **先装 Windows，再装 Linux**，让 GRUB 能找到 Windows。
7. **在需要之前测试两个系统都能启动。**

## 开始之前

| 项目 | 为什么 |
|---|---|
| 完整镜像或文件备份 | 分区和 bootloader 改动是破坏性的 |
| BitLocker 恢复密钥 | 固件/TPM 变化可能触发恢复 |
| Windows 安装 U 盘 | GRUB 出问题时修启动管理器 |
| Linux U 盘 | 发行版的 live 环境就是救援工具 |
| 未分配空间 | 在磁盘管理里压缩 C:；留 50–100GB+ |
| Secure Boot 方案 | 部分发行版需要 MOK 注册或 shim |

## 第 1 步：准备 Windows

1. 更新 Windows，记录 build。
2. 关闭 **Fast Startup**：`powercfg /h off`（同时移除休眠）。
3. 保存 BitLocker 密钥。要改固件时，先挂起一次重启：
   `manage-bde -protectors -disable C: -RebootCount 1`
4. 在**磁盘管理**里压缩 Windows 分区，留下未分配空间。不要在这里创建 Linux 文件系统。
5. 重启，确认 Windows 还能启动，再装 Linux。

## 第 2 步：安装 Linux

用 UEFI 模式启动 Linux U 盘，选择“与 Windows 一起安装”或手动分区：

| 分区 | 大小 | 格式 | 挂载 |
|---|---|---|---|
| ESP | 现有 | FAT32 | `/boot/efi`（共享时不要格式化） |
| 根 | 40–80GB | ext4/btrfs | `/` |
| Home | 剩余 | ext4/btrfs | `/home` |
| Swap | 可选 | swap/zram | 看内存/休眠需求 |

**不要**格式化现有 ESP。Linux 安装器应该复用它。如果它坚持新建 ESP，停下，修正安装器的启动模式。

## 第 3 步：启动与修复

安装后 GRUB 应列出 Windows 和 Linux。Windows 不见了：

- 启动 Windows U 盘 → **修复计算机** → **启动修复**；
- 或在 Linux 里运行 `update-grub`（Debian/Ubuntu）/ `grub-mkconfig -o /boot/grub/grub.cfg`；
- 检查 `EFI/Microsoft/Boot/` 下的 Windows EFI 文件是否还在。

Windows 能启动但 Linux 不能，用 Linux live U 盘 chroot 重装 GRUB。做好笔记；这一步最容易被跳过。

## BitLocker 与 Secure Boot

- **BitLocker：** 双系统不要求永久关闭，但固件/启动变化可能触发恢复。保存密钥，只在改动窗口挂起。
- **Secure Boot：** 很多发行版带签名 shim；有些需要 MOK 注册。关掉 Secure Boot，Windows 11 仍能跑，但机器不再处于验证配置。
- **Linux 访问 NTFS：** 默认只读更安全。不要在没有专门工具和备份的情况下，从 Linux 读写 BitLocker 卷。

## 恢复计划

- 保留 Windows U 盘和 Linux U 盘。
- 知道怎么进固件启动菜单。
- 在机器之外保留一份笔记。
- 测试：启动 Windows、启动 Linux、再启动 Windows。只成功一次的双系统不算验证。

> **警告: 不要和 Windows 共用一个 /home**
>
> 两个系统都要用的文件，放独立的 NTFS/exFAT 数据分区。不要把 Linux `/home` 指向 NTFS 的 Windows 用户目录。

## 来源

- [Microsoft — UEFI/GPT 分区](https://learn.microsoft.com/zh-cn/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions)
- [Microsoft — BitLocker](https://learn.microsoft.com/zh-cn/windows/security/operating-system-security/data-protection/bitlocker/)
- [Ubuntu — 与 Windows 一起安装 Ubuntu](https://ubuntu.com/tutorials/install-ubuntu-desktop)

---

来源页面: https://winbook.fyi/zh/windows/install/dual-boot/
