use*_*065 76 boot grub2 dual-boot windows-7 grubrescue
删除 Ubuntu 分区后,我重新启动了计算机,但只收到提示:
grub rescue >
Run Code Online (Sandbox Code Playgroud)
命令ls列表
(hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)
Run Code Online (Sandbox Code Playgroud)
我一一检查:
ls (hd0,msdos5)/
ls (hd0,msdos1)/
Run Code Online (Sandbox Code Playgroud)
但我找不到正确的分区。
小智 111
尝试以下..
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
Run Code Online (Sandbox Code Playgroud)
对于永久修复,在成功启动后运行以下命令:
sudo update-grub
sudo grub-install /dev/sdX
Run Code Online (Sandbox Code Playgroud)
/dev/sdX你的启动驱动器在哪里。
小智 38
要删除 GRUB,只需从另一台 PC 下载 Windows 8 或 10。使用 Rufus 将 iso 刻录到 USB 中。从 USB 启动,单击故障排除,然后单击命令提示符,然后键入:
Bootrec /fixmbr
Run Code Online (Sandbox Code Playgroud)
Windows 将在没有 Ubuntu 的 GRUB 的情况下正常启动。您可以再次重新安装 Ubuntu。
小智 6
在 Ubuntu live-CD 或 live-USB 上启动您的计算机
然后按照第2 个选项部分进行操作:从此链接在 Ubuntu 中安装引导修复:
https://help.ubuntu.com/community/Boot-Repair
| 归档时间: |
|
| 查看次数: |
884994 次 |
| 最近记录: |