GNU GRUB (Stands for GNU GRand Unified Bootloader) is a boot loader package. It is a part of the GNU project. It is the reference implementation of the Free Software Foundation’s Multiboot Specification, that provides a user the choice to boot one of multiple operating systems installed on a computer. It also provides the facility to choose a specific kernel configuration available on a specific OS partition. The Minimal BASH Like Line Editing is Supported GRUB Error In Linux looks like as shown below:
Steps to Solve Minimal BASH..GRUB Error
Step 1: Find the partition in which your Linux partition is stored. We can use the ls command to check for available partitions and their filesystem. Linux operating systems usually use ext2/ext3/ext4 filesystems.
This will show us all existing partitions.
Note: If you don’t know which partition has Linux OS then you can check with the ls command as follows:
grub> ls (hdX, Y)
Here, X is disk number and Y is partition name. For Example: grub> ls (hd0, gpt3) or grub> ls (hd1, msdos5)
Step 2: After knowing the partition, set root and prefix variables:
- root: Variable which points where the entire Linux OS is installed.
- prefix: Variable which points where the GRUB is installed.
grub> set root=(hdX, Y) grub> set prefix=(hdX, Y)/boot/grub
Step 3: Install normal module and load it:
normal: Linux mod file (linux.mod) used to load kernal. Command used to install mod : insmod
grub> insmod normal
Run this mod file the setup your GRUB:
Step 4: Update GRUB. After entering your Linux OS, reinstall GRUB and update it. Open the terminal and enter following commands:
sudo grub-install /dev/sdXY sudo update-grub
Here, X is disk number and Y is partition number of EFI partition. If you don’t know which partition is an EFI partition, use Disks or GParted to check.
Restart your PC and the Minimal GRUB error will be solved!!
- Write a bash script to print a particular line from a file
- Bash shell script to find out the largest value from given command line arguments
- Useful and time saving bash commands in Linux
- Bash Script to get Low Battery Alert in Linux
- How to Fix Checksum Error Using fsck Command in Linux?
- Connecting to the Internet Using Command Line in Linux
- Kali Linux - Command Line Essentials
- Checking Disk Space in Linux Using Command-Line
- How to Download YouTube Videos in Linux Command Line?
- Linux Operating System | CLI (Command Line Interface) and GUI (Graphic User Interface)
- Fibonacci Series in Bash
- Simple Calculator in Bash
- Average of given numbers in Bash
- Bash program to find A to the power B
- How To Use Bash Shell Natively On Windows 10
- Programs for printing different patterns in Bash
- Bash program to check if the Number is a Prime or not
- Bash shell script to swap two numbers
- Sorting an array in Bash using Bubble sort
- Bash program to check if the Number is a Palindrome
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.