Attachment: a small complement: 1. When configuring /boot/grub/menu.lst is actually a link file, the target file he pointed to is boot / grub / grub.conf. 2. Configure boot / grub When /grub.conf, there is a parameter in the article is when Password - MD5 $ 1 $ L6D3DASB $ G60AGBTOW7LSHKOXROOEY / This is the storage location of the DISP's password, don't move. Grub simple guidance 1. What? It 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 for Linux, coexistence, compared with LILO, it has the following features: * Support big hard disk now most Linux release version LILO One of the same problems: The root partition (/ boot partition) cannot be divided into a place with more than 1024 cylinders, 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. * Support boot screen GRUB supports a boot screen while booting 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. * Two execution modes GRUB can not only be ridicpeled by the configuration file, but also dynamically load various devices when selecting the parameters when changing the boot before selecting boot. 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 You can't boot this partition operating system before you reconfigure. 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 of GRUB * Installing GRUB If you have installed a blue point Linux2.0, GRUB is installed by default. To reinstall GRUB to the main boot sector, you only need to simply enter the makebootable command. * Make the GRUB boot disk First determine the grub already installed, then enter the 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 bs = 512 Seek = 1 This can be done. You can also use the mkbootdisk command #mkbootdisk 2.2.16 2.2.16 means that the kernel version number * will have a menu after booting the GRUB is powered on, listing 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. 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 following is combined with two system boot descriptions to explain the meaning of several boot options.
Title BluePoint Linux, Default Mode root (HD0, 1) kernel / boot / vmlinuz vga = auto root = / dev / hda2 HD0 refers to the first hard disk (HD0, 1) means the first hard disk Two partitions. 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 ("/"). Title Microsoft Windows Root (HD1, 0) CHAINLOADER (HD1, 0) 1 Root (HD1, 0) This refers to the second hard disk (from the hard disk), the first partition CHAINLOADER (HD1, 0) 1 loaded into one Data of the sector then handed the guiding rights. 5. After starting the GRUB from the floppy disk, you can use the floppy disk to boot the operating system inserting the operating system on the hard disk to insert the production, and enter the BIOS setting floppy disk. After the floppage starts successfully, you will enter the GRUB command line mode GRUB> To start an operating system, first specify the system on which partition on which partition is specified, for example, to guide the operating system of the first partition on the first hard disk, type GRUB first > root (HD0, 0) Next If you want to start, type GRUB> CHAINLOADER (HD0, 0) 1 (HD0, 0) to change the number with the hard disk and partition. If you want to boot Linux or other system, you should type GRUB> Kernel (HD0, 0) / boot / vmlinuz root = / dev / hda1 Note that the HDA1 parameter should also change with the hard disk and partition, such as from the second hard disk The first partition is guided by HDB1. Finally, I will start the system. The parameters of the command or command cannot be determined at all times, you can get relevant help by tab. Use the up and down keys to get the history of the command. In fact, these commands are the startup description of Menu.lst, you can also use the description to type the start command, and finally knock into boot can boot the system.