Linux launching agent

xiaoxiao2021-03-05  38

First, GRUB (Grand Unified Bootloader)

1 launch the configuration file

GRUB defaults to read profiles located in /boot/grub/menu.lst, which is a file link to /boot/grub/grub.conf in Red Hat Linux. By modifying this file, you can change the relevant features when GRUB startup.

To change the startup menu, a picture, edit /boot/grub/Menu.lst file. The following is the explanation of menu.lst content (Note: All indexes start from "0")

/

DEFAULT = 0 ← Set the default start-up operating system (ie, the first one of the menus)

Timeout = 10 ← GRUB menu Waiting time (in seconds)

SplashImage = (hd0, 1) /boot/grub/splash.xpm.gz ← Background image of the startup menu can be selected

Title Red Hat Linux (2.4.7-10) ← Menu name (Linux partition)

ROOT (HD0, 1) ← Subregion to store system kernel

Keernel /Boot/VMLinux-2.4.7-10 Ro root = / dev / hda2 ← Specify the root directory of the kernel to load and mount the system

Initrd /Boot/initrd-2.4.7-10.img

Title DOS ← Menu name (Windows partition)

Rootnoverify (DH0, 0) ← Specify the start-up disk

CHAINLOADER 1 ← Since Microsoft's operating system is a closed type, it is necessary to start in a CHAINLOADER.

//

Root (HD0, 1) identifies from the first hard disk, the second partition to start the search guidance kernel. Note that the root partitions here are different from Linux root partitions, this root is not robs! GRUB's hard disk identification method is a bit different from Linux. In Linux, the first primary partition is HDA1, the second primary partition is HDA2, and the first logical partition is HDA5, and in the grub is identified in (HDX, Y), where x is a representative disk, Y representative Partition number. For example, (HD0, 0) refers to the first primary partition of the first disk, (HD0, 4) represents the first logical partition of the first disk. So this root is behind your / boot's partition identifier.

GRUB uses "Chain Loader" (CHAINLOADER). The chain loader is loaded into WinXP's own boot loader in the boot record of the partition (HD0, 0) and then guides it. This is why this technology is called chain load - it creates a chain from the boot loader to another. This chain load technology can be used to guide any version of DOS or Windows. If you have Win98, WinMe, Win2k, WinXP in your computer, ChainLoader will boot the guidance right to Win NTLoader.

You can change the startup background image of GRUB (XPM format). Other formats can be modified with GIMP. Save the modified picture to the / boot / grub directory, if the picture is too large, it can be compressed into Gzip. Modify the SplashImage project of Menu.lst.

2 Reinstall GRUB

After modifying the configuration file, you must reinstall GRUB to take effect. The installation command is:

# Grub-install / dev / hda

Install the GRUB on the MBR of the first hard disk, if you change to GRUB-INSTALL / DEV / FD0, a GRUB boot disk can be made. Second, LILO

1 LILO configuration file

LILO is Linux used to manage the launched programs, which are configured to /etc/lilo.conf.

//

Boot = / dev / hda ← LILO installation location (here meant the MBR of the IDE first hard disk)

MAP = / boot / map

INSTALL = / boot / boot.b

Prompt

Timeout = 50 ← When the LILO login screen is waiting (0.1 seconds)

Message = / boot / message

LBA32 ← Support large capacity hard drive

DEFAULT = Linux ← When LILO is activated, the identification label "Linux" will start the operating system.

Image = / boot / vmlinuz-

2.4.7

-10

Label = Linux ← Linux operating system start identification tag

Read-only

Root = / dev / hda2 ← Linux operating system partitions

Other = / dev / hda1 ← WINDOWS operating system partitions

Label = Windows ← Windows operating system boot identification label

//

2 reload LILO

After modifying the lilo.conf configuration file, you must reload LILO to make the changes take effect.

# lilo

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

New Post(0)