我在一个已经安装了另一个Linux发行版的PC上安装了Ubuntu。在安装Ubuntu时,我选择删除之前在磁盘中写入的所有数据,因此它可能删除了其他发行版。
问题是,当我重新启动计算机时,出现了grub屏幕,并声明它无法加载Ubuntu的内核:
Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device of file completions.
grub>我使用grub>ls来了解可以从这里加载什么内容,并得到了以下结果:
(lvm/ubuntu--vg-swap_1) (lvm/ubuntu--vg-root) (hd0) (hd0,gpt2) (hd0,gpt1)我在每个文件系统上都使用了ls来检查其中一个是实际的文件系统,而(hd0,gpt1)是唯一一个没有抛出错误的文件系统:unknown filesystem。
我试着做这篇教程所说的,https://xuri.me/2013/09/03/resolve-ubuntu-error-unknown-filesystem-grub-rescue.html,但它仍然不起作用。
(hd0,gpt1)的文件树如下所示:
hd0,gpt1/
----efi/
--------ubuntu/
------------fw/
------------fwpx64.efi
------------grub.cfg
------------shimx64.efi
------------mx64.efi
------------bootx64.csv
--------boot/
------------bootx64.efi
------------fbx64.efi发布于 2018-08-22 17:46:28
您可以尝试使用以前使用的安装媒体引导到救援模式,并发出教程中的最后2个命令:
$ sudo更新-grub
$ sudo grub-install /dev/sda
https://unix.stackexchange.com/questions/464192
复制相似问题