如何摆脱grub并恢复我的Windows? [英] How to get rid of grub and restore my windows back?

查看:126
本文介绍了如何摆脱grub并恢复我的Windows?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows 8.1和Ubuntu双重启动笔记本电脑,我想删除Ubuntu,因此我在磁盘管理中删除了这些驱动器,还恢复了USB上的Windows.当我重新启动时,我得到了最小的bash支持,例如行编辑和提示grub.我希望我的Windows 8.1回来,有人可以帮我吗?

I am dual booting my laptop with Windows 8.1 and Ubuntu, I wanted to remove Ubuntu so i have deleted those drives in disk management and also took recovery of windows on USB. As I restarted I got Minimal bash like line editing is supported and a prompt grub. I want my windows 8.1 back, can anyone please help me?

推荐答案

此答案适用于那些使用UEFI且在删除grub之前已删除Ubuntu分区的人

您将在Windows 10中执行此操作.不需要可启动媒体.

You will be doing this from Windows 10. No bootable media required.

bootrec /fixmbrbootsect /nt60和带有boot-repair建议的Ubuntu失败的地方,这对我有用:

Where bootrec /fixmbr, bootsect /nt60 and the Ubuntu live with the boot-repair suggestions have failed, this has worked for me:

(此答案从

  • 以管理员权限运行cmd.exe进程
  • 运行diskpart
  • 键入:list disk然后是sel disk X,其中X是启动文件所在的驱动器
  • 键入list vol以查看磁盘上的所有分区(卷)
  • 通过键入以下内容来选择EFI卷:sel vol Y其中Y是SYSTEM卷(这几乎总是EFI分区)
  • 为方便起见,请键入以下内容来分配驱动器号:assign letter=Z:其中Z是一个空闲(未使用)驱动器号
  • 键入exit保留磁盘部分
  • 仍然在cmd提示符下,键入:Z:并按Enter键,其中Z是您刚创建的驱动器号.
  • 键入dir列出此已挂载EFI分区上的目录
  • 如果在正确的位置,应该会看到一个名为EFI
  • 的目录.
  • 键入cd EFI,然后键入dir,以列出EFI
  • 中的子目录.
  • 键入rmdir /S ubuntu删除ubuntu引导目录
    1. Run a cmd.exe process with administrator privileges
    2. Run diskpart
    3. Type: list disk then sel disk X where X is the drive your boot files reside on
    4. Type list vol to see all partitions (volumes) on the disk
    5. Select the EFI volume by typing: sel vol Y where Y is the SYSTEM volume (this is almost always the EFI partition)
    6. For convenience, assign a drive letter by typing: assign letter=Z: where Z is a free (unused) drive letter
    7. Type exit to leave disk part
    8. While still in the cmd prompt, type: Z: and hit enter, where Z was the drive letter you just created.
    9. Type dir to list directories on this mounted EFI partition
    10. If you are in the right place, you should see a directory called EFI
    11. Type cd EFI and then dir to list the child directories inside EFI
    12. Type rmdir /S ubuntu to delete the ubuntu boot directory

    假设您只有两个操作系统(Win 10和Ubuntu),您现在应该能够直接启动到Windows,而不会出现黑屏.

    Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.

    这篇关于如何摆脱grub并恢复我的Windows?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆