GRUB multi-start manager

zhaozj2021-02-11  230

GRUB multi-start manager

Ideal (2001-03-31 20:36) 〖Back〗 〖Forward〗

1. What is GRUB GRUB is a multiple start manager. GRUB is an abbreviation for Grand Unified Bootloader, which can choose to boot which system when saving multiple operating systems. It can be guided by the operating system including Linux, FreeBSD, Solaris, NetBSD, Beosi, OS / 2, Windows NT, Windows NT, Windows2000. It can load the kernel of the operating system and initialize the operating system (such as Linux, FreeBSD), or give the boot to the operating system (such as Windows 98) to complete the boot. 2. GRUB Features GRUB can replace LILO to complete the boot of Linux, especially suitable for coexistence of Linux and other operating systems, compared with LILO, it has the following features: Support big hard disk now most Linux release version LILO has The same question: The root partition (/ boot partition) cannot be divided into a place in the cylinder of 1024, which is generally around 8.4 g, otherwise the LILO cannot be installed, or the system cannot be properly guided after installation. The grub will not happen, as long as your big hard drive is in LBA mode, GRUB can guide the operating system outside 8G. The boot screen GRUB supports a boot screen while booting the boot. For players, this can make their own personalized boot screen; for PC vendors, some information and manufacturers of the computer can be displayed when booting. GRUB supports the boot screen of 640x480,800x600, 1024x768, and can automatically detect the best mode, and the power-on screen of Windows 320x400 cannot be synonymous. The two execution modes GRUB can not only be ridicpered by the configuration file, but also the parameters when changing the boot before selecting the boot, can also dynamically load various devices. For example, you have compiled a new core under Linux, but you can't make it possible to work, you can dynamically change the GRUB parameters when booting, try to load this new core for use. GRUB's command line has a very powerful feature, and supports the same historical function as Bash or Doskey, you can use the top and down button to find the previous command. Menu Select Under Lilo, you need to manually enter the name of the operating system to boot different operating systems. GRUB uses a menu to select a different system for boot. You can also configure various parameters yourself, such as delay time, default operating system, etc. After the partitioning position changes, it is not necessary to reconfigure whether LILO is loaded into the operating system by reading the absolute sector on the hard disk, so each partition change must be reconfigured, for example, you use PQ Magic to adjust the size of the partition, that lilo is in you The operating system of this partition cannot be booted before reconfiguration. The grub is directly read to memory via the file system, so the GRUB can boot the system as long as the path of the operating system is not changed. In addition, GRUB has many very powerful features. For example, support a variety of external devices, dynamically load the operating system core, and can even load the operating system core through the network. GRUB supports multiple file systems, supports multiple executable file formats, supports automatic decompression, which can boot without multiple boot operating systems. 3. Use GRUB Install GRUB If the blue point Linux2.0 has been installed, GRUB is installed by default. To reinstall GRUB to the main boot sector, you only need to simply enter the makebootable command.

Making a GRUB startup disk First determine that GRUB is already installed, then enter GRUB directory, type: #CD / boot / grub put in a floppy disk, then knock into the command: #dd if = stage1 of = / dev / fd0 bs = 512 count = 1 #dd if = / stage2 of = / dev / fd0 bs512 seek = 1 This can be done a good disk. A menu will appear after the Grub is turned on, list all startup options. If the startup screen is set, the startup screen is displayed, and press the ESC key to cancel the start screen to display the menu option. The command prompt of the GRUB belonging to the blue point Linux is full Chinese. If the menu is described in detail, if you press E is the editing start command, press C to use the command line. Use the up and down keys to select the menu item and press Enter to start the selected item. Press the E key to edit the startup command of the selected item, you can use this feature to temporarily change your system's startup parameters, see Configuring the GRUB section. Press C to enter the command line mode. In command line mode, you can be executed directly, for example, you can type Poweroff shut down the computer. Press the Tab key to list all supported commands. Blue Point Linux has put Grub Chinese, some of which will give a Chinese prompt after the command is knocked into the name, and the usage and parameters of the command are displayed. 4. Configure the GRUB GRUB to start the / boot / grub / in the / boot / grub / in the configuration file that name menu.lst, if this file is not found, do not enter the menu mode and directly enter the command line mode. Menu.lst is a text file that you can use any text editor to open it. Each line represents a configuration command. If the first character of a row is a well-shown "#", this behavior comment, you can simply change the configuration with an increase or decrease in the comment line. Editing Menu.lst, usually there will be the following line Timeout Second to set the default operating system after SECOND seconds. Blue Point Linux defaults to Timeout 5, which is 5 seconds without other instructions to boot the system. If set to -1, GRUB will wait until the user selects an option. Default Num Boots the NUM 1 row option by default, but also default = 0 The default startup Menu's operating system, Default = 1 starts the system of the second line, so this. Splash Pathname / filename points out the path and file name stored by the file of the power-on screen, such as splash /boot/logo/800x600x8.img refers to the 800x600.img file with the / boot / logo path as the boot screen title osname Title The character is the option you see on the menu item, you can write the name and description of the operating system, if you use Title BluePoint Linux, Single Mode represents this option is a single user mode that boots the blue dot Linux. The meaning of several boot options in combination with two system boot descriptions Title BluePoint Linux, default mode root (hd0, 1) kernel / boot / vmlinuz vga = auto root = / dev / hda2 HD0 refers to the first hard disk (main Hard disk) (HD0, 1) refers to the second partition of the first hard disk. Kernel / boot / vmlinuz refers to the path to the Linux core in / boot / vmlinuz. VGA = Auto is a setting display mode, and root = / dev / hda2 refers to the second partition of the first hard disk as a root mount point ("/").

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

New Post(0)