如何将 Windows 10 添加到 grub 引导加载程序?

16 linux boot mbr grub windows-10

  1. 我已经安装了 Windows 10
  2. 我已经安装了 Linux Mint Silvia 并且我选择了一个用于引导加载程序安装的设备 - sda。
  3. 系统启动时grub菜单中没有Windows 10
  4. 我已经通过 Linux Mint live USB 启动了。
  5. 我一步一步做https://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd
  6. 但在 grub 菜单中仍然没有 Windows 10
  7. 我已通过实时 Windows 10 USB 启动。
  8. 使用恢复工具,我选择了命令行
  9. 我已经通过控制台命令 bootrec /FixMbr 修复了 Mbr
  10. 好的,Windows 10 正在加载,因为没有 Grub。
  11. 我重复了第 4 步和第 5 步
  12. 没有结果

另外,我尝试使用此答案更改 grub 配置 https://askubuntu.com/questions/661947/add-windows-10-to-grub-os-list#answer-977251 - 但在这种情况下,有 Windows 10 - 但是当我选择时 - 我会递归地去 grub

有了这个答案 https://askubuntu.com/questions/661947/add-windows-10-to-grub-os-list#answer-890562 我在选择 Windows 10 时收到一条错误消息 - 没有 bootmgr 目录

感谢@Kinnectus 的帮助

另外,我试过

sudo os-prober
Run Code Online (Sandbox Code Playgroud)

并得到

/dev/sda1:FreeDOS:FreeDOS:chain
/dev/sda2:FreeDOS:FreeDOS1:chain
Run Code Online (Sandbox Code Playgroud)

然后我试过了

sudo update-grub
Run Code Online (Sandbox Code Playgroud)

并得到

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.10.0-38-generic
Found initrd image: /boot/initrd.img-4.10.0-38-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found FreeDOS on /dev/sda1
Found FreeDOS on /dev/sda2
done
Run Code Online (Sandbox Code Playgroud)

不幸的是 - grub 菜单中没有 Windows 10

另外,我有 fdisk 输出。

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048  16779263  16777216     8G  c W95 FAT32 (LBA)
/dev/sda2  *     16779264  33556479  16777216     8G  c W95 FAT32 (LBA)
/dev/sda3        33556480 770219115 736662636 351,3G  7 HPFS/NTFS/exFAT
/dev/sda4       770220030 976771071 206551042  98,5G  5 Extended
/dev/sda5       770220032 976771071 206551040  98,5G 83 Linux

Partition 4 does not start on physical sector boundary.
Run Code Online (Sandbox Code Playgroud)

有一个问题。也许问题出在这个问题上?

请帮助我,我一整天都在坚持这个。我完全不知道,我做错了什么。

Kin*_*tus 22

  1. 引导到您的 Linux
  2. 打开终端窗口
  3. 类型: sudo os-prober
  4. 如果结果确定安装了 Windows 10,请键入sudo update-grubwhich 将更新 GRUB 条目并添加它
  5. 重新启动计算机并测试 Windows 10 是否是一个新选项。
  6. 教学结束。

  • os-prober IDs另一个操作系统,但不是Windows,但分区在那里,不受干扰。我可以做什么来启动 Windows?我相信问题是 Windows 处于休眠状态,但如果我无法登录,如何取消休眠? (3认同)