Linux LILO installation experience

xiaoxiao2021-03-06  80

Linux is a well-known operating system that Finnish Youth Linnitz develops and named by its name. Due to its advantages such as free and source opening, more and more computer enthusiasts are installed on the PC installed in the Windows system. Install Linux at the same time to facilitate the unix system. LILO (Linux Loader) is an excellent boot manager comes with Linux, which uses it to easily guide multiple operating systems on a machine. Although there is a GRUB boot system from RedHat7.3, many users still like to use LILO.

Since many of our units are scientifically operated under Linux, they will always encounter some problems during installation and use. Over time, some experiences have been accumulated, and now they are sorted out to share with you.

First, the installation of LILO under large hard disks

When installing Linux under a big hard disk, select LILO as a boot system. You may pass the LILO boot after startup, and go directly to the Windows system. This is because the current computer basically supports the LBA way to access the big hard drive. Of course, the big hard disk is also supported, just when there is Linux on a big hard disk, if there is a LBA32 option, LILO can be successful; but if there is no LBA32 option, Then you need to make a boot floppy disk when you install Linux, then launch Linux with a floppy disk, modify the lib / ETC directory, change the default linear to LBA32.

The sample file for a lilo.conf is given below:

Boot = / dev / hda

TIMEOUT = 50

Linear - à lba32

Prompt

Message = / boot / message

Default = DOS

VGA = Normal

Read-only

MAP = / boot / map

INSTALL = / boot / boot.b

Image = / boot / vmlinuz- 2.4.18-14

Label = Linux

root = / dev / hda8

Other = / dev / hda1

Label = DOS

Finally, run:

# / sbin / lilo

After restarting the machine, the familiar LILO interface will appear.

Second, LILO recovery

Multi-system ideal order is first to install the Windows system, then install Linux. However, because various reasons are needed to reinstall the Windows system, so the original LILO is overwritten by Windows, requiring LILO. If you make a boot floppy disk when you install Linux, you only need to start with Linux launch floppy disk after reinstalling the Windows system; but if you don't start the disk, please do one before reinstalling Windows Startup Disk.

# uname -r (get the kernel version number of the system) # mkbootdisk - DEVICE / DEV / FD0 KERNELVERSION

Where / dev / fd0 refers to the device name of the floppy disk, KernelVersion is replaced by the previously obtained kernel version.

If you don't do a boot disk after reinstalling the Windows system, this doesn't matter, find a machine that is installed with the same version to borrow or make a boot floppy disk, if its Linux root is installed, directly Startup; otherwise, temporarily modify the syslinux.cfg file on the boot floppy, give a sample file for syslinux.cfg:

DEFAULT Linux

PROMPT 1

Display boot.msg

TIMEOUT 100

Label Linux

Kernel VMLinuz

Append initrd = initrd.img HDD = IDE-SCSI ROOT = / dev / hda8 will change the root = / dev / hda8 to your root device number.

Third, LILO deletion

We know that general lilo is a main boot record MBR (Main Boot Recorder) installed on the hard disk. Some users have deleted Linux, I don't know how to remove the multi-boot system of LILO; the other is inadvertently destroying lilo, boot After the LI is displayed, it will not be able to start with WINDOWS. How to solve these situations? You only need to have a boot floppy disk with fdisk.exe files, start with this floppy disk, type:

A:> fdisk / MBR

This command will rewrite the MBR portion in the main boot partition and then enter Windows after restarting.

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

New Post(0)