Installation notes: Install Grub and LILO in Linux

Source: Internet
Author: User

Over the past decade, the Linux operating system has developed rapidly and is now in sync with Microsoft. Here we will introduce the knowledge of Linux, so that you can learn how to use it. Today we are talking about installing Grub and LILO in Linux. I hope you will remember how to install Grub and LILO.

Run the "makebootable" command to install Grub. "Lilo-v" is to reinstall LILO. The LILO Boot Sector contains the space of a partitioned table. Therefore, LILO can be installed in either MBR or a partitioned Boot Sector. Grub and LILO can both be installed on a floppy disk. Creating a Grub boot disk is not much different from creating a LILO boot disk.

To create a boot disk, perform some simple steps. First, make sure that Grub or LILO has been installed and the ext2 file system is created on the new floppy disk. Then install the disk, insert an empty disk into the drive, and enter:

# Mke2fs/dev/fd0

After creating an ext2 file system, you must install the file system.

1) install Grub

Go to the Grub directory:

# Cd/boot/grub

Put a floppy disk and execute the following command:

 
 
  1. #dd if=stage1 of=/dev/fd0 bs=512 count=1   
  2. #dd if=stage2 of=/dev/fd0 bs512 seek=1 

The Grub boot disk is complete.

2) install LILO

# Dd if =/dev/hda of =/dev/fd0 bs = 512 count = 1 (because LILO is already installed in MBR)

After executing the preceding command, the LILO boot disk is complete.

When Grub is started, a configuration file named menu. lst will be searched in/boot/grub/. If this file cannot be found, the configuration file will go to the command line mode without entering the menu mode. Menu. lst is a text file that can be opened in any text editor. Each line represents a configuration command. If the first character of a line is "#", it indicates that this line is a comment. You can simply add or remove a comment line to change the configuration. LILO uses a text file/etc/lilo. conf as its configuration file. LILO reads lilo. conf and writes specific LILO to the system boot Zone according to the parameters. If/etc/lilo. conf is modified, you must run the LILO command again to ensure that LILO runs properly.

Grub and LILO have many similar parameters, as shown in table 1.

Table 1 Comparison of Grub and LILO Parameters

Specific LILO parameters of Grub with similar functions
Boot the default Operating System timeout second timeout = tsecs after second seconds
Default start option default num default = name
Title OS mode label
Specifies the Linux Kernel path Kernel image
Specifies the path and file name of the file on the boot screen. Splash pathname/filename message = message-file

In this way, the steps for installing Grub and LILO in Linux are complete.

  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.