##现象 Ubuntu系统启动后提示:
GNU GRUB version 2.02
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.
grub>
解决方案
ls:显示分区set:显示当前grub设置prefix=(hd0,gpt1)/boot/grub/grub.cfgroot=hd0,gpt1
search -f /boot/grub:搜索grub位置set prefix=xx;set root=xx:重置grubset:查看配置insmod normal:载入normal模组normal:激活normal模组- 以上命令在
grub>rescue shell 中执行;update-grub和grub-install是操作系统命令,不应在这个提示符中直接执行。 - 启动系统或 Live 环境后,在系统 shell(或已挂载系统的 chroot)中执行:
sudo update-grub sudo grub-install /dev/sda/dev/sda仅为示例,应根据实际启动磁盘和 BIOS/UEFI 模式调整。
参考:GNU GRUB rescue shell 和 Ubuntu Grub2/Installing。
AI 修改声明: 本文由 LLM 协助校对,最近修改时间:2026-09-25 02:22(UTC+08:00)。