OS-Ubuntu-Grub-开机后引导丢失

OS-Ubuntu-Grub-开机后引导丢失

现象

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>

解决方案

  1. ls:显示分区
  2. set:显示当前grub设置
  • prefix=(hd0,gpt1)/boot/grub/grub.cfg
  • root=hd0,gpt1
  1. search -f /boot/grub:搜索grub位置
  2. set prefix=xx;set root=xx:重置grub
  3. set:查看配置
  4. insmod normal:载入normal模组
  5. normal:激活normal模组
  6. update-grub
  7. grub-install /dev/sda:更新grub,写入指定硬盘
posted @ 2025-04-29 20:35  Theseus‘Ship  阅读(52)  评论(0)    收藏  举报
Live2D