Detailed description of Grub and LILO configuration in Linux

Source: Internet
Author: User

With the development of open source, the Linux operating system has become more and more popular among many users, so many people begin to learn about the Linux operating system. This article introduces you in detail to configure Grub and LILO, it helps you to learn how to configure Grub and LILO.

The configuration brackets of Grub and LILO are the parameters of LILO)

Specify the wait time for the default Operating System to boot:

Timeout secondtimeout = tsecs)

The code above indicates that the default Operating System is guided after second seconds. If it is timeout 5, it is 5 seconds without other instructions to boot the system; if it is set to-1, Grub will wait until the user selects an option.

In LILO, timeout = 50 is also set to wait for the keyboard input time, in the unit of 0.1 seconds. If no input exceeds this period, the system times out and the default Operating System is automatically guided. If this parameter is not set, the default timeout length is infinite.

Specify the default Operating System for the boot:

Default numdefault = name)

In Grub, the operating system of row num + 1 is started by default. If default is set to 1, 2nd systems are started. In LILO, default = name is used to specify the default operating system. For example, default = LINUX indicates that the operating system with label as Linux is used as the default Operating System. If this parameter is not specified, the first operating system in lilo. conf will be used as the default Operating System.

Specify the kernel of the boot operating system:

Kernelimage)

Specify the location of the kernel for Grub and specify the file that is the kernel file. For example, kernel/boot/vmlinuz-2.2.16 root =/dev/hda7 ro instructions/boot/vmlinuz-2.2.16 is to load the kernel, the following are passed to the kernel parameters. Root =/dev/hda7 is the partition where the Linux root partition is located. ro is read-only. LILO uses image = filename to specify the file or device that contains the startup options of a Linux kernel.

Specify the information file for operating system boot:

Splash pathname/filenamemessage = message-file)

The above Code specifies the path and file name of the Grub boot screen file. In LILO, the message = message-file command is used to specify a file containing the annotation information, which will be displayed before the system "LILO. If you want to obtain more information when starting LILO, You can edit this file and use this command. If the file contains the characters Ctrl + L whose ASC Ⅱ code is 0xFF, the screen is cleared. Note that the file size cannot exceed 65535 bytes. After each file change, you must re-run the LILO command to recreate the map file to ensure its normal display.

Specify the name of the boot operating system:

Title OS modelabel)

The characters pointed out in the code above are the options seen in the Grub menu item. You can write the operating system name and description, for example, title Linux and Single Mode indicate that this option is used to guide the Single user Mode of Linux. In LILO, label = name identifies the current operating system by using this parameter, that is, the operating system name. You can enter a name after the LILO prompt to guide a specific operating system. The above is the configuration of Grub and LILO in Linux.

  1. Command Introduction: Basic Linux commands for file and directory management
  2. Operation notes: Linux Desktop GNOME Operation Skills
  3. Linux File Installation and uninstallation
  4. 2010the Linux operating system is about to bloom
  5. Practical Operation Log: Install JDK in Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.