删除linux分区后grub,删除Ubuntu分区后GRUB救援问题!

问题描述

删除我的Ubuntu分区后,我重启了我的电脑,我只得到一个提示:

grub rescue >

命令ls列出

(hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)

我逐一检查:

ls (hd0,msdos5)/

ls (hd0,msdos1)/

但我找不到合适的分区。

最佳解决思路

试试以下..

grub rescue > ls

(hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)

grub rescue > ls (hd0,msdos1) # try to recognize which partition is this

grub rescue > ls (hd0,msdos2) # let's assume this is the linux partition

grub rescue > set root=(hd0,msdos2)

grub rescue > set prefix=(hd0,msdos2)/boot/grub # or wherever grub is installed

grub rescue > insmod normal # if this produced an error, reset root and prefix to something else ..

grub rescue > normal

对于永久性修复,请在成功引导后运行以下命令:

sudo update-grub

sudo grub-install /dev/sdX

其中/dev/sdX是您的启动驱动器。

次佳解决思路

我有同样的问题。我删除了GRUB。只需从另一台PC下载Windows 8或10即可。使用Rufus将iso刻录到USB中。从USB启动,单击疑难解答,然后单击命令提示符,然后键入:

Bootrec /fixmbr

没有Ubuntu的GRUB,Windows将正常启动。您可以再次重新安装Ubuntu。

第三种解决思路

在Ubuntu live-CD或live-USB上启动计算机

然后按照第2节选项:从这个链接在Ubuntu中安装Boot-Repair:

第四种思路

我做了同样的事情。删除了Ubuntu分区。我能够进入BIOS。

如果您有Ubuntu的可启动USB,请进入BIOS并在启动顺序中首先选择USB。重新开始。然后再次安装Ubuntu。你这次可以删除SAFELY。

参考资料

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值