Prerequisites
To fix this issue, you would need the followings:
- A live USB or disk of (preferably) the same Linux distribution
- A working internet connection in the live session
Once you make sure that you have the prerequisites, let’s see how to fix the black screen of death for Linux (if I can call it that
).
Fixing “minimal BASH like line editing is supported” Grub error
The process is simple if you follow the steps carefully (not blindly). You may have to change the partition names as per your system.
Step 1: Boot in to the live Linux USB.
Step 2: You need to find out iif your system uses EFI or BIOS. To do that, open the terminal and use the following command to list your partitions:
Look closely in its output because it could be a huge output. If you see something like EFI, it’s an indication that your system has EFI. This information is important in later stages.
You need to note two things here. The partition where EFI is installed (if it is installed) and the partition where root partition is installed.
Step 3 (
for UEFI systems only): Now, what you need to do is to reinstall grub.
Mount the root partition first. I am using /dev/sda2 for root but you should change this with what you have on your system:
Code:
sudo mount /dev/sda2 /mnt
If you have EFI system, mount that partition as well:
Code:
sudo mount /dev/sda1 /mnt/boot/efi
Now, the next step is to finally install grub for UEFI system like this:
Code:
sudo grub-install --boot-directory=/mnt/boot --bootloader-id=ubuntu --target=x86_64-efi --efi-directory=/mnt/boot/efi
Restart Ubuntu Linux using this command:
You should have the grub back to normal.
Step 3 (only for non-EFI system): Installing grub on non-EFI system is even easier.
Mount the root partition of Linux:
Code:
sudo mount /dev/sda1 /mnt
And then install grub:
Code:
sudo grub-install /dev/sd1
Reboot and it should be fine.
NOTE: I don't know if it will work for you with live linux, I'm sharing the link to the source, read carefully and don't do anything if you're not sure what you're doing.
Source: https://itsfoss.com/fix-minimal-bash-line-editing-supported-grub-error-linux/