关于linux开机进入grub问题的解决方法

用还是用ls (hd0,X)/grub命令查看每个盘里面的内容,

情况一 :如果你是在/boot/grub这个目录下找到的

 

grub rescue>root=(hd0,9)         

grub rescue>prefix=/boot/grub                 //grub路径设置         

grub rescue>set root=(hd0,9)         

grub rescue>set prefix=(hd0,9)/boot/grub

grub rescue>insmod normal                     //启动normal启动

grub rescue>normal

情况二 :如果你是在/grub这个目录下找到的

 

 grub rescue>root=(hd0,9)         

grub rescue>prefix=/grub                         //grub路径设置         

grub rescue>set root=(hd0,9)         

grub rescue>set prefix=(hd0,9)/grub         

grub rescue>insmod normal                   //启动normal启动

grub rescue>normal

之后你就能见到启动项了,然后进入系统。

sudo update-grub

sudo grub-install /dev/sda 

原文地址:https://www.cnblogs.com/-210843013/p/5456403.html