Sample menulst Configuration File

default 0 timeout 8

gfxmenu (hd0,1)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux### title SUSE Linux Enterprise Server 10 SP1 root (hd0,1)

kernel /boot/vmlinuz-2.6.16.46-0.12-smp root=/dev/sda2 resume=/dev/sda1 showopts initrd /boot/initrd-2.6.16.46-0.12-smp ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- SUSE Linux Enterprise Server 10 SP1 root (hd0,1)

kernel /boot/vmlinuz-2.6.16.46-0.12-smp root=/dev/sda2 showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3

initrd /boot/initrd-2.6.16.46-0.12-smp title Windows root (hd0,1) makeactive chainloader +1

Table 4-4 takes the default "Linux" entry in menu.lst and breaks it down so that you can create your own GRUB entry if needed.

TABLE 4-4

Sample menu.lst Configuration Description

Parameter

Description

default

Which entry to boot by default. Note: Counting starts from 0 in menu . 1 st, so the first entry is 0, the second is 1, and so on.

ti meout

The time before the default entry is booted.

gfxmenu

This refers to the file that provides the colored graphical GRUB display screen.

title

The title of the boot entry as it will be displayed on the boot screen.

root (hd0,1)

The partition relative to which the kernel and initrd files will be found. Note that this is GRUB's root, not the kernel's root partition that you see in the kernel line.

kernel

The kernel to boot. It is followed by all the parameters being passed to the kernel at boot time. The essential parameter is the next one, root = /dev/sda2, which tells the kernel what partition to mount as its root partition.

The root partition that the kernel will mount as /. Note that this is not related to GRUB's root above.

resume = /dev/sda1 The swap partition that can be used by ''suspend to disk.''

showopts Options after the keyword showopts in the list are shown in the boot screen; those before it are not seen.

initrd The initial ramdisk that is being used to boot with.

makeactive

Windows installs a boot loader into the boot record of the partition that it is installed into. To actually load this boot record, GRUB has to temporarily make the partition ''active'' for booting. This key word ensures that this happens when the Windows profile is selected.

chainloader + 1

Once you have made the boot record active, chainloader + 1 passes control to the boot loader it contains.

If you are modifying or updating the /etc/grub.conf or /boot/grub/menu.lst files manually, you can embed comments in the file by beginning each comment line with a hash mark (#), as in the following example:

Was this article helpful?

0 0

Post a comment