GNU GRUB boot procedure

zhaozj2021-02-11  211

GNU GRUB boot procedure

GNU GRUB boot translation: Yuan Changqing What is a boot process? The boot process is a program that resides in the first sector of the disk, such as the MBR of the hard disk (main boot record). During the startup process, after the system is detected, if the system is set to be guided from the MBR, the BIOS (Basic Input / Output System) will hand over the control to the MBR, and the program residing in the MBR is the boot program, it is responsible Pass control to the operating system to complete the startup process. There are many boot programs that can be used, including GNU GRUB (Grand Unified Boot Loader, Bootmanager, Lilo (Linux Loader), NTLDR (Booter of Windows NT System), this article mainly discusses GRUB. What is grub grub is a powerful boot program that can boot a variety of different types of operating systems such as Windows, DOS, Linux, GNU Hurd, * BSD, etc. Currently, LILO is the most popular boot process to guide a variety of different operating systems. However, if you use lilo, after you change your configuration, you must re-run the Lilo program, and LILO compares with GRUB, and lacks flexibility. GRUB is more flexible, its latest version is 0.5.96.1, support EXT2 (a file system used by Linux), FAT16 and FAT32 (file system used by Windows 9X / ME), FFS (* BSD UNIX Used File Used System), Reiserfs (a new file system developed for Linux and 2.4.1 kernel) and Minix (an old file system, in the MiniX operating system, also used in the early Linux system). When using GRUB, you can "see" to these file systems without launching into these operating systems. For example: If you want to see the date and time stored in a text file, there is no time to start the entire operating system, you can use GRUB command interpreted program (prompt to "grup") and type: grub> cat (partition Number) /Home/god/filename.txt. You will get all the content in your file system, including date and time. GRUB's best use is that you can load any of the kernels in any partition in the list box. For example, if you forget to add a newly compiled kernel to the list, you can start normally, add it to the list, and then restart. However, when using GRUB, you can simply use the GRUB command program to join the desired kernel image. The three main steps using GRUB will be described below: Compile, install, and configuration. Compile and install the source code for GRUB grub can be downloaded from the URL ftp://alpha.gnu.org/pub/gnu/grub Perform the following command to complete the decompression of the package: # tar -xvzf grub-0.5.96.1.tar.gz then executes the configuration program: [root @ heaven ~ / grub-0.5.96.1] # ./configure Enter the following command, Start compilation: [root @HEAVEN ~ / GRUB-0.5.96.1] # Make Install GRUB to the system: [Root @ Heaven ~ / Grub-0.5.96.1] # make install Now starting GRUB's true installation process.

转载请注明原文地址:https://www.9cbs.com/read-3627.html

New Post(0)