Minimal BASH-like line editing is supported... in Dual Boot with W10

I have 5 disks, I would like to have W10 in one disk and Zorin in another one. 1 disk I'll use with Windows, another with Zorin and the last one will be a backup (would like to use with both OS).

I already had W10 installed, and I followed this video to install Zorin OS: [https://www.youtube.com/watch?v=6D6L9Wml1oY&pp=ygUaZHVhbCBib290IHdpbmRvd3MgZSB1YnVudHU%3D](https://Como fazer DUAL BOOT com Windows 10 e Linux - Tutorial FÁCIL - 2021)
*Video in Portuguese-BR, sorry :disappointed:

When I reboot my PC after the update installation for Zorin an "error" appeared: "Minimal BASH-like line editing is supported..."

I read a lot of forums posts about this, but I'm afraid to do something wrong when "break" my OS.
There was an something about EFI system in a post, in that case the EFI system was in the Linux disk. But mine is in the Windows disk.


*Infos in the picture in Portuguese-BR, sorry :disappointed:

When the "error" appears, I executed ls to show the disks and partitions, but it only showed the Windows OS disk, so I checked /boot/efi/EFI/ubuntu/grub.cfg and the UUID from this archive is different from the sda(hd0) that shows in the "error".

What should I do to repair this?

See if this tutorial guide I found helps you:

[Fixed] Minimal Bash-Like Line Editing Is Supported Grub Error in Ubuntu Linux

By Aadesh / March 26, 2022

You probably have encountered, 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 error in Grub if you dual boot Windows and Linux and have recently updated Windows.

Windows updates have a history of corrupting the boot files or partition of the Linux installations. You can encounter this error in any Linux based OS. But don’t worry, there’s an easy fix for this error.

Prerequisites to Fix This Error

You will need the following things to get started :

  1. Live USB stick of the same Linux Distribution
  2. An Internet connection (Ethernet or Wi-Fi)

If you do not have a Live USB stick, you can create one by following the steps mentioned here.

Solution #1 – Minimal BASH-like line editing is supported Grub error in Ubuntu Linux

Boot into the live USB stick of your distribution, now follow these steps carefully:

1. Check if your system uses EFI or BIOS

From the command line interface, type the following command to list your partitions and to check the type of your filesystem:

sudo fdisk -l

image

If anywhere, you spot something like ‘EFI’ then that means your system is of EFI type. Most of you probably have this type of installation.

2. For UEFI based systems

We are now going to mount our root (/) partition, in my case, it is /dev/sda2, but yours can be different. Look closely at your fdisk command output to know your root partition, and then mount it using this command :

sudo mount /dev/sdaX /mnt

Now, we will mount our EFI partition as well. To do that, type :

sudo mount /dev/sdaY /mnt/boot/efi

Again, don’t forget to change X and Y with the correct partition numbers on your disk. Finally, reinstall grub using the following commands :

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

And now finally, restart your system by typing the following commands in the terminal and remove your Live USB stick when prompted.

shutdown -r now

3. For BIOS systems

We will again mount our root partition using the following commands :

sudo mount /dev/sdaX /mnt

And then we will easily re-install GRUB using the following commands :

sudo grub-install /dev/sdX

Reboot your system now and remove the installation media when prompted. Your system should work fine now.

Solution #2 – Minimal BASH-like line editing is supported error in Ubuntu Linux

If the above method didn’t work for you to fix the Grub error in Ubuntu based Linux systems, then you can try installing a tool called ‘Boot Repair’. This tool is capable of detecting and fixing all the GRUB-related problems for you. You will also need a live USB stick of the distribution for this method.

1. Launch Boot Repair tool

Boot into your live USB stick, and in the menu search bar, search for Boot Repair.

2. Repair your installation

Launch the boot repair tool.

A window will appear before you, click on the ‘Recommended Repair’ option.

image

It will take some time, but after that, it will present you with some commands to fix the issue. Copy (or type) the commands one by one in the Terminal.

image

If while typing the commands a window appears, select yes and remove the old GRUB files. Once the process is finished, You will be greeted with a menu which will tell you to restart your system. You can also check the log files mentioned in the URL. Don’t forget to remove your installation media when prompted.

Summary

If while typing the commands a window appears, select yes and remove the old GRUB files. Once the process is finished, You will be greeted with a menu which will tell you to restart your system. You can also check the log files mentioned in the URL. Don’t forget to remove your installation media when prompted.

Also Read

Arch Wiki – Grub Troubleshooting

Already try that, it didn't work

I think personally the best way to progress this issue is to remove your Windows drive and the Data Drive and do a fresh install of Zorin on the drive you wish to install it on. It is what I usually do before installing a new OS to play safe.

Pessoalmente, acho que a melhor maneira de resolver esse problema é remover a unidade do Windows e a unidade de dados e fazer uma nova instalação do Zorin na unidade em que você deseja instalá-lo. É o que costumo fazer antes de instalar um novo sistema operacional para garantir a segurança. É o que costumo fazer antes de instalar um novo sistema operacional, por segurança.

I have this same issue too. I haven't been able to fix it, but I can still access the Linux partition by using these commands:

grub> set prefix(hd0,"root partition number [ex. 4]")/boot/grub
grub> normal

You can get the root partition number by going into Disks, clicking the Filesystem partition, and looking at the number at the end of the /dev/sda# line located in the Devices section.

I have been able to repair GRUB using the guide that swarfendor437 has posted. Instead of using your Live USB, do it on the partition on which Zorin has been installed. Be sure to back up your data before doing this though.

Consegui reparar o GRUB usando o guia postado por swarfendor437. Em vez de usar o Live USB, faça-o na partição onde o Zorin foi instalado. Certifique-se de fazer backup de seus dados antes de fazer isso.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.