Get the App
SLTechnology News&Howtos  ›  Development  › 

What is GRUB in Linux

Shulou Source: shulou.com Published: 2022-06-01 13:50:52 10月03日 Update

This article will explain in detail what GRUB is in Linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

GRUB (Grand Unified Bootloader) is the boot loader provided by the GNU project. The bootstrapper is very important because the operating system cannot be started without it. It is the first program to start when the program is opened. The boot loader transfers the control to the operating system kernel.

Use the following command to view the contents of the grub.conf file:

# vi / boot/grub/menu.lst Boot tool GRUB detail Boot tool GRUB

Parameter interpretation

1. Add a number n after default=0# default to indicate that there is a "title" operating system, 0 means the first "title" operating system, and so on. 2. Timeout=0# timeout indicates the default waiting time. Setting it to 0 here means that the system will automatically load the default operating system after booting. 3. Splashimage= (hd0,3) / boot/grub/splash.xpm.gz# specifies the path where the screen image file is stored when GRUB boots. 4. Hiddenmenu# Hidden menu option 5. Title Red Hat Enterprise Linux (2.6.32-220.e16.i686) # title defines the name of the startup menu item, and the string after title is the option displayed on the menu item. 6. Root (hd,0) # sets the root partition of GRUB, which is the partition corresponding to / boot or the partition where the boot folder is located. 7. Kernel / vmkinuz-2.6.32-220.e16.i686 ro root=UUID=d67e208c-2791-4692-a615-c4e96b6ae355 rd_NO. Rd_NO_DM# specifies the kernel file (vmkinuz-2.6.32-220.e16.i686) and the root device to be mounted (root=UUID=d67e208c-2791-4692-a615-c4e96b6ae355). Ro means readonly. 8.initrd / initramfs-2.6.32-220.e16.i686.img# specifies that the memory image disk is initialized.

This is the end of this article on "what is GRUB in Linux?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Systems operating systems programs files articles menus content kernels tools more good practical important and so on memory parameters names commands images characters Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei OPPO Reno Redmi Apple MariaDB