What is GRUB bootloader?
This article will show you what a bootloader is and its role in a Linux system. In particular, this guide will focus on Grand Unified Bootloader (GRUB), a powerful and highly versatile bootloader program. But before looking at GRUB in detail, it's important to understand the boot process in Linux.
Linux boot process
The boot process on Linux is a series of activities that take place from the time you press the power button on your PC until the login screen appears.
There are 4 main stages in the operating system boot process and they happen in the following order:
1. BIOS: Short for Basic Input/Output System and is mainly responsible for loading the bootloader. When the computer boots up, it runs a Power On Self Test (POST) to make sure that core hardware like memory and hard drives are working properly. The BIOS then checks the Master Boot Record (MBR) of the main hard drive, which is the part on the hard drive where the bootloader is located.
2. Bootloader: Loads the kernel into RAM with a set of kernel parameters.
3. Kernel: The main function of the kernel is to initialize devices and memory. Then it loads the init process.
4. Init: Responsible for starting and stopping essential services on the system.
Note : BIOS is not a Linux-only process, it is a process that occurs regardless of your operating system.
What is Grand Unified Bootloader?
GRUB is primarily responsible for providing you with an options menu from which you can select the operating system or environment you want to boot into. In addition, GRUB is responsible for loading the Linux kernel.
This is what the GRUB menu option looks like. If you have installed multiple operating systems, they will be listed here.
Note : GRUB is not only limited to booting into the Linux operating system, you can also use it to boot into other operating systems like Windows.
There are two major versions of GRUB available at the time of this writing.
1. GRUB Legacy : This is the first version of GRUB and was first developed in 1995.
2. GRUB 2 : This is the latest version of GRUB used by many mainstream Linux distributions such as Manjaro, Ubuntu, Fedora and Red Hat Enterprise Linux (RHEL). GRUB 2 gives you better tools and configuration options than its predecessor.
In addition to GRUB, Linux distributions also use other bootloaders such as Linux Loader (LILO), coreboot, and SYSLINUX.
The role of GRUB
When you select the operating system to boot, GRUB will load the selected kernel. GRUB uses kernel parameters to know where it is and what other important parameters to use.
- initrd: Used to specify the initial RAM drive.
- BOOT_IMAGE: The location of the Linux kernel image.
- root: Specifies the location of the root file system. Used by the kernel to find init, from which to load important services.
- ro: Responsible for mounting the file system in read-only mode.
- quite: Hides some system-specific messages when the PC is booting.
- splash: Used to display the splash screen when your system is booting.
Once in the GRUB options menu, you can edit kernel parameters by pressing the E key on your keyboard.
Configuring GRUB Bootloader
GRUB 2 gives you a lot of flexibility and power when it comes to configuring the bootloader.
The /boot/grub directory contains a file named grub.cfg , which is the main configuration file for GRUB. However, you should not edit the grub.cfg file directly, you should edit the /etc/default/grub file instead.
When you make changes to the /etc/default/grub file , you should make sure to run the command below so that the changes are automatically written to the grub.cfg file .
sudo update-grub
You can learn more about GRUB and some of its configuration options by running the following command:
info -f grub
You should read it
- How to Lock Bootloader on Android
- How to create Hackintosh USB with Clover Bootloader
- Not only Netflix, other App Developers can also block Android from being rooted to download applications
- Instructions to fix Windows error does not boot
- 7 ways to speed up Ubuntu
- EasyBCD - Download the latest EasyBCD
- Install Android Oreo now
- Titan M chip makes Google Pixel 3 more difficult to hack, protect bootloader
May be interested
- How to fix Winload.efi is missing on Windowswinload.efi is the executable file for the computer's firmware mainly based on uefi and executes file downloading tasks into the bootloader of the computer. this article will show you how to fix winload.efi error is missing on windows.
- Can Pokemon Go be played on a computer? The answer is yes!by software emulation and additional software to support positioning, we can completely play pokemon go right on the computer, comfortable catching pokemon without worrying about running out of battery when playing as on the phone.
- Summary - How to play Pokemon GO, virtual reality game catch Pokemon on smartphonepokemon go game (styled, raising and training virtual animals) has become popular, the online community with new movements also immediately responded to this mobile game in the direction positive direction
- Things you didn't know about 26 types of Pokeball - Part 2to be able to catch pokemon, players need to use pokeball. the higher the ball, the higher the success rate of pokemon
- Stardust's effective way in Pokemon GOpokemon go stardust is used to evolve pokemom with candy. therefore, if there is more stardust, it will make the evolution easier.
- AZ word about eggs in Pokemon Gothere are many different pokemon eggs that can hatch into many pokemon, but to make these eggs hatch into pokemon, you will have to perform some tasks. each player begins with an egg incubator, which allows the user to incubate an egg after performing certain steps, gps and pedometer tracking on the mobile device of you and the game.
- Things you didn't know about 26 types of Pokéball - Part 1pokéball is the most important item in pokémon go, allowing gamers to quickly catch pokémon back to their team. the higher the pokéball, the more effective the ability to catch pokémon.
- 10 tips to help you become a great Pokemon trainerin the article below, tipsmake.com will introduce to you some tips to easily become a great trainer in this pokemon go game offline ...
- How to use GoChat application in Pokémon GOpokémon go has become a very hot phenomenon since its debut. any information or tricks related to the game are read and applied by players during the process of catching pokémon. and the gochat chat app for pokémon go players brings space to capture pokémon much more interesting.
- How to play Pokemon GO in Landscape Mode on the iPhonealthough players can play pokemon go in portrait mode. however, if you want to watch and play games on a large and eye-catching screen, players can switch to playing games in landscape mode.