打开电脑出现了“GNU GRUB version 2.06”的解决步骤

5 阅读1分钟

界面显示:

GNU GRUB version 2.06

minimal bash-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions

问题原因:系统更新影响了引导程序,找不到正确的启动配置

解决方案:

  1. ls 查看系统分区
  2. 使用search命令查找存放 Windows 引导文件的那个 EFI 分区

这样操作比用ls 列举查看哪个系统分区中存放了Linux要快,因为如果Linux系统本身已经丢失或损坏,ls查看是非常低效的。

在 GRUB 命令行输入以下命令来搜索:

search --file /efi/microsoft/boot/bootmgfw.efi

命令会返回一个分区,比如 (hd0,gpt1)

  1. 执行以下GRUB命令
set root=(hd0,gpt1)
chainloader /efi/microsoft/boot/bootmgfw.efi
boot

每输入一行命令按一下回车键,执行boot后,电脑会正常启动 Windows

  1. 设置开机引导

进入 Windows 后,以管理员身份打开命令提示符,即在开始菜单搜索 cmd,右键选择“以管理员身份运行”,然后执行:

bcdboot C:\Windows

看到“已成功创建启动文件”的提示后,重启电脑。