Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 210 — #236
i
i
i
i
i
i
i
i
The fact that BIOS device names do not correspond to Linux devices is an
issue resolved with algorithms that establish a mapping. GRUB stores the
result in a file (device.map), which can be edited. For more information
about device.map, refer to Section 8.4.2 on page 212.
For GRUB, a file name must be specified as a device name written in paren-
theses followed by the full path to the file and the file name. The path must
always start with a slash. For example, on a system with a single IDE disk
and Linux on the first partition, the bootable kernel might be specified
with:
(hd0,0)/boot/vmlinuz
A Sample Menu File
The following example shows how the GRUB menu file works. This imagi-
nary machine has a Linux boot partition on /dev/hda5, a root partition on
/dev/hda7, and a Windows installation on /dev/hda1.
gfxmenu (hd0,4)/message
color white/blue black/light-gray
default 0
timeout 8
title linux
kernel (hd0,4)/vmlinuz root=/dev/hda7 vga=791
initrd (hd0,4)/initrd
title windows
chainloader(hd0,0)+1
title floppy
chainloader(fd0)+1
title failsafe
kernel (hd0,4)/vmlinuz.shipped root=/dev/hda7 ide=nodma \
apm=off acpi=off vga=normal nosmp maxcpus=0 3
initrd (hd0,4)/initrd.shipped
The first part defines the splash screen configuration:
gfxmenu (hd0,4)/message The background image is located on /dev/
hda5 and has the name message.
color The color scheme: white as normal foreground, blue as normal back-
ground, black for the foreground of selected items, and light gray as
the selection background. These colors do not affect the graphical
splash screen as defined under gfxmenu, but the standard GRUB in-
terface. On a SUSE LINUX system, this interface can be accessed from
the splash screen by pressing
Esc .
210 8.4. Booting with GRUB










