Home arrow Linix - How to arrow Linux Loader LILO

Language Translator

Hacking Zone

Hacking Tools
Attacking

Configure Windows

Windows Configuration

Mix Tutorials

Asterisk
Website Building

Novels

Mix Novels

Human Personality

Body Language
Linux Loader LILO Print E-mail
Article Index
Linux Loader LILO
Page 2
Page 3
Page 4


Linux Loader LILO



Booting Linux requires you to install a program to load the kernel into your computer. Which program you use depends on the computer you’re using: You’ll use LILO for Intel-compatible PCs, MILO for Digital Equipment Corp. Alpha PCs, or SILO for SPARC-compatible work- stations. Because the CD-ROM included with this book contains Red Hat Intel/Linux, this chapter will focus on LILO, which, according to its author, Werner Almesberger, stands for Linux Loader.


This chapter will help you if you chose not to install LILO when you first installed Red Hat Linux or if you need help in properly starting Linux with certain kernel options. You’ve probably already decided how you want to start Linux on your computer, but you should know that there are other ways to fire up your system. Instead of using LILO, you can start Linux from DOS with LOADLIN.EXE, which is included on your CD-ROM under the Dosutils directory. I’ll discuss LOADLIN.EXE later in this chapter in the section “Using LOADLIN.EXE to Boot Linux.”

You can also use your computer as a diskless workstation by booting Linux over a network. A discussion on this subject is beyond the scope of this chapter, but you’ll find the details on how to do this in Robert Nemkin’s Diskless-HOWTO, under the /usr/doc/HOWTO/mini directory after you install Linux.

Yet another approach is to use a commercial boot loader, such as V Communications, Inc.’s System Commander, which can come in handy if you need to run other operating systems such as OS/2, Solaris, or Windows NT on your computer. LILO has capabilities similar to commercial solutions, but it’s free. For now, I’ll assume that you’re going to use LILO to boot in one of three traditional ways. You can use LILO to start Linux

s From the Master Boot Record (MBR) of your hard drive

s From the superblock of your root Linux partition on your hard drive

s From a floppy disk

In the following section, I’ll show you a list of LILO’s configuration parameters and its command-line arguments, and I’ll point out some special features.

Installing and Configuring LILO Although LILO is easy to install by using the lilo command (located under the /sbin directory), you should first take the time to read its documentation, which you’ll find under /usr/doc. Along with the documentation, you’ll also find a shell script called QuickInst, which can be used to replace an existing LILO installation or for a first-time install. LILO’s documentation contains details of its features and provides important tips and workarounds for special

problems, such as installing boot loaders on very large capacity hard drives or booting from other operating systems.

WARNING

Before trying anything with LILO, you should have an emergency boot disk. Having a system that won’t boot is not much fun, and if you don’t have a boot disk, you might think that there is no possible way to get back in and change things. Spending a few minutes to make yourself a boot disk can save you a big headache down the road. Whatever happens, don’t panic! If you need to rescue your system, see Chapter 4, “System Startup and Shutdown,” for details.

If you don’t install LILO during your Red Hat install or decide not to use the QuickInst script, there are two basic steps to install LILO:

1. Configure /etc/lilo.conf.

2. Run /sbin/lilo to install LILO and make it active.

This discussion describes modifying an existing lilo.conf file. Before making any changes, do yourself a favor and create a backup of the file either in the same directory or on a separate disk. Several files are important to LILO and are created during an initial install:

3

s map installer; see man lilo for more information

/sbin/lilo—A

s /boot/boot.b—A boot loader

LILO

s /boot/map—A boot map, which contains the location of the kernel

s /etc/lilo.conf—LILO’s configuration file


 
< Prev   Next >
Your Ad Here

RSS socialnet

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati
Add to BlinkBits