Sample liloconf Configuration

message = /boot/message timeout = 80

prompt default = Linux boot = /dev/hda image = /boot/vmlinuz label = Linux initrd = /boot/initrd root = /dev/hda3

image = /boot/vmlinuz label = Failsafe initrd = /boot/initrd root = /dev/hda3

append = "noresume nosmp noapic"

other=/dev/hda2 label=Windows

Table 4-3 explains the entries in the /etc/lilo.conf file and describes what each of these entries means so that you are able to create a custom boot configuration if needed.

TABLE 4-3

Sample lilo.conf Configuration Description

lilo Parameter

Description

message

Defines the file containing a text message that is displayed by LILO.

timeout = 80

The timeout value until the default profile is used when there has been no user intervention.

prompt

Causes LILO to display its prompt, enabling you to specify a nondefault boot profile.

default = Linux

If there has been no user intervention, this is the profile that is loaded when the timeout value has been exceeded.

boot = /dev/hda

Defines the default boot device for the system.

image =

/boot/vmlinuz

The kernel image for the profile.

continued continued

TABLE 4-3

(continued)

TABLE 4-3

(continued)

lilo Parameter

Description

label = Linux

The name of the profile. This is used to select this profile at the lilo prompt.

initrd =

/boot/ini trd

The initial ramdisk for this configuration.

root = /dev/hda3

The root filesystem used for this profile. This is the / (root) partition that we discussed earlier in the chapter.

append =

A list of parameters to be passed to the kernel at boot time.

other = /dev/hda2

To boot ''other'' operating systems, you can specify the other clause. LILO will simply load and execute the boot sector of the specified partition at boot time. As with the standard Linux profile, a label can be added to allow you to load the profile for a specific operating system, in this case, Windows.

When the edit of the lilo.conf file configuration has been completed, you then need to commit those changes to the MBR on the hard disk by typing lilo at the command prompt as the root user. Adding -v to the lilo command line will print out verbose messages describing what lilo is doing. As this is an intricate part of the system, we recommend you always run lilo with the -v option to make sure it has executed successfully and to help you diagnose any problems you may find.

'¿"""FlTlJS" " In general, many Linux commands support a -v (verbose) option. When you are first HHMtfiA^W^^* learning Linux, using the -v option with commands such as mv, chown, and others can help you see exactly what a command is doing, especially if you are using a single command to work with multiple files, such as the contents of a directory.

Was this article helpful?

0 0

Post a comment