Configuration File Directives
The following are directives commonly used in the GRUB menu configuration
file:
absolute path to the chain loader. If the file is located on the first sector of the
specified partition, use the blocklist notation, +1.
as the foreground and background. Use simple color names such as red/black.
For example:
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.
with the absolute path to the initial RAM disk.
kernel
Specifies the kernel file to load when booting the operating system. Replace
with an absolute path from the partition specified by the root
directive. Multiple options can be passed to the kernel when it is loaded.
password=
Prevents a 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= directive. In this case, GRUB
restarts the second stage boot loader and uses the specified alternate
configuration file to build the menu. If an alternate menu configuration file is left out of the command, a user who knows the password is allowed to edit the
current configuration file.
root (,)
Configures the root partition for GRUB, such as (hd0,0), and mounts the
partition.
rootnoverify (,)
Configures the root partition for GRUB, just like the root command, but does not
mount the partition.
timeout=
Specifies the interval, in seconds, that GRUB waits before loading the entry
designated in the default command.
splashimage=
Specifies the location of the splash screen image to be used when GRUB boots.
title group-title
Specifies a title to be used with a particular group of commands used to load a
kernel or operating system.
To add human-readable comments to the menu configuration file, begin the line
with the hash mark character (#).
file:
- chainloader
absolute path to the chain loader. If the file is located on the first sector of the
specified partition, use the blocklist notation, +1.
- color
as the foreground and background. Use simple color names such as red/black.
For example:
- color red/black green/blue default=
Replace with the default entry title number to be loaded if the - menu interface times out.
- fallback=
- Replace
with the entry title number to try if the first attempt fails.
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.
- initrd
with the absolute path to the initial RAM disk.
kernel
Specifies the kernel file to load when booting the operating system. Replace
with an absolute path from the partition specified by the root
directive. Multiple options can be passed to the kernel when it is loaded.
password=
Prevents a 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=
restarts the second stage boot loader and uses the specified alternate
configuration file to build the menu. If an alternate menu configuration file is left out of the command, a user who knows the password is allowed to edit the
current configuration file.
root (
Configures the root partition for GRUB, such as (hd0,0), and mounts the
partition.
rootnoverify (
Configures the root partition for GRUB, just like the root command, but does not
mount the partition.
timeout=
Specifies the interval, in seconds, that GRUB waits before loading the entry
designated in the default command.
splashimage=
Specifies the location of the splash screen image to be used when GRUB boots.
title group-title
Specifies a title to be used with a particular group of commands used to load a
kernel or operating system.
To add human-readable comments to the menu configuration file, begin the line
with the hash mark character (#).
Comments
Post a Comment