grub rescue



  今天 我在我的ubuntu 上把我的 磁盘分区改了一下   结果开机时 无法进入系统 

屏幕上显示  grub rescue  >

 

首先  输入 grub rescue  > ls

屏幕上显示   hd0   (hd0,xx) (hd0,xx)      。。。。

  接着 输入

grub rescue > ls (hd0,xx0)/


果 屏幕  显示  unkown filesystem   说明  linux 不是安装在(hd0,xx0)中 接着 输入


grub rescue > ls  (hd0,xx1) /

依次输入  ls (hd0,xx2)/      。。。。ls  (hd0,xx3)/


如果 显示  linux  系统 的 文件 目录   中 的 /boot  则说明 grub 在  这块 硬盘中

例如 当输入

grub  rescue  > ls   (hd0,msdos10)/

grub  rescue  > .     ..    /bin  /boot  /home  /lib  
/lost+found    /media    /usr  /var     /proc   /dev      

说明  linux  安装在  (hd0,msdoa10)/ 中


假设 linux  中的 /boot  在  (hd0,,msdos10) 中 接着输入

grub rescue  >  set   root= (hd0,msdos10)

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

grub  rescue  >  insmod  normal  

grub  rescue   >  normal  

这个时候  就会 进入 启动 界面    , 经如 linux  中后 

再 执行  

sudo  update-grub 
更新 启动文件  。。。。。。

这个问题就解决好了 


    

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值