Red Hat LINUX 7.2 - OFFICIAL LINUX CUSTOMIZATION GUIDE Guida di Installazione Pagina 83

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 82
Chapter 4. GRUB 83
kernel kernel-file-name option-1 option-N Specifies the kernel file to
load from GRUB’s root filesystem when using direct loading to boot the operating system. Options
can follow the kernel command and will be passed to the kernel when it is loaded.
For Red Hat Linux, an example kernel command looks like the following:
kernel /vmlinuz root=/dev/hda5
This line specifies that the vmlinuz file is loaded from GRUB’s root filesystem, such as (hd0,0).
An option is also passed to the kernel specifying that the root filesystem for the Linux kernel when
it loads should be on hda5, the fifth partition on the first IDE hard drive. Multiple options may be
placed after this option, if needed.
root
device-and-partition — Configures GRUB’s root partition to be the particular de-
vice and partition, such as (hd0,0), and mounts the partition so that files can be read.
rootnoverify
device-and-partition — Does the same thing as the root command but
does not mount the partition.
Commands other than these are available. Type info grub for a full list of all commands.
4.5. The Menu Configuration File
The configuration file, which is used to create the list in GRUB’s menu interface of operating systems
to boot, essentially allows the user to select a pre-set group of commands to execute. The commands
given in Section 4.4 can used, as well as some special commands that may only be used in the config-
uration file.
4.5.1. Special Configuration File Commands
The following commands can only be used in the GRUB menu configuration file:
color
normal-color selected-color Allows for the set up specific colors to be
used in the menu, where two colors are configured as the foreground and background. Use simple
color names, such as red/black. For example:
color red/black green/blue
default
title-name The default entry title name that will be loaded if the menu interface
times out.
fallback
title-name — If used, the entry title name to try if first attempt fails.
hiddenmenu If used, prevents the GRUB menu interface from being displayed, loading the
default entry when the timeout period expires. The user can see the standard GRUB menu by
pressing the [Esc] key.
password password If used, prevents the user who does not know the password from
editing the entries for this menu option.
Optionally, it is possible to specify an alternate menu configuration file after the
password , so
that, if the password is known, GRUB will restart the second stage of the boot loader and use this
alternate configuration file to build the menu. If this alternate file is left out of the command, then a
user who knows the password would be able to edit the current configuration file.
timeout If used, sets the interval, in seconds, before GRUB loads the entry designated by the
default command.
splashimage Specifies the location of the splash screen image to be used when GRUB boots.
title Sets a title to be used with a particular group of commands used to load an operating
system.
The # character can be used to place comments in the menu configuration file.
Vedere la pagina 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 281 282

Commenti su questo manuale

Nessun commento