无法从 Windows 10 安装 USB 中使用 Windows 10 Bootloader 替换 GRUB Bootloader

无法从 Windows 10 安装 USB 中使用 Windows 10 Bootloader 替换 GRUB Bootloader

我曾同时安装了 Kali Linux、Ubuntu 和 Windows 7,并使用 GRUB 引导程序引导每个系统,直到我升级到 Windows 10。我以为这会覆盖引导程序,但事实并非如此。此后,我从 Windows 中删除了 Ubuntu 分区,但无法使用 Kali 分区。即使我删除了 Ubuntu 分区,GRUB 引导程序仍然有它的条目。我尝试运行 linux bootrepair 几次,但无济于事。我真的只想卸载 GRUB 引导程序并将其替换为 Windows 10 引导程序。

因此,我尝试按照以下答案的步骤进行操作此主题。但是,当我运行该命令时,bootrec.exe /fixmbr我收到一个错误,指出系统找不到指定的文件。

运行该命令bootrec.exe确实显示正确的对话框,给出命令及其应执行的操作。但是,bootrec.exe /fixboot还显示错误,指出系统找不到指定的文件。

另外,运行命令bootrec.exe /scanosbootrec.exe /rebuildbcd分别找到 0 个 Windows 安装

答案1

首次下载启动项进入下载目录。

按下 Windows 键,输入 cmd.exe,然后在结果(命令提示符)上右键单击 cmd 图标以“管理员”身份启动它,然后选择以管理员身份运行。

在新的 cmd.exe 窗口中,cd 到您的下载目录。例如 cd C:\Users\Lalu Patel\Downloads。假设您的用户名是“Lalu Patel”。

然后输入此命令。bootsect.exe /nt60 ALL /force /mbr。重新启动系统即可看到,Windows 无需 grub 即可自动加载。

然后在 Windows 中

Open the Control Panel (All Items view), and click on the Administrative Tools icon. then close the Control Panel window
Click on Computer Management in Administrative Tools, then close the Administrative Tools window.
In the left pane under Storage, click on Disk Management. see this.
Select the the partition with unknown type. it is the Ubuntu partition. Right Click -> Delete partition.
Now the former Ubuntu partition becomes an unallocated space.
Select the left partition of the new unallocated space.
Right click on the partition -> click on Extend Volume.
Click on the Next button.

Type in how many MB (1 GB = 1024 MB) you want to use from the unallocated space to extend the selected partition (step 5) into, then click on the Next button.see this.

Note: If you want to use all of the unallocated space to extend into, then type in the maximum available space shown for the unallocated space.

Click on the Finish button. You're done.

来源:引导分区、磁盘管理

相关内容