Grub linux minimal bash

Как исправить минимальный BASH, как редактирование строки поддерживается Ошибка GRUB в Linux?

GNU GRUB (стенды для GNU GRand Unified Bootloader) — это пакет загрузчика. Это часть проекта GNU. Это эталонная реализация спецификации мультизагрузки Free Software Foundation, которая предоставляет пользователю возможность загрузить одну из нескольких операционных систем, установленных на компьютере. Он также предоставляет возможность выбора конкретной конфигурации ядра, доступной в конкретном разделе ОС. Поддерживается минимальное редактирование строки в стиле BASH. Ошибка GRUB В Linux выглядит так, как показано ниже:

Шаги для устранения минимальной ошибки BASH..GRUB

Шаг 1: Найдите раздел, в котором хранится ваш раздел Linux. Мы можем использовать команду ls для проверки доступных разделов и их файловой системы. Операционные системы Linux обычно используют файловые системы ext2 / ext3 / ext4 .

Это покажет нам все существующие разделы.

Примечание. Если вы не знаете, в каком разделе установлена ОС Linux, выполните команду ls следующим образом:

Здесь X — номер диска, а Y — имя раздела. Например: grub> ls (hd0, gpt3) или grub> ls (hd1, msdos5)

Шаг 2: Зная раздел, установите корневые и префиксные переменные:

  • root: переменная, указывающая, где установлена вся ОС Linux.
  • префикс: переменная, которая указывает, где установлен GRUB.

Шаг 3: Установите нормальный модуль и загрузите его:

нормальный: файл мода Linux (linux.mod), используемый для загрузки ядра. Команда, используемая для установки мода: insmod

Запустите этот мод-файл для настройки вашего GRUB:

Шаг 4: Обновите GRUB. После входа в ОС Linux переустановите GRUB и обновите его. Откройте терминал и введите следующие команды:

Здесь X — номер диска, а Y — номер раздела EFI. Если вы не знаете, какой раздел является разделом EFI, используйте Disks или GParted для проверки.

Перезагрузите компьютер, и ошибка Minimal GRUB будет решена !!

Источник

Arch Linux

You are not logged in.

#1 2020-07-14 07:14:35

[SOLVED] «Minimal bash-like line editing» in GRUB when booting

My Dell Vostro 5590 has Win 10 preinstalled on it, and my target is to install Archlinux beside it.

Since I was having issue related to secure boot and RST vs AHCI, I decided to first install Ubuntu, just because it’s easier, and then supplant it with Archlinux.

So I eventually ended up with a working Ubuntu-Windows10 dual boot, and decided to proceed with Archlinux installation, following the installation guide.

I proceeded to partition the disk (I did so by using gparted from live Ubuntu, actually) without creating an additional EFI system partition; I only resized the single partition in which I had installed Ubuntu down by 16 GB and used those to create a swap partition.

Читайте также:  Создать свой desktop для windows

At this point I actually started live Archlinux and followed the guide skipping the section Partition the disks, as I’ve done as described above, and I also skipped Boot loader, as I thought that it was not needed, as GRUB was there already from the previous Ubuntu installation .

Result, upon reboot, GRUB shows

and if I enter `exit`, then Windows 10 boots just fine.

Is that skipping underlined above my mistake? In this recent post I read that a user got a similar behavior because he forgot to install a kernel. In this respect I’m pretty sure I got the following command right:

But if you tell me a missing kernel is the most likely reason for what I’m observing, I’ll try following the guide again.

This older post also seems relevant, but it also writes that

was enough to boot the installed Archlinux. In my case `/boot/vm` gets tab-completed to `/boot/vmlinuz-linux`, `root=/d` gets completed to `root=/dev/`, but hitting tab after that doesn’t complete anything (but I know the partition is named nvme0n1p4 for me too); `initrd initramfs-linux.img` gives `error: invalid file name . `.

Last edited by Enrico1989 (2020-07-14 21:32:32)

Источник

Arch Linux

You are not logged in.

#1 2017-12-08 11:19:20

[SOLVED] Grub minimal bash-like after removing ubuntu

I installed arch on my laptop with a dual boot. Other distro is ubuntu. My system had an EFI partition. Now, as I do not need it, I remove ubuntu partition and updated grub. It broke my grub.
Grub displays bash-like terminal, I can see grub version is an ubuntu one.

I can boot into my arch system doing

and in my arch I’ve tryied doing :

Here is content of EFI folder :

If I move /boot/efi/EFI/ubuntu folder, ubuntu grub does not load anymore.

Why is ubuntu grub still loaded during startup?
How can I bring back my grub to life?

Last edited by lah (2017-12-08 15:25:02)

#2 2017-12-08 11:57:19

Re: [SOLVED] Grub minimal bash-like after removing ubuntu

«UNIX is simple and coherent. » — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman

#3 2017-12-08 13:27:53

Re: [SOLVED] Grub minimal bash-like after removing ubuntu

As a workaround, I did :

Now I get my arch grub and can boot normally.
But I prefer doing a clean install.

Why isn’t arch present in efi entries?

How does the system loads GRUB into memory in UEFI case?

We have a :
/boot/grub/x86_64-efi/grub.efi

and several :
/boot/efi/EFI/some_distro/grubx64.efi

How is grub selected when several grub are present under /boot/efi/EFI/ ?

Last edited by lah (2017-12-08 13:43:01)

#4 2017-12-08 13:48:47

Re: [SOLVED] Grub minimal bash-like after removing ubuntu

The path set in the NVRAM entries is used to select which one to boot. Why it isn’t there on your system depends on how you installed it.

Last edited by V1del (2017-12-08 13:49:07)

#5 2017-12-08 14:10:35

Re: [SOLVED] Grub minimal bash-like after removing ubuntu

During arch install, before exiting chroot , I did:

After that I got a working grub, but UEFI loaded ubuntu grub.

Now, with my workaround I can boot into my new arch install, but It is still grub from /boot/efi/EFI/ubuntu that is loaded.

in my running arch install, and now I have a Boot0002* arch entry :

But, what are Boot0001*, Boot0007*, Boot0008* entries?
How can I generate a clean entry table with only arch?

Last edited by lah (2017-12-08 14:13:05)

#6 2017-12-08 14:17:08

Re: [SOLVED] Grub minimal bash-like after removing ubuntu

man efibootmgr — will tell you both, how to define the order and how to remove obsolete entries. alternatively check if your UEFI firmware has options you can set.

#7 2017-12-08 14:46:04

Re: [SOLVED] Grub minimal bash-like after removing ubuntu

I’ve tried deleting unused entries and also arch entry, after I generated a clean efi boot sequence (arch first in boot order ) calling :

Читайте также:  Composer php для windows

I also deleted /boot/efi/EFI/arch /boot/efi/EFI/ubuntu

when rebooting, grub does not load, I get a Dell (my laptop is a precision 5520) UEFI tool that checks memory. After that, I booted using a live cd and

After that, grub is loaded and loads arch.

But when running efibootmgr in my arch system, I can see an entry has been added, and my arch entry has been removed from boot order :

It seems dell tools modify efi boot options. 🙁

Last edited by lah (2017-12-08 14:49:18)

#8 2017-12-08 15:21:51

Re: [SOLVED] Grub minimal bash-like after removing ubuntu

I solved my problem.
Originally, when booting ubuntu, before grub screen I got «booting into insecure mode». So I thought UEFI was configured in insecure mode. I did not check that as described here :
https://wiki.archlinux.org/index.php/De … _9560#UEFI

After changing UEFI entries (either with grub-install or directly calling efibootmgr) to have arch grub loading arch grub was not loading and I got a dell UEFI memory check and EFI boot entries modified.
I think UEFI FW detected it was loading an unsecure system. It couldn’t load arch bootloader and loaded some recovery tools.

After checking UEFI options, I discovered secure mode was enabled. It could load ubuntu preinstalled system showing «booting into insecure mode» but it couldn’t load any arch system.
I disabled it and now I can get grub loading arch, there is no «booting into insecure mode» message.

I cannot explain how UEFI configured in secure mode could load ubuntu preinstalled system in an insecure mode (as displayed in log).

Last edited by lah (2017-12-08 15:24:29)

#9 2017-12-08 15:48:38

Re: [SOLVED] Grub minimal bash-like after removing ubuntu

I cannot explain how UEFI configured in secure mode could load ubuntu preinstalled system in an insecure mode (as displayed in log).

Ubuntu uses a signed shimx64.efi preloader to load grub. It looks like it is configured to use the insecure mode by default. In that case, secure boot verifies that shim is signed, but then shim breaks the verification chain and simply loads grub without checking the signature.

Источник

Fix Minimal BASH like line editing is supported GRUB Error In Linux

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.

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
  • 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:

Читайте также:  Скрин всего экрана mac os

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:

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

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

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:

And then install grub:

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:

Note: Follow this tutorial to fix failed to fetch cdrom apt-get update cannot be used to add new CD-ROMs error, if you encounter it while running the above command.

Step 3: Repair boot with Boot Repair

Once you installed Boot Repair, run it from the command line using the following command:

Actually things are pretty straight forward from here. You just need to follow the instructions provided by Boot Repair tool. First, click on Recommended repair option in the Boot Repair.

It will take couple of minutes for Boot Repair to analyze the problem with boot and Grub. Afterwards, it will provide you some commands to use in the command line. Copy the commands one by one in terminal. For me it showed me a screen like this:

It will do some processes after you enter these commands:

Once the process finishes, it will provide you a URL which consists of the logs of the boot repair. If your boot issue is not fixed even now, you can go to the forum or mail to the dev team and provide them the URL as a reference. Cool, isn’t it?

After the boot repair finishes successfully, shutdown your computer, remove the USB and boot again. For me it booted successfully but added two additional lines in the Grub screen. Something which was not of importance to me as I was happy to see the system booting normally again.

Did it work for you?

So this is how I fixed minimal BASH like line editing is supported Grub error in Elementary OS Freya . How about you? Did it work for you? Feel free to ask a question or drop a suggestion in the comment box below.

Like what you read? Please share it with others.

Источник

Оцените статью