Ubuntu引导故障,报错Minimal BASH like line editing is supported GRUB Error In Linux修复


0, 用gparted压缩一下磁盘空间,装了双Linux系统之后,以前用的Ubuntu进不去系统了.

1
2
Minimal BASH like line editing is supported. For the first word, TAB lists possible command completions. anywhere else TAB lists possible device or file completions.
grub>

1, 使用U盘启动ubuntu镜像,进入系统后选择试用.

打开终端

1
2
3
4
5
6
7
8
sudo fdisk -l

# 记录下之前Ubuntu系统/目录和EFI目录
Device Start End Sectors Size Type
/dev/sda1 2048 976895 974848 476M EFI System
/dev/sda2 976896 40038399 39061504 18.6G Linux filesystem
/dev/sda3 40038400 79099903 39061504 18.6G Linux filesystem
/dev/sda4 79099904 468875263 389775360 185.9G Linux filesystem

2, 挂载记录下的分区标记

1
2
sudo mount /dev/sda2 /mnt
sudo mount /dev/sda1 /mnt/boot/efi

3, 重新安装并生成grub信息

1
sudo grub-install --boot-directory=/mnt/boot --bootloader-id=ubuntu  --target=x86_64-efi --efi-directory=/mnt/boot/efi

4, 重启系统即可正常引导

1
shutdown -r now