双启动 Windows 10 + Kali

双启动 Windows 10 + Kali

我的电脑上安装了两个操作系统,Windows 10 和 Kali Linux。问题是它们位于不同的引导加载程序和不同的硬盘上。我希望能够将其中一个操作系统添加到另一个引导加载程序中,以便我可以从同一个引导加载程序启动这两个操作系统。

我尝试过

1) 在 Windows 10 上使用 EasyBCD,会出现此消息并阻止我添加 Linux 条目。

在此处输入图片描述

2)使用update-grubgrub-install /dev/sbd4(sbd4 上有 Win10)

update-grub即使os-prober事先运行,也无法检测 Windows 10 并添加它。

打印grub-install /dev/sbd4以下输出

Installing for i386-pc platform.
grub-install: warning: File system `nfts` doesn't support embedding.
grub-install: error: embedding is not possible, but this is required for cross-disk install

/etc/grub.d/40_custom3)像这样手动输入

menuentry 'Windows 10' {
set root='(hd1, msdos4)'
chainloader +1
}

update-grub运行时产生以下输出

Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.6.0-kali1-amd64
Found initrd image: /boot/initrd.img-4.6.0-kali1-amd64
error: out of memory.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 203
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done

我不知道还能做什么/尝试让操作系统使用相同的引导加载程序。任何帮助都将不胜感激

相关内容