0% found this document useful (0 votes)
22 views5 pages

Fix Minimal BASH Like Line Editing Is Supported GRUB Error in Linux - It's FOSS

Uploaded by

Redviper 5.56
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
22 views5 pages

Fix Minimal BASH Like Line Editing Is Supported GRUB Error in Linux - It's FOSS

Uploaded by

Redviper 5.56
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 5

10/26/22, 4:38 PM Fix Minimal BASH like line editing is supported GRUB Error In Linux - It's FOSS

LINUX | TUTORIAL

Fix Minimal BASH like line editing is


supported GRUB Error In Linux
By Abhishek Prakash Updated on March 4, 2020 175 Comments Reading Time: 5 minutes

The other day when I installed Elementary OS in dual boot with Windows, I
encountered a Grub error at the reboot time. I was presented with command line
with error message:

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.

https://itsfoss.com/fix-minimal-bash-line-editing-supported-grub-error-linux/?fbclid=IwAR1cibMYTjLAieBrtaRUdJSSkLkjvh3hBVo31eOxLYx0tTqmbgB… 1/12
10/26/22, 4:38 PM Fix Minimal BASH like line editing is supported GRUB Error In Linux - It's FOSS

Indeed this is not an error specific to Elementary OS. It is a common Grub error
that could occur with any Linux OS be it Ubuntu, Fedora, Linux Mint etc.

In this post we shall see how to fix this “minimal BASH like line editing is
supported” Grub error in Ubuntu based Linux systems.

You can read this tutorial to fix similar and more frequent issue, error: no such
partition grub rescue in Linux

Prerequisites
To fix this issue, you would need the followings:

A live USB or disk of (preferably) the same Linux distribution


https://itsfoss.com/fix-minimal-bash-line-editing-supported-grub-error-linux/?fbclid=IwAR1cibMYTjLAieBrtaRUdJSSkLkjvh3hBVo31eOxLYx0tTqmbgB… 2/12
10/26/22, 4:38 PM Fix Minimal BASH like line editing is supported GRUB Error In Linux - It's FOSS

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:

sudo fdisk -l

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.

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

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.

https://itsfoss.com/fix-minimal-bash-line-editing-supported-grub-error-linux/?fbclid=IwAR1cibMYTjLAieBrtaRUdJSSkLkjvh3hBVo31eOxLYx0tTqmbgB… 3/12
10/26/22, 4:38 PM Fix Minimal BASH like line editing is supported GRUB Error In Linux - It's FOSS

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:

sudo mount /dev/sda2 /mnt

If you have EFI system, mount that partition as well:

sudo mount /dev/sda1 /mnt/boot/efi

Now, the next step is to finally install grub for UEFI system like this:

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:

shutdown -r now

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:

sudo mount /dev/sda1 /mnt

https://itsfoss.com/fix-minimal-bash-line-editing-supported-grub-error-linux/?fbclid=IwAR1cibMYTjLAieBrtaRUdJSSkLkjvh3hBVo31eOxLYx0tTqmbgB… 4/12
10/26/22, 4:38 PM Fix Minimal BASH like line editing is supported GRUB Error In Linux - It's FOSS

And then install grub:

sudo grub-install /dev/sd1

Reboot and it should be fine.

Alternate method to fix this “minimal BASH like line


editing is supported” Grub error in Ubuntu based
Linux
I know that you might point out that this Grub error is not exclusive to Ubuntu or
Ubuntu based Linux distributions, then why am I putting emphasis on the world
Ubuntu? The reason is, here we will take an easy way out and use a tool called
Boot Repair to fix our problem. I am not sure if this tool is available for other
distributions like Fedora. Without wasting anymore time, let’s see how to
solve minimal BASH like line editing is supported Grub error.

Step 1: Boot in lives session


Plug in the live USB and boot in to the live session.

Step 2: Install Boot Repair


Once you are in the lives session, open the terminal and use the following
commands to install Boot Repair:

sudo add-apt-repository ppa:yannubuntu/boot-repair


sudo apt-get update
sudo apt-get install boot-repair

https://itsfoss.com/fix-minimal-bash-line-editing-supported-grub-error-linux/?fbclid=IwAR1cibMYTjLAieBrtaRUdJSSkLkjvh3hBVo31eOxLYx0tTqmbgB… 5/12

You might also like