ttext">Command: gettext string

Translate string into the current language.

The current language code is stored in the ‘lang’ variable in GRUB’s environment (see lang). Translation files in MO format are read from ‘locale_dir’ (see locale_dir), usually /boot/grub/locale.


Next: , Previous: gettext, Up: Command-line and menu entry commands   [Contents][Index]

16.3.29 gptsync

Command: gptsync device [partition[+/-[type]]] …

Disks using the GUID Partition Table (GPT) also have a legacy Master Boot Record (MBR) partition table for compatibility with the BIOS and with older operating systems. The legacy MBR can only represent a limited subset of GPT partition entries.

This command populates the legacy MBR with the specified partition entries on device. Up to three partitions may be used.

type is an MBR partition type code; prefix with ‘0x’ if you want to enter this in hexadecimal. The separator between partition and type may be ‘+’ to make the partition active, or ‘-’ to make it inactive; only one partition may be active. If both the separator and type are omitted, then the partition will be inactive.


Next: , Previous: gptsync, Up: Command-line and menu entry commands   [Contents][Index]

16.3.30 halt

Command: halt --no-apm

The command halts the computer. If the --no-apm option is specified, no APM BIOS call is performed. Otherwise, the computer is shut down using APM.


Next: , Previous: halt, Up: Command-line and menu entry commands   [Contents][Index]

16.3.31 hashsum

Command: hashsum --hash hash --keep-going --uncompress --check file [--prefix dir]|file …

Compute or verify file hashes. Hash type is selected with option --hash. Supported hashes are: ‘adler32’, ‘crc64’, ‘crc32’, ‘crc32rfc1510’, ‘crc24rfc2440’, ‘md4’, ‘md5’, ‘ripemd160’, ‘sha1’, ‘sha224’, ‘sha256’, ‘sha512’, ‘sha384’, ‘tiger192’, ‘tiger’, ‘tiger2’, ‘whirlpool’. Option --uncompress uncompresses files before computing hash.

When list of files is given, hash of each file is computed and printed, followed by file name, each file on a new line.

When option --check is given, it points to a file that contains list of hash name pairs in the same format as used by UNIX md5sum command. Option --prefix may be used to give directory where files are located. Hash verification stops after the first mismatch was found unless option --keep-going was given. The exit code $? is set to 0 if hash verification is successful. If it fails, $? is set to a nonzero value.


Next: , Previous: hashsum, Up: Command-line and menu entry commands   [Contents][Index]

16.3.32 help

Command: help [pattern …]

Display helpful information about builtin commands. If you do not specify pattern, this command shows short descriptions of all available commands.

If you specify any patterns, it displays longer information about each of the commands whose names begin with those patterns.


Next: , Previous: help, Up: Command-line and menu entry commands   [Contents][Index]

16.3.33 initrd

Command: initrd file

Load an initial ramdisk for a Linux kernel image, and set the appropriate parameters in the Linux setup area in memory. This may only be used after the linux command (see linux) has been run. See also GNU/Linux.


Next: , Previous: initrd, Up: Command-line and menu entry commands   [Contents][Index]

16.3.34 initrd16

Command: initrd16 file

Load an initial ramdisk for a Linux kernel image to be booted in 16-bit mode, and set the appropriate parameters in the Linux setup area in memory. This may only be used after the linux16 command (see linux16) has been run. See also GNU/Linux.

This command is only available on x86 systems.


Next: , Previous: initrd16, Up: Command-line and menu entry commands   [Contents][Index]

16.3.35 insmod

Command: insmod module

Insert the dynamic GRUB module called module.


Next: , Previous: insmod, Up: Command-line and menu entry commands   [Contents][Index]

16.3.36 keystatus

Command: keystatus [--shift] [--ctrl] [--alt]

Return true if the Shift, Control, or Alt modifier keys are held down, as requested by options. This is useful in scripting, to allow some user control over behaviour without having to wait for a keypress.

Checking key modifier status is only supported on some platforms. If invoked without any options, the keystatus command returns true if and only if checking key modifier status is supported.


Next: , Previous: keystatus, Up: Command-line and menu entry commands   [Contents][Index]

16.3.37 linux

Command: linux file …

Load a Linux kernel image from file. The rest of the line is passed verbatim as the kernel command-line. Any initrd must be reloaded after using this command (see initrd).

On x86 systems, the kernel will be booted using the 32-bit boot protocol. Note that this means that the ‘vga=’ boot option will not work; if you want to set a special video mode, you will need to use GRUB commands such as ‘set gfxpayload=1024x768’ or ‘set gfxpayload=keep’ (to keep the same mode as used in GRUB) instead. GRUB can automatically detect some uses of ‘vga=’ and translate them to appropriate settings of ‘gfxpayload’. The linux16 command (see linux16) avoids this restriction.


Next: , Previous: linux, Up: Command-line and menu entry commands   [Contents][Index]

16.3.38 linux16

Command: linux16 file …

Load a Linux kernel image from file in 16-bit mode. The rest of the line is passed verbatim as the kernel command-line. Any initrd must be reloaded after using this command (see initrd16).

The kernel will be booted using the traditional 16-bit boot protocol. As well as bypassing problems with ‘vga=’ described in linux, this permits booting some other programs that implement the Linux boot protocol for the sake of convenience.

This command is only available on x86 systems.


Next: , Previous: linux16, Up: Command-line and menu entry commands   [Contents][Index]

16.3.39 list_env

Command: list_env [--file file]

List all variables in the environment block file. See Environment block.

The --file option overrides the default location of the environment block.


Next: , Previous: list_env, Up: Command-line and menu entry commands   [Contents][Index]

16.3.40 list_trusted

Command: list_trusted

List all public keys trusted by GRUB for validating signatures. The output is in GPG’s v4 key fingerprint format (i.e., the output of gpg --fingerprint). The least significant four bytes (last eight hexadecimal digits) can be used as an argument to distrust (see distrust). See Using digital signatures, for more information about uses for these keys.


Next: , Previous: list_trusted, Up: Command-line and menu entry commands   [Contents][Index]

16.3.41 load_env

Command: load_env [--file file] [--skip-sig] [whitelisted_variable_name] …

Load all variables from the environment block file into the environment. See Environment block.

The --file option overrides the default location of the environment block.

The --skip-sig option skips signature checking even when the value of environment variable check_signatures is set to enforce (see check_signatures).

If one or more variable names are provided as arguments, they are interpreted as a whitelist of variables to load from the environment block file. Variables set in the file but not present in the whitelist are ignored.

The --skip-sig option should be used with care, and should always be used in concert with a whitelist of acceptable variables whose values should be set. Failure to employ a carefully constructed whitelist could result in reading a malicious value into critical environment variables from the file, such as setting check_signatures=no, modifying prefix to boot from an unexpected location or not at all, etc.

When used with care, --skip-sig and the whitelist enable an administrator to configure a system to boot only signed configurations, but to allow the user to select from among multiple configurations, and to enable “one-shot” boot attempts and “savedefault” behavior. See Using digital signatures, for more information.


Next: , Previous: load_env, Up: Command-line and menu entry commands   [Contents][Index]

16.3.42 loadfont

Command: loadfont file …

Load specified font files. Unless absolute pathname is given, file is assumed to be in directory ‘$prefix/fonts’ with suffix ‘.pf2’ appended. See Fonts.


Next: , Previous: loadfont, Up: Command-line and menu entry commands   [Contents][Index]

16.3.43 loopback

Command: loopback [-d] device file

Make the device named device correspond to the contents of the filesystem image in file. For example:

loopback loop0 /path/to/image
ls (loop0)/

With the -d option, delete a device previously created using this command.


Next: , Previous: loopback, Up: Command-line and menu entry commands   [Contents][Index]

16.3.44 ls

Command: ls [arg …]

List devices or files.

With no arguments, print all devices known to GRUB.

If the argument is a device name enclosed in parentheses (see Device syntax), then print the name of the filesystem of that device.

If the argument is a directory given as an absolute file name (see File name syntax), then list the contents of that directory.


Next: , Previous: ls, Up: Command-line and menu entry commands   [Contents][Index]

16.3.45 lsfonts

Command: lsfonts

List loaded fonts.


Next: , Previous: lsfonts, Up: Command-line and menu entry commands   [Contents][Index]

16.3.46 lsmod

Command: lsmod

Show list of loaded modules.


Next: , Previous: lsmod, Up: Command-line and menu entry commands   [Contents][Index]

16.3.47 md5sum

Command: md5sum arg …

Alias for hashsum --hash md5 arg …. See command hashsum (see hashsum) for full description.


Next: , Previous: md5sum, Up: Command-line and menu entry commands   [Contents][Index]

16.3.48 module

Command: module [--nounzip] file [arguments]

Load a module for multiboot kernel image. The rest of the line is passed verbatim as the module command line.


Next: , Previous: module, Up: Command-line and menu entry commands   [Contents][Index]

16.3.49 multiboot

Command: multiboot [--quirk-bad-kludge] [--quirk-modules-after-kernel] file …

Load a multiboot kernel image from file. The rest of the line is passed verbatim as the kernel command-line. Any module must be reloaded after using this command (see module).

Some kernels have known problems. You need to specify –quirk-* for those. –quirk-bad-kludge is a problem seen in several products that they include loading kludge information with invalid data in ELF file. GRUB prior to 0.97 and some custom builds prefered ELF information while 0.97 and GRUB 2 use kludge. Use this option to ignore kludge. Known affected systems: old Solaris, SkyOS.

–quirk-modules-after-kernel is needed for kernels which load at relatively high address e.g. 16MiB mark and can’t cope with modules stuffed between 1MiB mark and beginning of the kernel. Known afftected systems: VMWare.


Next: , Previous: multiboot, Up: Command-line and menu entry commands   [Contents][Index]

16.3.50 nativedisk

Command: nativedisk

Switch from firmware disk drivers to native ones. Really useful only on platforms where both firmware and native disk drives are available. Currently i386-pc, i386-efi, i386-ieee1275 and x86_64-efi.


Next: , Previous: nativedisk, Up: Command-line and menu entry commands   [Contents][Index]

16.3.51 normal

Command: normal [file]

Enter normal mode and display the GRUB menu.

In normal mode, commands, filesystem modules, and cryptography modules are automatically loaded, and the full GRUB script parser is available. Other modules may be explicitly loaded using insmod (see insmod).

If a file is given, then commands will be read from that file. Otherwise, they will be read from $prefix/grub.cfg if it exists.

normal may be called from within normal mode, creating a nested environment. It is more usual to use configfile (see configfile) for this.


Next: , Previous: normal, Up: Command-line and menu entry commands   [Contents][Index]

16.3.52 normal_exit

Command: normal_exit

Exit normal mode (see normal). If this instance of normal mode was not nested within another one, then return to rescue mode.


Next: , Previous: normal_exit, Up: Command-line and menu entry commands   [Contents][Index]

16.3.53 parttool

Command: parttool partition commands

Make various modifications to partition table entries.

Each command is either a boolean option, in which case it must be followed with ‘+’ or ‘-’ (with no intervening space) to enable or disable that option, or else it takes a value in the form ‘command=value’.

Currently, parttool is only useful on DOS partition tables (also known as Master Boot Record, or MBR). On these partition tables, the following commands are available:

boot’ (boolean)

When enabled, this makes the selected partition be the active (bootable) partition on its disk, clearing the active flag on all other partitions. This command is limited to primary partitions.

type’ (value)

Change the type of an existing partition. The value must be a number in the range 0-0xFF (prefix with ‘0x’ to enter it in hexadecimal).

hidden’ (boolean)

When enabled, this hides the selected partition by setting the hidden bit in its partition type code; when disabled, unhides the selected partition by clearing this bit. This is useful only when booting DOS or Wwindows and multiple primary FAT partitions exist in one disk. See also DOS/Windows.


Next: , Previous: parttool, Up: Command-line and menu entry commands   [Contents][Index]

16.3.54 password

Command: password user clear-password

Define a user named user with password clear-password. See Security.


Next: , Previous: password, Up: Command-line and menu entry commands   [Contents][Index]

16.3.55 password_pbkdf2

Command: password_pbkdf2 user hashed-password

Define a user named user with password hash hashed-password. Use grub-mkpasswd-pbkdf2 (see Invoking grub-mkpasswd-pbkdf2) to generate password hashes. See Security.


Next: , Previous: password_pbkdf2, Up: Command-line and menu entry commands   [Contents][Index]

16.3.56 play

Command: play file | tempo [pitch1 duration1] [pitch2 duration2] …

Plays a tune

If the argument is a file name (see File name syntax), play the tune recorded in it. The file format is first the tempo as an unsigned 32bit little-endian number, then pairs of unsigned 16bit little-endian numbers for pitch and duration pairs.

If the arguments are a series of numbers, play the inline tune.

The tempo is the base for all note durations. 60 gives a 1-second base, 120 gives a half-second base, etc. Pitches are Hz. Set pitch to 0 to produce a rest.


Next: , Previous: play, Up: Command-line and menu entry commands   [Contents][Index]

16.3.57 probe

Command: probe [--set var] --driver|--partmap|--fs|--fs-uuid|--label device

Retrieve device information. If option --set is given, assign result to variable var, otherwise print information on the screen.


Next: , Previous: probe, Up: Command-line and menu entry commands   [Contents][Index]

16.3.58 pxe_unload

Command: pxe_unload

Unload the PXE environment (see Network).

This command is only available on PC BIOS systems.


Next: , Previous: pxe_unload, Up: Command-line and menu entry commands   [Contents][Index]

16.3.59 read

Command: read [var]

Read a line of input from the user. If an environment variable var is given, set that environment variable to the line of input that was read, with no terminating newline.


Next: , Previous: read, Up: Command-line and menu entry commands   [Contents][Index]

16.3.60 reboot

Command: reboot

Reboot the computer.


Next: , Previous: reboot, Up: Command-line and menu entry commands   [Contents][Index]

16.3.61 regexp

Command: regexp [--set [number:]var] regexp string

Test if regular expression regexp matches string. Supported regular expressions are POSIX.2 Extended Regular Expressions. If option --set is given, store numberth matched subexpression in variable var. Subexpressions are numbered in order of their opening parentheses starting from ‘1’. number defaults to ‘1’.


Next: , Previous: regexp, Up: Command-line and menu entry commands   [Contents][Index]

16.3.62 rmmod

Command: rmmod module

Remove a loaded module.


Next: , Previous: rmmod, Up: Command-line and menu entry commands   [Contents][Index]

16.3.63 save_env

Command: save_env [--file file] var …

Save the named variables from the environment to the environment block file. See Environment block.

The --file option overrides the default location of the environment block.

This command will operate successfully even when environment variable check_signatures is set to enforce (see check_signatures), since it writes to disk and does not alter the behavior of GRUB based on any contents of disk that have been read. It is possible to modify a digitally signed environment block file from within GRUB using this command, such that its signature will no longer be valid on subsequent boots. Care should be taken in such advanced configurations to avoid rendering the system unbootable. See Using digital signatures, for more information.


Next: , Previous: save_env, Up: Command-line and menu entry commands   [Contents][Index]

16.3.64 search

Command: search [--file|--label|--fs-uuid] [--set [var]] [--no-floppy] name

Search devices by file (-f, --file), filesystem label (-l, --label), or filesystem UUID (-u, --fs-uuid).

If the --set option is used, the first device found is set as the value of environment variable var. The default variable is ‘root’.

The --no-floppy option prevents searching floppy devices, which can be slow.

The ‘search.file’, ‘search.fs_label’, and ‘search.fs_uuid’ commands are aliases for ‘search --file’, ‘search --label’, and ‘search --fs-uuid’ respectively.


Next: , Previous: search, Up: Command-line and menu entry commands   [Contents][Index]

16.3.65 sendkey

Command: sendkey [--num|--caps|--scroll|--insert|--pause|--left-shift|--right-shift|--sysrq|--numkey|--capskey|--scrollkey|--insertkey|--left-alt|--right-alt|--left-ctrl|--right-ctrlon’|‘off’]… [no-led] keystroke

Insert keystrokes into the keyboard buffer when booting. Sometimes an operating system or chainloaded boot loader requires particular keys to be pressed: for example, one might need to press a particular key to enter "safe mode", or when chainloading another boot loader one might send keystrokes to it to navigate its menu.

You may provide up to 16 keystrokes (the length of the BIOS keyboard buffer). Keystroke names may be upper-case or lower-case letters, digits, or taken from the following table:

NameKey
escapeEscape
exclam!
at@
numbersign#
dollar$
percent%
caret^
ampersand&
asterisk*
parenleft(
parenright)
minus-
underscore_
equal=
plus+
backspaceBackspace
tabTab
bracketleft[
braceleft{
bracketright]
braceright}
enterEnter
controlpress and release Control
semicolon;
colon:
quote
doublequote"
backquote
tilde~
shiftpress and release left Shift
backslash\
bar|
comma,
less<
period.
greater>
slash/
question?
rshiftpress and release right Shift
altpress and release Alt
spacespace bar
capslockCaps Lock
F1F1
F2F2
F3F3
F4F4
F5F5
F6F6
F7F7
F8F8
F9F9
F10F10
F11F11
F12F12
num11 (numeric keypad)
num22 (numeric keypad)
num33 (numeric keypad)
num44 (numeric keypad)
num55 (numeric keypad)
num66 (numeric keypad)
num77 (numeric keypad)
num88 (numeric keypad)
num99 (numeric keypad)
num00 (numeric keypad)
numperiod. (numeric keypad)
numendEnd (numeric keypad)
numdownDown (numeric keypad)
numpgdownPage Down (numeric keypad)
numleftLeft (numeric keypad)
numcenter5 with Num Lock inactive (numeric keypad)
numrightRight (numeric keypad)
numhomeHome (numeric keypad)
numupUp (numeric keypad)
numpgupPage Up (numeric keypad)
numinsertInsert (numeric keypad)
numdeleteDelete (numeric keypad)
numasterisk* (numeric keypad)
numminus- (numeric keypad)
numplus+ (numeric keypad)
numslash/ (numeric keypad)
numenterEnter (numeric keypad)
deleteDelete
insertInsert
homeHome
endEnd
pgdownPage Down
pgupPage Up
downDown
upUp
leftLeft
rightRight

As well as keystrokes, the sendkey command takes various options that affect the BIOS keyboard status flags. These options take an ‘on’ or ‘off’ parameter, specifying that the corresponding status flag be set or unset; omitting the option for a given status flag will leave that flag at its initial state at boot. The --num, --caps, --scroll, and --insert options emulate setting the corresponding mode, while the --numkey, --capskey, --scrollkey, and --insertkey options emulate pressing and holding the corresponding key. The other status flag options are self-explanatory.

If the --no-led option is given, the status flag options will have no effect on keyboard LEDs.

If the sendkey command is given multiple times, then only the last invocation has any effect.

Since sendkey manipulates the BIOS keyboard buffer, it may cause hangs, reboots, or other misbehaviour on some systems. If the operating system or boot loader that runs after GRUB uses its own keyboard driver rather than the BIOS keyboard functions, then sendkey will have no effect.

This command is only available on PC BIOS systems.


Next: , Previous: sendkey, Up: Command-line and menu entry commands   [Contents][Index]

16.3.66 set

Command: set [envvar=value]

Set the environment variable envvar to value. If invoked with no arguments, print all environment variables with their values.


Next: , Previous: set, Up: Command-line and menu entry commands   [Contents][Index]

16.3.67 sha1sum

Command: sha1sum arg …

Alias for hashsum --hash sha1 arg …. See command hashsum (see hashsum) for full description.


Next: , Previous: sha1sum, Up: Command-line and menu entry commands   [Contents][Index]

16.3.68 sha256sum

Command: sha256sum arg …

Alias for hashsum --hash sha256 arg …. See command hashsum (see hashsum) for full description.


Next: , Previous: sha256sum, Up: Command-line and menu entry commands   [Contents][Index]

16.3.69 sha512sum

Command: sha512sum arg …

Alias for hashsum --hash sha512 arg …. See command hashsum (see hashsum) for full description.


Next: , Previous: sha512sum, Up: Command-line and menu entry commands   [Contents][Index]

16.3.70 sleep

Command: sleep [--verbose] [--interruptible] count

Sleep for count seconds. If option --interruptible is given, allow ESC to interrupt sleep. With --verbose show countdown of remaining seconds. Exit code is set to 0 if timeout expired and to 1 if timeout was interrupted by ESC.


Next: , Previous: sleep, Up: Command-line and menu entry commands   [Contents][Index]

16.3.71 source

Command: source file

Read file as a configuration file, as if its contents had been incorporated directly into the sourcing file. Unlike configfile (see configfile), this executes the contents of file without changing context: any environment variable changes made by the commands in file will be preserved after source returns, and the menu will not be shown immediately.


Next: , Previous: source, Up: Command-line and menu entry commands   [Contents][Index]

16.3.72 test

Command: test expression

Evaluate expression and return zero exit status if result is true, non zero status otherwise.

expression is one of:

string1 == string2

the strings are equal

string1 != string2

the strings are not equal

string1 < string2

string1 is lexicographically less than string2

string1 <= string2

string1 is lexicographically less or equal than string2

string1 > string2

string1 is lexicographically greater than string2

string1 >= string2

string1 is lexicographically greater or equal than string2

integer1 -eq integer2

integer1 is equal to integer2

integer1 -ge integer2

integer1 is greater than or equal to integer2

integer1 -gt integer2

integer1 is greater than integer2

integer1 -le integer2

integer1 is less than or equal to integer2

integer1 -lt integer2

integer1 is less than integer2

integer1 -ne integer2

integer1 is not equal to integer2

prefixinteger1 -pgt prefixinteger2

integer1 is greater than integer2 after stripping off common non-numeric prefix.

prefixinteger1 -plt prefixinteger2

integer1 is less than integer2 after stripping off common non-numeric prefix.

file1 -nt file2

file1 is newer than file2 (modification time). Optionally numeric bias may be directly appended to -nt in which case it is added to the first file modification time.

file1 -ot file2

file1 is older than file2 (modification time). Optionally numeric bias may be directly appended to -ot in which case it is added to the first file modification time.

-d file

file exists and is a directory

-e file

file exists

-f file

file exists and is not a directory

-s file

file exists and has a size greater than zero

-n string

the length of string is nonzero

string

string is equivalent to -n string

-z string

the length of string is zero

( expression )

expression is true

! expression

expression is false

expression1 -a expression2

both expression1 and expression2 are true

expression1 -o expression2

either expression1 or expression2 is true


Next: , Previous: test, Up: Command-line and menu entry commands   [Contents][Index]

16.3.73 true

Command: true

Do nothing, successfully. This is mainly useful in control constructs such as if and while (see Shell-like scripting).


Next: , Previous: true, Up: Command-line and menu entry commands   [Contents][Index]

16.3.74 trust

Command: trust [--skip-sig] pubkey_file

Read public key from pubkey_file and add it to GRUB’s internal list of trusted public keys. These keys are used to validate digital signatures when environment variable check_signatures is set to enforce. Note that if check_signatures is set to enforce when trust executes, then pubkey_file must itself be properly signed. The --skip-sig option can be used to disable signature-checking when reading pubkey_file itself. It is expected that --skip-sig is useful for testing and manual booting. See Using digital signatures, for more information.


Next: , Previous: trust, Up: Command-line and menu entry commands   [Contents][Index]

16.3.75 unset

Command: unset envvar

Unset the environment variable envvar.


Next: , Previous: unset, Up: Command-line and menu entry commands   [Contents][Index]

16.3.76 uppermem

This command is not yet implemented for GRUB 2, although it is planned.


Next: , Previous: uppermem, Up: Command-line and menu entry commands   [Contents][Index]

16.3.77 verify_detached

Command: verify_detached [--skip-sig] file signature_file [pubkey_file]

Verifies a GPG-style detached signature, where the signed file is file, and the signature itself is in file signature_file. Optionally, a specific public key to use can be specified using pubkey_file. When environment variable check_signatures is set to enforce, then pubkey_file must itself be properly signed by an already-trusted key. An unsigned pubkey_file can be loaded by specifying --skip-sig. If pubkey_file is omitted, then public keys from GRUB’s trusted keys (see list_trusted, see trust, and see distrust) are tried.

Exit code $? is set to 0 if the signature validates successfully. If validation fails, it is set to a non-zero value. See Using digital signatures, for more information.


Previous: verify_detached, Up: Command-line and menu entry commands   [Contents][Index]

16.3.78 videoinfo

Command: videoinfo [[WxH]xD]

List available video modes. If resolution is given, show only matching modes.


Previous: Command-line and menu entry commands, Up: Commands   [Contents][Index]

16.4 The list of networking commands


Next: , Up: Networking commands   [Contents][Index]

16.4.1 net_add_addr

Command: net_add_addr interface card address

Configure additional network interface with address on a network card. address can be either IP in dotted decimal notation, or symbolic name which is resolved using DNS lookup. If successful, this command also adds local link routing entry to the default subnet of address with name interface:local’ via interface.


Next: , Previous: net_add_addr, Up: Networking commands   [Contents][Index]

16.4.2 net_add_dns

Command: net_add_dns server

Resolve server IP address and add to the list of DNS servers used during name lookup.


Next: , Previous: net_add_dns, Up: Networking commands   [Contents][Index]

16.4.3 net_add_route

Command: net_add_route shortname ip[/prefix] [interface | ‘gwgateway]

Add route to network with address ip as modified by prefix via either local interface or gateway. prefix is optional and defaults to 32 for IPv4 address and 128 for IPv6 address. Route is identified by shortname which can be used to remove it (see net_del_route).


Next: , Previous: net_add_route, Up: Networking commands   [Contents][Index]

16.4.4 net_bootp

Command: net_bootp [card]

Perform configuration of card using DHCP protocol. If no card name is specified, try to configure all existing cards. If configuration was successful, interface with name card:dhcp’ and configured address is added to card. Additionally the following DHCP options are recognized and processed:

1 (Subnet Mask)

Used to calculate network local routing entry for interface card:dhcp’.

3 (Router)

Adds default route entry with the name card:dhcp:default’ via gateway from DHCP option. Note that only option with single route is accepted.

6 (Domain Name Server)

Adds all servers from option value to the list of servers used during name resolution.

12 (Host Name)

Sets environment variable ‘net_<card>_dhcp_hostname’ (see net_<interface>_hostname) to the value of option.

15 (Domain Name)

Sets environment variable ‘net_<card>_dhcp_domain’ (see net_<interface>_domain) to the value of option.

17 (Root Path)

Sets environment variable ‘net_<card>_dhcp_rootpath’ (see net_<interface>_rootpath) to the value of option.

18 (Extensions Path)

Sets environment variable ‘net_<card>_dhcp_extensionspath’ (see net_<interface>_extensionspath) to the value of option.


Next: , Previous: net_bootp, Up: Networking commands   [Contents][Index]

16.4.5 net_bootp6

Command: net_bootp6 [card]

Perform configuration of card using DHCPv6 protocol. If no card name is specified, try to configure all existing cards. If configuration was successful, interface with name card:dhcp6’ and configured address is added to card.

1 (Domain Name Server)

Adds all servers from option value to the list of servers used during name resolution.


Next: , Previous: net_bootp6, Up: Networking commands   [Contents][Index]

16.4.6 net_del_addr

Command: net_del_addr interface

Remove configured interface with associated address.


Next: , Previous: net_del_addr, Up: Networking commands   [Contents][Index]

16.4.7 net_del_dns

Command: net_del_dns address

Remove address from list of servers used during name lookup.


Next: , Previous: net_del_dns, Up: Networking commands   [Contents][Index]

16.4.8 net_del_route

Command: net_del_route shortname

Remove route entry identified by shortname.


Next: , Previous: net_del_route, Up: Networking commands   [Contents][Index]

16.4.9 net_get_dhcp_option

Command: net_get_dhcp_option var interface number type

Request DHCP option number of type via interface. type can be one of ‘string’, ‘number’ or ‘hex’. If option is found, assign its value to variable var. Values of types ‘number’ and ‘hex’ are converted to string representation.


Next: , Previous: net_get_dhcp_option, Up: Networking commands   [Contents][Index]

16.4.10 net_ipv6_autoconf

Command: net_ipv6_autoconf [card]

Perform IPv6 autoconfiguration by adding to the card interface with name card:link’ and link local MAC-based address. If no card is specified, perform autoconfiguration for all existing cards.


Next: , Previous: net_ipv6_autoconf, Up: Networking commands   [Contents][Index]

16.4.11 net_ls_addr

Command: net_ls_addr

List all configured interfaces with their MAC and IP addresses.


Next: , Previous: net_ls_addr, Up: Networking commands   [Contents][Index]

16.4.12 net_ls_cards

Command: net_ls_cards

List all detected network cards with their MAC address.


Next: , Previous: net_ls_cards, Up: Networking commands   [Contents][Index]

16.4.13 net_ls_dns

Command: net_ls_dns

List addresses of DNS servers used during name lookup.


Next: , Previous: net_ls_dns, Up: Networking commands   [Contents][Index]

16.4.14 net_ls_routes

Command: net_ls_routes

List routing entries.


Previous: net_ls_routes, Up: Networking commands   [Contents][Index]

16.4.15 net_nslookup

Command: net_nslookup name [server]

Resolve address of name using DNS server server. If no server is given, use default list of servers.


Next: , Previous: Commands, Up: Top   [Contents][Index]

17 Internationalisation

17.1 Charset

GRUB uses UTF-8 internally other than in rendering where some GRUB-specific appropriate representation is used. All text files (including config) are assumed to be encoded in UTF-8.

17.2 Filesystems

NTFS, JFS, UDF, HFS+, exFAT, long filenames in FAT, Joliet part of ISO9660 are treated as UTF-16 as per specification. AFS and BFS are read as UTF-8, again according to specification. BtrFS, cpio, tar, squash4, minix, minix2, minix3, ROMFS, ReiserFS, XFS, ext2, ext3, ext4, FAT (short names), RockRidge part of ISO9660, nilfs2, UFS1, UFS2 and ZFS are assumed to be UTF-8. This might be false on systems configured with legacy charset but as long as the charset used is superset of ASCII you should be able to access ASCII-named files. And it’s recommended to configure your system to use UTF-8 to access the filesystem, convmv may help with migration. ISO9660 (plain) filenames are specified as being ASCII or being described with unspecified escape sequences. GRUB assumes that the ISO9660 names are UTF-8 (since any ASCII is valid UTF-8). There are some old CD-ROMs which use CP437 in non-compliant way. You’re still able to access files with names containing only ASCII characters on such filesystems though. You’re also able to access any file if the filesystem contains valid Joliet (UTF-16) or RockRidge (UTF-8). AFFS, SFS and HFS never use unicode and GRUB assumes them to be in Latin1, Latin1 and MacRoman respectively. GRUB handles filesystem case-insensitivity however no attempt is performed at case conversion of international characters so e.g. a file named lowercase greek alpha is treated as different from the one named as uppercase alpha. The filesystems in questions are NTFS (except POSIX namespace), HFS+ (configurable at mkfs time, default insensitive), SFS (configurable at mkfs time, default insensitive), JFS (configurable at mkfs time, default sensitive), HFS, AFFS, FAT, exFAT and ZFS (configurable on per-subvolume basis by property “casesensitivity”, default sensitive). On ZFS subvolumes marked as case insensitive files containing lowercase international characters are inaccessible. Also like all supported filesystems except HFS+ and ZFS (configurable on per-subvolume basis by property “normalization”, default none) GRUB makes no attempt at check of canonical equivalence so a file name u-diaresis is treated as distinct from u+combining diaresis. This however means that in order to access file on HFS+ its name must be specified in normalisation form D. On normalized ZFS subvolumes filenames out of normalisation are inaccessible.

17.3 Output terminal

Firmware output console “console” on ARC and IEEE1275 are limited to ASCII.

BIOS firmware console and VGA text are limited to ASCII and some pseudographics.

None of above mentioned is appropriate for displaying international and any unsupported character is replaced with question mark except pseudographics which we attempt to approximate with ASCII.

EFI console on the other hand nominally supports UTF-16 but actual language coverage depends on firmware and may be very limited.

The encoding used on serial can be chosen with terminfo as either ASCII, UTF-8 or “visual UTF-8”. Last one is against the specification but results in correct rendering of right-to-left on some readers which don’t have own bidi implementation.

On emu GRUB checks if charset is UTF-8 and uses it if so and uses ASCII otherwise.

When using gfxterm or gfxmenu GRUB itself is responsible for rendering the text. In this case GRUB is limited by loaded fonts. If fonts contain all required characters then bidirectional text, cursive variants and combining marks other than enclosing, half (e.g. left half tilde or combining overline) and double ones. Ligatures aren’t supported though. This should cover European, Middle Eastern (if you don’t mind lack of lam-alif ligature in Arabic) and East Asian scripts. Notable unsupported scripts are Brahmic family and derived as well as Mongolian, Tifinagh, Korean Jamo (precomposed characters have no problem) and tonal writing (2e5-2e9). GRUB also ignores deprecated (as specified in Unicode) characters (e.g. tags). GRUB also doesn’t handle so called “annotation characters” If you can complete either of two lists or, better, propose a patch to improve rendering, please contact developer team.

17.4 Input terminal

Firmware console on BIOS, IEEE1275 and ARC doesn’t allow you to enter non-ASCII characters. EFI specification allows for such but author is unaware of any actual implementations. Serial input is currently limited for latin1 (unlikely to change). Own keyboard implementations (at_keyboard and usb_keyboard) supports any key but work on one-char-per-keystroke. So no dead keys or advanced input method. Also there is no keymap change hotkey. In practice it makes difficult to enter any text using non-Latin alphabet. Moreover all current input consumers are limited to ASCII.

17.5 Gettext

GRUB supports being translated. For this you need to have language *.mo files in $prefix/locale, load gettext module and set “lang” variable.

17.6 Regexp

Regexps work on unicode characters, however no attempt at checking cannonical equivalence has been made. Moreover the classes like [:alpha:] match only ASCII subset.

17.7 Other

Currently GRUB always uses YEAR-MONTH-DAY HOUR:MINUTE:SECOND [WEEKDAY] 24-hour datetime format but weekdays are translated. GRUB always uses the decimal number format with [0-9] as digits and . as descimal separator and no group separator. IEEE1275 aliases are matched case-insensitively except non-ASCII which is matched as binary. Similar behaviour is for matching OSBundleRequired. Since IEEE1275 aliases and OSBundleRequired don’t contain any non-ASCII it should never be a problem in practice. Case-sensitive identifiers are matched as raw strings, no canonical equivalence check is performed. Case-insenstive identifiers are matched as RAW but additionally [a-z] is equivalent to [A-Z]. GRUB-defined identifiers use only ASCII and so should user-defined ones. Identifiers containing non-ASCII may work but aren’t supported. Only the ASCII space characters (space U+0020, tab U+000b, CR U+000d and LF U+000a) are recognised. Other unicode space characters aren’t a valid field separator. test (see test) tests <, >, <=, >=, -pgt and -plt compare the strings in the lexicographical order of unicode codepoints, replicating the behaviour of test from coreutils. environment variables and commands are listed in the same order.


Next: , Previous: Internationalisation, Up: Top   [Contents][Index]

18 Security


Next: , Up: Security   [Contents][Index]

18.1 Authentication and authorisation in GRUB

By default, the boot loader interface is accessible to anyone with physical access to the console: anyone can select and edit any menu entry, and anyone can get direct access to a GRUB shell prompt. For most systems, this is reasonable since anyone with direct physical access has a variety of other ways to gain full access, and requiring authentication at the boot loader level would only serve to make it difficult to recover broken systems.

However, in some environments, such as kiosks, it may be appropriate to lock down the boot loader to require authentication before performing certain operations.

The ‘password’ (see password) and ‘password_pbkdf2’ (see password_pbkdf2) commands can be used to define users, each of which has an associated password. ‘password’ sets the password in plain text, requiring grub.cfg to be secure; ‘password_pbkdf2’ sets the password hashed using the Password-Based Key Derivation Function (RFC 2898), requiring the use of grub-mkpasswd-pbkdf2 (see Invoking grub-mkpasswd-pbkdf2) to generate password hashes.

In order to enable authentication support, the ‘superusers’ environment variable must be set to a list of usernames, separated by any of spaces, commas, semicolons, pipes, or ampersands. Superusers are permitted to use the GRUB command line, edit menu entries, and execute any menu entry. If ‘superusers’ is set, then use of the command line is automatically restricted to superusers.

Other users may be given access to specific menu entries by giving a list of usernames (as above) using the --users option to the ‘menuentry’ command (see menuentry). If the --unrestricted option is used for a menu entry, then that entry is unrestricted. If the --users option is not used for a menu entry, then that only superusers are able to use it.

Putting this together, a typical grub.cfg fragment might look like this:

set superusers="root"
password_pbkdf2 root grub.pbkdf2.sha512.10000.biglongstring
password user1 insecure

menuentry "May be run by any user" --unrestricted {
	set root=(hd0,1)
	linux /vmlinuz
}

menuentry "Superusers only" --users "" {
	set root=(hd0,1)
	linux /vmlinuz single
}

menuentry "May be run by user1 or a superuser" --users user1 {
	set root=(hd0,2)
	chainloader +1
}

The grub-mkconfig program does not yet have built-in support for generating configuration files with authentication. You can use /etc/grub.d/40_custom to add simple superuser authentication, by adding set superusers= and password or password_pbkdf2 commands.


Previous: Authentication and authorisation, Up: Security   [Contents][Index]

18.2 Using digital signatures in GRUB

GRUB’s core.img can optionally provide enforcement that all files subsequently read from disk are covered by a valid digital signature. This document does not cover how to ensure that your platform’s firmware (e.g., Coreboot) validates core.img.

If environment variable check_signatures (see check_signatures) is set to enforce, then every attempt by the GRUB core.img to load another file foo implicitly invokes verify_detached foo foo.sig (see verify_detached). foo.sig must contain a valid digital signature over the contents of foo, which can be verified with a public key currently trusted by GRUB (see list_trusted, see trust, and see distrust). If validation fails, then file foo cannot be opened. This failure may halt or otherwise impact the boot process.

GRUB uses GPG-style detached signatures (meaning that a file foo.sig will be produced when file foo is signed), and currently supports the DSA and RSA signing algorithms. A signing key can be generated as follows:

gpg --gen-key

An individual file can be signed as follows:

gpg --detach-sign /path/to/file

For successful validation of all of GRUB’s subcomponents and the loaded OS kernel, they must all be signed. One way to accomplish this is the following (after having already produced the desired grub.cfg file, e.g., by running grub-mkconfig (see Invoking grub-mkconfig):

# Edit /dev/shm/passphrase.txt to contain your signing key's passphrase
for i in `find /boot -name "*.cfg" -or -name "*.lst" -or \
  -name "*.mod" -or -name "vmlinuz*" -or -name "initrd*" -or \
  -name "grubenv"`;
do
  gpg --batch --detach-sign --passphrase-fd 0 $i < \
    /dev/shm/passphrase.txt
done
shred /dev/shm/passphrase.txt

See also: check_signatures, verify_detached, trust, list_trusted, distrust, load_env, save_env.

Note that internally signature enforcement is controlled by setting the environment variable check_signatures equal to enforce. Passing one or more --pubkey options to grub-mkimage implicitly defines check_signatures equal to enforce in core.img prior to processing any configuration files.

Note that signature checking does not prevent an attacker with (serial, physical, ...) console access from dropping manually to the GRUB console and executing:

set check_signatures=no

To prevent this, password-protection (see Authentication and authorisation) is essential. Note that even with GRUB password protection, GRUB itself cannot prevent someone with physical access to the machine from altering that machine’s firmware (e.g., Coreboot or BIOS) configuration to cause the machine to boot from a different (attacker-controlled) device. GRUB is at best only one link in a secure boot chain.


Next: , Previous: Security, Up: Top   [Contents][Index]

19 Platform limitations

GRUB2 is designed to be portable and is actually ported across platforms. We try to keep all platforms at the level. Unfortunately some platforms are better supported than others. This is detailed in current and 2 following sections.

ARC platform is unable to change datetime (firmware doesn’t seem to provide a function for it). EMU has similar limitation.

On EMU platform no serial port is available.

Console charset refers only to firmware-assisted console. gfxterm is always Unicode (see Internationalisation section for its limitations). Serial is configurable to UTF-8 or ASCII (see Internationalisation). In case of qemu and coreboot ports the refered console is vga_text. Loongson always uses gfxterm.

Most limited one is ASCII. CP437 provides additionally pseudographics. GRUB2 doesn’t use any language characters from CP437 as often CP437 is replaced by national encoding compatible only in pseudographics. Unicode is the most versatile charset which supports many languages. However the actual console may be much more limited depending on firmware

On BIOS network is supported only if the image is loaded through network. On sparc64 GRUB is unable to determine which server it was booted from.

Direct ATA/AHCI support allows to circumvent various firmware limitations but isn’t needed for normal operation except on baremetal ports.

AT keyboard support allows keyboard layout remapping and support for keys not available through firmware. It isn’t needed for normal operation except baremetal ports.

Speaker allows morse and spkmodem communication.

USB support provides benefits similar to ATA (for USB disks) or AT (for USB keyboards). In addition it allows USBserial.

Chainloading refers to the ability to load another bootloader through the same protocol

Hints allow faster disk discovery by already knowing in advance which is the disk in question. On some platforms hints are correct unless you move the disk between boots. On other platforms it’s just an educated guess. Note that hint failure results in just reduced performance, not a failure

BadRAM is the ability to mark some of the RAM as “bad”. Note: due to protocol limitations mips-loongson (with Linux protocol) and mips-qemu_mips can use only memory up to first hole.

BIOSCorebootMultibootQemu
videoyesyesyesyes
console charsetCP437CP437CP437CP437
networkyes (*)nonono
ATA/AHCIyesyesyesyes
AT keyboardyesyesyesyes
Speakeryesyesyesyes
USByesyesyesyes
chainloaderlocalyesyesno
cpuidpartialpartialpartialpartial
hintsguessguessguessguess
PCIyesyesyesyes
badramyesyesyesyes
compressionalwayspointlessnono
exityesnonono
ia32 EFIamd64 EFIia32 IEEE1275Itanium
videoyesyesnono
console charsetUnicodeUnicodeASCIIUnicode
networkyesyesyesyes
ATA/AHCIyesyesyesno
AT keyboardyesyesyesno
Speakeryesyesyesno
USByesyesyesno
chainloaderlocallocalnolocal
cpuidpartialpartialpartialno
hintsguessguessgoodguess
PCIyesyesyesno
badramyesyesnoyes
compressionnononono
exityesyesyesyes
Loongsonsparc64PowerpcARC
videoyesnoyesno
console charsetN/AASCIIASCIIASCII
networknoyes (*)yesno
ATA/AHCIyesnonono
AT keyboardyesnonono
Speakernononono
USByesnonono
chainloaderyesnonono
cpuidnononono
hintsgoodgoodgoodno
PCIyesnonono
badramyes (*)nonono
compressionconfigurablenonoconfigurable
exitnoyesyesyes
MIPS qemuemu
videonoyes
console charsetCP437Unicode (*)
networknoyes
ATA/AHCIyesno
AT keyboardyesno
Speakernono
USBN/Ayes
chainloaderyesno
cpuidnono
hintsguessno
PCInono
badramyes (*)no
compressionconfigurableno
exitnoyes

Next: , Previous: Platform limitations, Up: Top   [Contents][Index]

20 Outline

Some platforms have features which allows to implement some commands useless or not implementable on others.

Quick summary:

Information retrieval:

Workarounds for platform-specific issues:

Advanced operations for power users:

Miscelaneous:


Next: , Previous: Platform-specific operations, Up: Top   [Contents][Index]

21 Supported boot targets

X86 support is summarised in the following table. “Yes” means that the kernel works on the given platform, “crashes” means an early kernel crash which we hope will be fixed by concerned kernel developers. “no” means GRUB doesn’t load the given kernel on a given platform. “headless” means that the kernel works but lacks console drivers (you can still use serial or network console). In case of “no” and “crashes” the reason is given in footnote.

BIOSCoreboot
BIOS chainloadingyesno (1)
NTLDRyesno (1)
Plan9yesno (1)
Freedosyesno (1)
FreeBSD bootloaderyescrashes (1)
32-bit kFreeBSDyescrashes (5)
64-bit kFreeBSDyescrashes (5)
32-bit kNetBSDyescrashes (1)
64-bit kNetBSDyescrashes
32-bit kOpenBSDyesyes
64-bit kOpenBSDyesyes
Multibootyesyes
Multiboot2yesyes
32-bit Linux (legacy protocol)yesno (1)
64-bit Linux (legacy protocol)yesno (1)
32-bit Linux (modern protocol)yesyes
64-bit Linux (modern protocol)yesyes
32-bit XNUyes?
64-bit XNUyes?
32-bit EFI chainloaderno (2)no (2)
64-bit EFI chainloaderno (2)no (2)
Appleloaderno (2)no (2)
MultibootQemu
BIOS chainloadingno (1)no (1)
NTLDRno (1)no (1)
Plan9no (1)no (1)
FreeDOSno (1)no (1)
FreeBSD bootloadercrashes (1)crashes (1)
32-bit kFreeBSDcrashes (5)crashes (5)
64-bit kFreeBSDcrashes (5)crashes (5)
32-bit kNetBSDcrashes (1)crashes (1)
64-bit kNetBSDyesyes
32-bit kOpenBSDyesyes
64-bit kOpenBSDyesyes
Multibootyesyes
Multiboot2yesyes
32-bit Linux (legacy protocol)no (1)no (1)
64-bit Linux (legacy protocol)no (1)no (1)
32-bit Linux (modern protocol)yesyes
64-bit Linux (modern protocol)yesyes
32-bit XNU??
64-bit XNU??
32-bit EFI chainloaderno (2)no (2)
64-bit EFI chainloaderno (2)no (2)
Appleloaderno (2)no (2)
ia32 EFIamd64 EFI
BIOS chainloadingno (1)no (1)
NTLDRno (1)no (1)
Plan9no (1)no (1)
FreeDOSno (1)no (1)
FreeBSD bootloadercrashes (1)crashes (1)
32-bit kFreeBSDheadlessheadless
64-bit kFreeBSDheadlessheadless
32-bit kNetBSDcrashes (1)crashes (1)
64-bit kNetBSDyesyes
32-bit kOpenBSDheadlessheadless
64-bit kOpenBSDheadlessheadless
Multibootyesyes
Multiboot2yesyes
32-bit Linux (legacy protocol)no (1)no (1)
64-bit Linux (legacy protocol)no (1)no (1)
32-bit Linux (modern protocol)yesyes
64-bit Linux (modern protocol)yesyes
32-bit XNUyesyes
64-bit XNUyes (4)yes
32-bit EFI chainloaderyesno (3)
64-bit EFI chainloaderno (3)yes
Appleloaderyesyes
ia32 IEEE1275
BIOS chainloadingno (1)
NTLDRno (1)
Plan9no (1)
FreeDOSno (1)
FreeBSD bootloadercrashes (1)
32-bit kFreeBSDcrashes (5)
64-bit kFreeBSDcrashes (5)
32-bit kNetBSDcrashes (1)
64-bit kNetBSD?
32-bit kOpenBSD?
64-bit kOpenBSD?
Multiboot?
Multiboot2?
32-bit Linux (legacy protocol)no (1)
64-bit Linux (legacy protocol)no (1)
32-bit Linux (modern protocol)?
64-bit Linux (modern protocol)?
32-bit XNU?
64-bit XNU?
32-bit EFI chainloaderno (2)
64-bit EFI chainloaderno (2)
Appleloaderno (2)
  1. Requires BIOS
  2. EFI only
  3. 32-bit and 64-bit EFI have different structures and work in different CPU modes so it’s not possible to chainload 32-bit bootloader on 64-bit platform and vice-versa
  4. Some modules may need to be disabled
  5. Requires ACPI

PowerPC, IA64 and Sparc64 ports support only Linux. MIPS port supports Linux and multiboot2.

21.1 Boot tests

As you have seen in previous chapter the support matrix is pretty big and some of the configurations are only rarely used. To ensure the quality bootchecks are available for all x86 targets except EFI chainloader, Appleloader and XNU. All x86 platforms have bootcheck facility except ieee1275. Multiboot, multiboot2, BIOS chainloader, ntldr and freebsd-bootloader boot targets are tested only with a fake kernel images. Only Linux is tested among the payloads using Linux protocols.

Following variables must be defined:

GRUB_PAYLOADS_DIRdirectory containing the required kernels
GRUB_CBFSTOOLcbfstoll from Coreboot package (for coreboot platform only)
GRUB_COREBOOT_ROMempty Coreboot ROM
GRUB_QEMU_OPTSadditional options to be supplied to QEMU

Required files are:

kfreebsd_env.i38632-bit kFreeBSD device hints
kfreebsd.i38632-bit FreeBSD kernel image
kfreebsd.x86_64, kfreebsd_env.x86_64same from 64-bit kFreeBSD
knetbsd.i38632-bit NetBSD kernel image
knetbsd.miniroot.i38632-bit kNetBSD miniroot.kmod.
knetbsd.x86_64, knetbsd.miniroot.x86_64same from 64-bit kNetBSD
kopenbsd.i38632-bit OpenBSD kernel bsd.rd image
kopenbsd.x86_64same from 64-bit kOpenBSD
linux.i38632-bit Linux
linux.x86_6464-bit Linux

Next: , Previous: Supported kernels, Up: Top   [Contents][Index]

22 Error messages produced by GRUB


Up: Troubleshooting   [Contents][Index]

22.1 GRUB only offers a rescue shell

GRUB’s normal start-up procedure involves setting the ‘prefix’ environment variable to a value set in the core image by grub-install, setting the ‘root’ variable to match, loading the ‘normal’ module from the prefix, and running the ‘normal’ command (see normal). This command is responsible for reading /boot/grub/grub.cfg, running the menu, and doing all the useful things GRUB is supposed to do.

If, instead, you only get a rescue shell, this usually means that GRUB failed to load the ‘normal’ module for some reason. It may be possible to work around this temporarily: for instance, if the reason for the failure is that ‘prefix’ is wrong (perhaps it refers to the wrong device, or perhaps the path to /boot/grub was not correctly made relative to the device), then you can correct this and enter normal mode manually:

# Inspect the current prefix (and other preset variables):
set
# Find out which devices are available:
ls
# Set to the correct value, which might be something like this:
set prefix=(hd0,1)/grub
set root=(hd0,1)
insmod normal
normal

However, any problem that leaves you in the rescue shell probably means that GRUB was not correctly installed. It may be more useful to try to reinstall it properly using grub-install device (see Invoking grub-install). When doing this, there are a few things to remember:


Next: , Previous: Troubleshooting, Up: Top   [Contents][Index]

23 Invoking grub-install

The program grub-install generates a GRUB core image using grub-mkimage and installs it on your system. You must specify the device name on which you want to install GRUB, like this:

grub-install install_device

The device name install_device is an OS device name or a GRUB device name.

grub-install accepts the following options:

--help

Print a summary of the command-line options and exit.

--version

Print the version number of GRUB and exit.

--boot-directory=dir

Install GRUB images under the directory dir/grub/ This option is useful when you want to install GRUB into a separate partition or a removable disk. If this option is not specified then it defaults to /boot, so

grub-install /dev/sda

is equivalent to

grub-install --boot-directory=/boot/ /dev/sda

Here is an example in which you have a separate boot partition which is mounted on /mnt/boot:

grub-install --boot-directory=/mnt/boot /dev/sdb
--recheck

Recheck the device map, even if /boot/grub/device.map already exists. You should use this option whenever you add/remove a disk into/from your computer.

--no-rs-codes

By default on x86 BIOS systems, grub-install will use some extra space in the bootloader embedding area for Reed-Solomon error-correcting codes. This enables GRUB to still boot successfully if some blocks are corrupted. The exact amount of protection offered is dependent on available space in the embedding area. R sectors of redundancy can tolerate up to R/2 corrupted sectors. This redundancy may be cumbersome if attempting to cryptographically validate the contents of the bootloader embedding area, or in more modern systems with GPT-style partition tables (see BIOS installation) where GRUB does not reside in any unpartitioned space outside of the MBR. Disable the Reed-Solomon codes with this option.


Next: , Previous: Invoking grub-install, Up: Top   [Contents][Index]

24 Invoking grub-mkconfig

The program grub-mkconfig generates a configuration file for GRUB (see Simple configuration).

grub-mkconfig -o /boot/grub/grub.cfg

grub-mkconfig accepts the following options:

--help

Print a summary of the command-line options and exit.

--version

Print the version number of GRUB and exit.

-o file
--output=file

Send the generated configuration file to file. The default is to send it to standard output.


Next: , Previous: Invoking grub-mkconfig, Up: Top   [Contents][Index]

25 Invoking grub-mkpasswd-pbkdf2

The program grub-mkpasswd-pbkdf2 generates password hashes for GRUB (see Security).

grub-mkpasswd-pbkdf2

grub-mkpasswd-pbkdf2 accepts the following options:

-c number
--iteration-count=number

Number of iterations of the underlying pseudo-random function. Defaults to 10000.

-l number
--buflen=number

Length of the generated hash. Defaults to 64.

-s number
--salt=number

Length of the salt. Defaults to 64.


Next: , Previous: Invoking grub-mkpasswd-pbkdf2, Up: Top   [Contents][Index]

26 Invoking grub-mkrelpath

The program grub-mkrelpath makes a file system path relative to the root of its containing file system. For instance, if /usr is a mount point, then:

$ grub-mkrelpath /usr/share/grub/unicode.pf2/share/grub/unicode.pf2

This is mainly used internally by other GRUB utilities such as grub-mkconfig (see Invoking grub-mkconfig), but may occasionally also be useful for debugging.

grub-mkrelpath accepts the following options:

--help

Print a summary of the command-line options and exit.

--version

Print the version number of GRUB and exit.


Next: , Previous: Invoking grub-mkrelpath, Up: Top   [Contents][Index]

27 Invoking grub-mkrescue

The program grub-mkrescue generates a bootable GRUB rescue image (see Making a GRUB bootable CD-ROM).

grub-mkrescue -o grub.iso

All arguments not explicitly listed as grub-mkrescue options are passed on directly to xorriso in mkisofs emulation mode. Options passed to xorriso will normally be interpreted as mkisofs options; if the option ‘--’ is used, then anything after that will be interpreted as native xorriso options.

Non-option arguments specify additional source directories. This is commonly used to add extra files to the image:

mkdir -p disk/boot/grub
(add extra files to disk/boot/grub)
grub-mkrescue -o grub.iso disk

grub-mkrescue accepts the following options:

--help

Print a summary of the command-line options and exit.

--version

Print the version number of GRUB and exit.

-o file
--output=file

Save output in file. This "option" is required.

--modules=modules

Pre-load the named GRUB modules in the image. Multiple entries in modules should be separated by whitespace (so you will probably need to quote this for your shell).

--rom-directory=dir

If generating images for the QEMU or Coreboot platforms, copy the resulting qemu.img or coreboot.elf files respectively to the dir directory as well as including them in the image.

--xorriso=file

Use file as the xorriso program, rather than the built-in default.

--grub-mkimage=file

Use file as the grub-mkimage program, rather than the built-in default.


Next: , Previous: Invoking grub-mkrescue, Up: Top   [Contents][Index]

28 Invoking grub-mount

The program grub-mount performs a read-only mount of any file system or file system image that GRUB understands, using GRUB’s file system drivers via FUSE. (It is only available if FUSE development files were present when GRUB was built.) This has a number of uses:

Using grub-mount is normally as simple as:

grub-mount /dev/sda1 /mnt

grub-mount must be given one or more images and a mount point as non-option arguments (if it is given more than one image, it will treat them as a RAID set), and also accepts the following options:

--help

Print a summary of the command-line options and exit.

--version

Print the version number of GRUB and exit.

-C
--crypto

Mount encrypted devices, prompting for a passphrase if necessary.

-d string
--debug=string

Show debugging output for conditions matching string.

-K prompt|file
--zfs-key=prompt|file

Load a ZFS encryption key. If you use ‘prompt’ as the argument, grub-mount will read a passphrase from the terminal; otherwise, it will read key material from the specified file.

-r device
--root=device

Set the GRUB root device to device. You do not normally need to set this; grub-mount will automatically set the root device to the root of the supplied file system.

If device is just a number, then it will be treated as a partition number within the supplied image. This means that, if you have an image of an entire disk in disk.img, then you can use this command to mount its second partition:

grub-mount -r 2 disk.img mount-point
-v
--verbose

Print verbose messages.


Next: , Previous: Invoking grub-mount, Up: Top   [Contents][Index]

29 Invoking grub-probe

The program grub-probe probes device information for a given path or device.

grub-probe --target=fs /boot/grub
grub-probe --target=drive --device /dev/sda1

grub-probe must be given a path or device as a non-option argument, and also accepts the following options:

--help

Print a summary of the command-line options and exit.

--version

Print the version number of GRUB and exit.

-d
--device

If this option is given, then the non-option argument is a system device name (such as ‘/dev/sda1’), and grub-probe will print information about that device. If it is not given, then the non-option argument is a filesystem path (such as ‘/boot/grub’), and grub-probe will print information about the device containing that part of the filesystem.

-m file
--device-map=file

Use file as the device map (see Device map) rather than the default, usually ‘/boot/grub/device.map’.

-t target
--target=target

Print information about the given path or device as defined by target. The available targets and their meanings are:

fs

GRUB filesystem module.

fs_uuid

Filesystem Universally Unique Identifier (UUID).

fs_label

Filesystem label.

drive

GRUB device name.

device

System device name.

partmap

GRUB partition map module.

abstraction

GRUB abstraction module (e.g. ‘lvm’).

cryptodisk_uuid

Crypto device UUID.

msdos_parttype

MBR partition type code (two hexadecimal digits).

hints_string

A string of platform search hints suitable for passing to the search command (see search).

bios_hints

Search hints for the PC BIOS platform.

ieee1275_hints

Search hints for the IEEE1275 platform.

baremetal_hints

Search hints for platforms where disks are addressed directly rather than via firmware.

efi_hints

Search hints for the EFI platform.

arc_hints

Search hints for the ARC platform.

compatibility_hint

A guess at a reasonable GRUB drive name for this device, which may be used as a fallback if the search command fails.

disk

System device name for the whole disk.

-v
--verbose

Print verbose messages.


Next: , Previous: Invoking grub-probe, Up: Top   [Contents][Index]

30 Invoking grub-script-check

The program grub-script-check takes a GRUB script file (see Shell-like scripting) and checks it for syntax errors, similar to commands such as sh -n. It may take a path as a non-option argument; if none is supplied, it will read from standard input.

grub-script-check /boot/grub/grub.cfg

grub-script-check accepts the following options:

--help

Print a summary of the command-line options and exit.

--version

Print the version number of GRUB and exit.

-v
--verbose

Print each line of input after reading it.


Next: , Previous: Invoking grub-script-check, Up: Top   [Contents][Index]

Appendix A How to obtain and build GRUB

Caution: GRUB requires binutils-2.9.1.0.23 or later because the GNU assembler has been changed so that it can produce real 16bits machine code between 2.9.1 and 2.9.1.0.x. See http://sources.redhat.com/binutils/, to obtain information on how to get the latest version.

GRUB is available from the GNU alpha archive site ftp://ftp.gnu.org/gnu/grub or any of its mirrors. The file will be named grub-version.tar.gz. The current version is 2.02~beta2, so the file you should grab is:

ftp://ftp.gnu.org/gnu/grub/grub-2.02~beta2.tar.gz

To unbundle GRUB use the instruction:

zcat grub-2.02~beta2.tar.gz | tar xvf -

which will create a directory called grub-2.02~beta2 with all the sources. You can look at the file INSTALL for detailed instructions on how to build and install GRUB, but you should be able to just do:

cd grub-2.02~beta2
./configure
make install

Also, the latest version is available using Git. See http://www.gnu.org/software/grub/grub-download.html for more information.


Next: , Previous: Obtaining and Building GRUB, Up: Top   [Contents][Index]

Appendix B Reporting bugs

These are the guideline for how to report bugs. Take a look at this list below before you submit bugs:

  1. Before getting unsettled, read this manual through and through. Also, see the GNU GRUB FAQ.
  2. Always mention the information on your GRUB. The version number and the configuration are quite important. If you build it yourself, write the options specified to the configure script and your operating system, including the versions of gcc and binutils.
  3. If you have trouble with the installation, inform us of how you installed GRUB. Don’t omit error messages, if any. Just ‘GRUB hangs up when it boots’ is not enough.

    The information on your hardware is also essential. These are especially important: the geometries and the partition tables of your hard disk drives and your BIOS.

  4. If GRUB cannot boot your operating system, write down everything you see on the screen. Don’t paraphrase them, like ‘The foo OS crashes with GRUB, even though it can boot with the bar boot loader just fine’. Mention the commands you executed, the messages printed by them, and information on your operating system including the version number.
  5. Explain what you wanted to do. It is very useful to know your purpose and your wish, and how GRUB didn’t satisfy you.
  6. If you can investigate the problem yourself, please do. That will give you and us much more information on the problem. Attaching a patch is even better.

    When you attach a patch, make the patch in unified diff format, and write ChangeLog entries. But, even when you make a patch, don’t forget to explain the problem, so that we can understand what your patch is for.

  7. Write down anything that you think might be related. Please understand that we often need to reproduce the same problem you encountered in our environment. So your information should be sufficient for us to do the same thing—Don’t forget that we cannot see your computer directly. If you are not sure whether to state a fact or leave it out, state it! Reporting too many things is much better than omitting something important.

If you follow the guideline above, submit a report to the Bug Tracking System. Alternatively, you can submit a report via electronic mail to bug-grub@gnu.org, but we strongly recommend that you use the Bug Tracking System, because e-mail can be passed over easily.

Once we get your report, we will try to fix the bugs.


Next: , Previous: Reporting bugs, Up: Top   [Contents][Index]

Appendix C Where GRUB will go

GRUB 2 is now quite stable and used in many production systems. We are currently working towards a 2.0 release.

If you are interested in the development of GRUB 2, take a look at the homepage.


Next: , Previous: Future, Up: Top   [Contents][Index]

Appendix D Copying This Manual


Up: Copying This Manual   [Contents][Index]

D.1 GNU Free Documentation License

Version 1.2, November 2002
Copyright © 2000,2001,2002 Free Software Foundation, Inc.
51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA

Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
  1. PREAMBLE

    The purpose of this License is to make a manual, textbook, or other functional and useful document free in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others.

    This License is a kind of “copyleft”, which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software.

    We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference.

  2. APPLICABILITY AND DEFINITIONS

    This License applies to any manual or other work, in any medium, that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. Such a notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein. The “Document”, below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as “you”. You accept the license if you copy, modify or distribute the work in a way requiring permission under copyright law.

    A “Modified Version” of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language.

    A “Secondary Section” is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document’s overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (Thus, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them.

    The “Invariant Sections” are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are none.

    The “Cover Texts” are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words.

    A “Transparent” copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart or discourage subsequent modification by readers is not Transparent. An image format is not Transparent if used for any substantial amount of text. A copy that is not “Transparent” is called “Opaque”.

    Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include PNG, XCF and JPG. Opaque formats include proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only.

    The “Title Page” means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, “Title Page” means the text near the most prominent appearance of the work’s title, preceding the beginning of the body of the text.

    A section “Entitled XYZ” means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a specific section name mentioned below, such as “Acknowledgements”, “Dedications”, “Endorsements”, or “History”.) To “Preserve the Title” of such a section when you modify the Document means that it remains a section “Entitled XYZ” according to this definition.

    The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License.

  3. VERBATIM COPYING

    You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3.

    You may also lend copies, under the same conditions stated above, and you may publicly display copies.

  4. COPYING IN QUANTITY

    If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Document’s license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects.

    If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages.

    If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public.

    It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document.

  5. MODIFICATIONS

    You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version:

    1. Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission.
    2. List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has fewer than five), unless they release you from this requirement.
    3. State on the Title page the name of the publisher of the Modified Version, as the publisher.
    4. Preserve all the copyright notices of the Document.
    5. Add an appropriate copyright notice for your modifications adjacent to the other copyright notices.
    6. Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below.
    7. Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document’s license notice.
    8. Include an unaltered copy of this License.
    9. Preserve the section Entitled “History”, Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section Entitled “History” in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence.
    10. Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the “History” section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission.
    11. For any section Entitled “Acknowledgements” or “Dedications”, Preserve the Title of the section, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein.
    12. Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles.
    13. Delete any section Entitled “Endorsements”. Such a section may not be included in the Modified Version.
    14. Do not retitle any existing section to be Entitled “Endorsements” or to conflict in title with any Invariant Section.
    15. Preserve any Warranty Disclaimers.

    If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version’s license notice. These titles must be distinct from any other section titles.

    You may add a section Entitled “Endorsements”, provided it contains nothing but endorsements of your Modified Version by various parties—for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard.

    You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one.

    The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version.

  6. COMBINING DOCUMENTS

    You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers.

    The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work.

    In the combination, you must combine any sections Entitled “History” in the various original documents, forming one section Entitled “History”; likewise combine any sections Entitled “Acknowledgements”, and any sections Entitled “Dedications”. You must delete all sections Entitled “Endorsements.”

  7. COLLECTIONS OF DOCUMENTS

    You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects.

    You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document.

  8. AGGREGATION WITH INDEPENDENT WORKS

    A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called an “aggregate” if the copyright resulting from the compilation is not used to limit the legal rights of the compilation’s users beyond what the individual works permit. When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document.

    If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Document’s Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole aggregate.

  9. TRANSLATION

    Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License, and all the license notices in the Document, and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail.

    If a section in the Document is Entitled “Acknowledgements”, “Dedications”, or “History”, the requirement (section 4) to Preserve its Title (section 1) will typically require changing the actual title.

  10. TERMINATION

    You may not copy, modify, sublicense, or distribute the Document except as expressly provided for under this License. Any other attempt to copy, modify, sublicense or distribute the Document is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.

  11. FUTURE REVISIONS OF THIS LICENSE

    The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See http://www.gnu.org/copyleft/.

    Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License “or any later version” applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation.

D.1.1 ADDENDUM: How to use this License for your documents

To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page:

  Copyright (C)  year  your name.
  Permission is granted to copy, distribute and/or modify this document
  under the terms of the GNU Free Documentation License, Version 1.2
  or any later version published by the Free Software Foundation;
  with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  Texts.  A copy of the license is included in the section entitled ``GNU
  Free Documentation License''.

If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the “with...Texts.” line with this:

    with the Invariant Sections being list their titles, with
    the Front-Cover Texts being list, and with the Back-Cover Texts
    being list.

If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those two alternatives to suit the situation.

If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software.


Previous: Copying This Manual, Up: Top   [Contents][Index]

Index

Jump to:   [  
A   B   C   D   E   F   G   H   I   K   L   M   N   P   R   S   T   U   V  
Index Entry  Section

[
[: [

A
acpi: acpi
authenticate: authenticate

B
background_color: background_color
background_image: background_image
badram: badram
blocklist: blocklist
boot: boot

C
cat: cat
chainloader: chainloader
clear: clear
CMOS: cmosdump
cmosclean: cmosclean
cmostest: cmostest
cmp: cmp
configfile: configfile
cpuid: cpuid
crc: crc
cryptomount: cryptomount

D
date: date
devicetree: devicetree
distrust: distrust
drivemap: drivemap

E
echo: echo
eval: eval
export: export

F
false: false
FDL, GNU Free Documentation License: GNU Free Documentation License

G
gettext: gettext
gptsync: gptsync

H
halt: halt
hashsum: hashsum
help: help

I
initrd: initrd
initrd16: initrd16
insmod: insmod

K
keystatus: keystatus

L
linux: linux
linux16: linux16
list_env: list_env
list_trusted: list_trusted
loadfont: loadfont
load_env: load_env
loopback: loopback
ls: ls
lsfonts: lsfonts
lsmod: lsmod

M
md5sum: md5sum
menuentry: menuentry
module: module
multiboot: multiboot

N
nativedisk: nativedisk
net_add_addr: net_add_addr
net_add_dns: net_add_dns
net_add_route: net_add_route
net_bootp: net_bootp
net_bootp6: net_bootp6
net_del_addr: net_del_addr
net_del_dns: net_del_dns
net_del_route: net_del_route
net_get_dhcp_option: net_get_dhcp_option
net_ipv6_autoconf: net_ipv6_autoconf
net_ls_addr: net_ls_addr
net_ls_cards: net_ls_cards
net_ls_dns: net_ls_dns
net_ls_routes: net_ls_routes
net_nslookup: net_nslookup
normal: normal
normal_exit: normal_exit

P
parttool: parttool
password: password
password_pbkdf2: password_pbkdf2
play: play
probe: probe
pxe_unload: pxe_unload

R
read: read
reboot: reboot
regexp: regexp
rmmod: rmmod

S
save_env: save_env
search: search
sendkey: sendkey
serial: serial
set: set
sha1sum: sha1sum
sha256sum: sha256sum
sha512sum: sha512sum
sleep: sleep
source: source
submenu: submenu

T
terminal_input: terminal_input
terminal_output: terminal_output
terminfo: terminfo
test: test
true: true
trust: trust

U
unset: unset

V
verify_detached: verify_detached
videoinfo: videoinfo

Jump to:   [  
A   B   C   D   E   F   G   H   I   K   L   M   N   P   R   S   T   U   V  

  [Contents][Index]

Footnotes

(1)

chain-load is the mechanism for loading unsupported operating systems by loading another boot loader. It is typically used for loading DOS or Windows.

(2)

The NetBSD/i386 kernel is Multiboot-compliant, but lacks support for Multiboot modules.

(3)

Only CRC32 data integrity check is supported (xz default is CRC64 so one should use –check=crc32 option). LZMA BCJ filters are supported.

(4)

There are a few pathological cases where loading a very badly organized ELF kernel might take longer, but in practice this never happen.

(5)

The LInux LOader, a boot loader that everybody uses, but nobody likes.

(6)

El Torito is a specification for bootable CD using BIOS functions.

(7)

Currently a backslash-newline pair within a variable name is not handled properly, so use this feature with some care.

(8)

However, this behavior will be changed in the future version, in a user-invisible way.


GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ,< XY^!p7!7Qh6H[!b # . <Ib~+#"$9^x'9 & 1+>j  )I^'{P" 0BR%j+! 3?]y2!T8n 3+/[p } ) /EYr"'0)Ak&)^^1_>D/ !t ' -  ) !,6!c!|!!E!! "'"B" a"":"""0#6#K#h##-####<# ;$I$'P$x$$'$-$'$'%.E%Bt%% %%%%& &)-&0W&6& &&"&'1>'7p'/'''(F/(v(@*D+$U+z+=++ +++ ,8,W,$o, ,,,,--*1-,\----#--.'.+@.'l.). ...". /-/ I/!j//$///00390Im00+0 1 1=1V1o111111)1 2(2=E22(2'2J243734P33331384>4Z4r4)4#4 4#4 5+5B5"T5'w5'5&5 5@6&P6Gw66667@75_777"7757*89#$9H9_9*n999999 :):A: ^:8:5:: ;;74;#l;,;2;i;iZ<j<J/=Wz="=(=/>)N>*x>1>>&>?L8?&?#?$?'?5@S@Kk@,@@:@9A!RAtAA;AABB:6BqBB/BBB,BAC'ZC.C/CNC0D ?D LDmDvDD D)D6DBE$VE%{E2E%ECEB>F8FF&F(Gm)G^I{/|+ 24k[Ud 3"910cBY=x.Z:?5Q_ M-,VKLeCi$;XbpwFt}@R'6Prs` S!J7yv*Du\(#EaTmG8 Oh f>qo%Wn~zjg]lA<H)&N%s appears to contain a %s filesystem which isn't known to reserve space for DOS-style boot. Installing GRUB there could result in FILESYSTEM DESTRUCTION if valuable data is overwritten by grub-setup (--skip-fs-probe disables this check, use at your own risk)%s, with Linux %s%s, with Linux %s (recovery mode)%s, with kFreeBSD %s- Last modification time %d-%02d-%02d %02d:%02d:%02d %s-l | -r | [-s] grubdev osdisk.ADDRADDR VALUE [MASK]Ask for file name to reboot from.Boot an operating system.Boot into single mode.Boot with debug messages.Boot with verbose messages.Booting a command listChange configured devices.Check Alt key.Check Control key.Check Shift key.Check for CPU features.Check key modifier status.Clear the screen.Compare two files.DEVICEDEVICE [PARTITION[+/-[TYPE]]] ...DIRECTORY [OSBundleRequired]Determine driver.Determine filesystem UUID.Determine filesystem label.Determine filesystem type.Determine partition map type.Device %s:Disable ACPI.Disable SMP.Disable all boot output.Disable/enable SMART (0/1).Display a line of text.Display output on all consoles.Display the usage of this command and exit.Display this help and exit.Do not output the trailing newline.Do not print messages.Do not use APM to halt the computer.Do nothing, successfully.Do nothing, unsuccessfully.Don't display boot diagnostic messages.Don't load host tables specified by comma-separated list.Don't reboot, just halt.ESC at any time exits.EXPRESSIONEXPRESSION ]Enable interpretation of backslash escapes.Enter in KDB on boot.Enter password: Enter username: Evaluate an expression.Exit from GRUB.FILEFILE1 FILE2Filesystem cannot be accessedFilesystem type %sFix video problem.Freeze ATA security settings until reset.GNU GRUB version %sGet/set ATA disk parameters.Halt the system, if possible using APM.Halts the computer. This command does not work on all firmware implementations.IDInvalid device `%s'. Invoke user configuration routing.List PCI devices.List all files.List devices and files.List memory map provided by firmware.List variables from environment block file.Load 64-bit XNU image.Load BIOS dump.Load FreeBSD env.Load FreeBSD kernel module (ELF).Load FreeBSD kernel module.Load Linux.Load XNU extension directory.Load XNU extension package.Load XNU extension.Load XNU image.Load a multiboot 2 kernel.Load a multiboot kernel.Load a multiboot module.Load a splash image for XNU.Load another boot loader.Load another config file without changing context.Load another config file.Load host ACPI tables and tables specified by arguments.Load initrd.Load kernel of FreeBSD.Load kernel of NetBSD.Load kernel of OpenBSD.Load only tables specified by comma-separated list.Load variables from environment block file.Loading Linux %s ...Loading initial ramdisk ...Loading kernel of FreeBSD %s ...MODULEManage the BIOS drive mappings.Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions. %sNUMBER_OF_SECONDSNo device is specified. PARTITION COMMANDSPartition %s:Perform both direct and reverse mappings.Play a tune.Possible arguments are:Possible commands are:Possible devices are:Possible files are:Possible partitions are:Possible things are:Press any key to continue...Print a block list.Print drive identity and settings.Print sizes in a human readable format.Read only LENGTH bytes.Reboot the computer.Remove a module.Reset all mappings to the default values.Retrieve device info.Save read value into variable VARNAME.Save variables to environment block file.Search devices by UUID. If VARIABLE is specified, the first device found is set to a variable.Search devices by file. If VARIABLE is specified, the first device found is set to a variable.Search devices by label. If VARIABLE is specified, the first device found is set to a variable.Set Advanced Power Management (1=low, ..., 254=high, 255=off).Set Automatic Acoustic Management (0=off, 128=quiet, ..., 254=fast).Set OEMID of RSDP, XSDT and RSDT.Set OEMTABLE ID of RSDP, XSDT and RSDT.Set OEMTABLE revision of RSDP, XSDT and RSDT.Set a variable to return value.Set creator field of RSDP, XSDT and RSDT.Set creator revision of RSDP, XSDT and RSDT.Set drive to sleep mode.Set drive to standby mode.Set root device.Set standby timeout (0=off, 1=5s, 2=10s, ..., 240=20m, 241=30m, ...).Set the serial port address.Set the serial port parity.Set the serial port speed.Set the serial port stop bits.Set the serial port word length.Set the serial unit.Set user password (plaintext). Unrecommended and insecure.Set variable with user input.Show a help message.Show a long list with more detailed information.Show loaded modules.Show the contents of a file.Show the current mappings.Show this message.Skip offset bytes from the beginning of file.Specify filename.Test USB support.Test video subsystem.The highlighted entry will be executed automatically in %ds.USER PASSWORDUsage:Use GDB remote debugger instead of DDB.Use serial console.Verbose countdown.Wait for a specified number of seconds.Wait for keypress after every line of output.Warning: invalid background color `%s' Warning: invalid foreground color `%s' Warning: syntax error (missing slash) in `%s' Your embedding area is unusually small. core.img won't fit in it.[-e|-n] STRING[-f FILE][-f FILE] variable_name [...][ENVVAR][OPTIONS] DISK[OPTIONS] FILE_OR_DEVICE[PATTERN ...][[year-]month-day] [hour:minute[:second]]attempting to read the core image `%s' from GRUBattempting to read the core image `%s' from GRUB againcannot compress the kernel imagecannot read `%s' correctlydiskboot.img size must be %u bytesno terminator in the core imagenon-sector-aligned data is found in the core filethe first sector of the core file is not sector-alignedthe sectors of the core file are too fragmentedthe size of `%s' is not %uthe size of `%s' is too largethe size of `%s' is too smallunable to identify a filesystem in %s; safety check can't be performedProject-Id-Version: grub-1.97+20110101 Report-Msgid-Bugs-To: bug-grub@gnu.org POT-Creation-Date: 2013-12-24 21:18+0100 PO-Revision-Date: 2011-02-05 16:04+0100 Last-Translator: Marquinos Language-Team: Asturian Language: ast MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: asturian %s paez contener un sistema de ficheros %s que nun sabi cómo acutar espaciu pa l'arranque estilu DOS. Instalar GRUB ehí podría probar una DESTRUCCIÓN DEL SISTEMA DE FICHEROS si se sobreescriben datos pervalibles per aciu de grub-setup (--skip-fs-probe desactiva esta comprobación; úsalu baxo la to responsabilidá)%s, con Linux %s%s, con Linux %s (mou recuperación)%s, con kFreeBSD %s- Hora de cabera modificación %d-%02d-%02d %02d:%02d:%02d %s-l | -r | [-s] grubdev osdisk.DIREICIÓNADDR VALOR [mázcara]Entrugar pol nome del ficheru pa reaniciar.Arrancar un sistema operativu.Arrancar en mou únicu.Arrancar con mensaxes de depuraciónArrancar con mensaxes detallaos.Arrancar una llista d'órdenesCamudar preseos configuraos.Comprobar tecla AltComprobar tecla CtrlComprobar tecla MayúsComprobar les carauterístiques de la CPU.Comprobar l'estáu del modificador de tecla.Llimpiar la pantalla.Comparar dos ficheros.PRESÉUPRESÉU [PARTICIÓN[+/-[TIPU]]] ...DIREUTORIU [OSBundleRequired]Determinar controlador.Determinar UUID de sistema de ficheros.Determinar etiqueta de sistema de ficheros.Determinar tipu de sistema de ficheros.Determinar el tipu de mapa de particionesPreséu %s:Desactivar ACPIDesactivar SMP.Desactivar tola salida d'arranque.Desactivar/activar SMART (0/1).Amosar una llinia de testu.Amosar salida en toles consoles.Amosar l'usu d'esta orde y colar.Amosar esta aida y colar.Nun amosar la llinia nueva al final.Nun imprentar mensaxes.Nun usar APM pa parar l'equipu.Nun faer res, con ésitu.Nun faer res, ensin ésitu.Nun amosar los mensaxes de diagnósticu d'arranque.Nun carga tables d'anfitrión especificaes na llista separtada por comes.Nun reaniciar, namái parar.Calcar ESC en cualisquier momentu pa colar.ESPRESIÓNESPRESIÓN ]Activar la interpretación de los escapes de barra invertida.Entrar en KDB al bootearIntroduz contraseña: Introduz nome d'usuariu: Evaluar una espresiónColar del GRUB.FICHERUFICHERU1 FICHERU2Nun puede accedese al sistema de ficherosSistema de ficheros triba %sCorrexir problema de vídeu.Conxelar les configuraciones de seguridá ATA hasta reaniciarGNU GRUB version %sLlograr/afitar parámetros ATA del discuParar el sistema, si ye dable usar APM.Pa l'equipu. Esta orde nun funciona en toles implementaciones de firmware.IDPreséu inválidu `%s'. Invocar configuración d'encaminamientu del usuariu.Llista de preseos PCI.Llista de tolos ficheros.Llista de preseos y ficherosLlistar el mapa de memoria apurríu pol firmware.Llista de variables dende'l ficheru de bloque d'entornu.Cargar imaxe XNU de 64-bit.Cargar volcáu de BIOS.Cargar entornu FreeBSD.Cargar módulu (ELF) del núcleu FreeBSD.Cargar módulu del núcleu FreeBSD.Cargar Linux.Cargar direutoriu d'estensión XNU.Cargar paquete d'estensión XNU.Cargar estensión XNU.Cargar imaxe XNU.Cargar núcleu de multiarranque 2.Cargar un núcleu d'arranque múltiple.Cargar un módulu d'arranque múltiple.Cargar una imaxe de bienvinía pa XNU.Cargar otru cargador d'arranque.Cargar otru ficheru de configuración ensin camudar de contestu.Cargar otru ficheru de configuración.Cargar tables ACPI del anfitrión y tables especificaes por argumentos.Cargar initrd.Cargar núcleu de FreeBSD.Cargar núcleu de NetBSD.Cargar núcleu de OpenBSD.Cargar namái tables especificaes en llista dixebrada por comes.Cargar variables dende'l ficheru de bloque d'entornu.Cargando Linux %s ...Cargando discu RAM inicial...Cargando núcleu de FreeBSD %s ...MÓDULUXestiona les asignaciones del controlador de la BIOS.Almítese una mínima edición de llinies al estilu BASH. Pa la primer pallabra, TAB amuesa les posibles formes de completar comandos. En cualesquier otru sitiu, TAB amuesa les posibles formes de completar preseos o ficheros. %sNÚMBERU_DE_SEGUNDOSNun s'especificó dengún preséu. ÓRDENES DE PARTICIÓNPartición %s:Realizar asignaciones direutes ya inversesAfinar.Los posibles argumentos son:Les posibles ordes son:Los posibles preseos son:Los ficheros posibles son:Les posibles particiones son:Les posibles coses son:Calca una tecla pa siguir...Imprentar una llista de bloques.Imprenta la identidá del controlador y configuraciones.Imprentar tamaños nún formatu lleíble por humanos.Lleer namái LENGTH bytes.Reaniciar l'equipu.Desaniciar un módulu.Reaniciar toles asignaciones a valores predeterminados.Recuperar información del preséu.Guardar el valor lleíu na variable VARNAME.Guardar variables nel ficheru de bloque d'entornu.Guetar preseos por UUID. Si s'especificó VARIABLE, el primer preséu alcontráu guárdase nuna variable.Guetar preseos por ficheru. Si s'especificó VARIABLE, el primer preséu atopáu guárdase nuna variable.Guetar preseos por etiqueta. Si s'especificó VARIABLE, el primer preséu atopáu guárdase nuna variable.Afitar el xestor avanzáu d'enerxía (1=baxu, ..., 254=altu, 255=apagáu).Afitar el xestor automáticu d'acústica (0=apagáu, 128=silenciosu, ..., 254=rápidu).Afitar OEMID de RSDP, XSDT y RSDT.Afitar OEMTABLE ID de RSDP, XSDT y RSDT.Afitar revisión OEMTABLE de RSDP, XSDT y RSDT.Afitar una variable pa devolver el valor.Afitar campu creador pa RSDP, CSDT y RSDT.Afitar revisión de creador de RSDP, CSDT y RSDT.Afitar la unidá en mou dormir.Afitar el controlador pal mou n'esperaAfitar el preséu raigañu.Afitar tiempu d'espera (0=apagáu, 1=5s, 2=10s, ..., 240=20m, 241=30m, ...).Afitar la direición del puertu serie.Afitar la paridá del puertu serie.Afita la velocidá del puertu serie.Afitar el bit de posa del puertu serie.Afitar el llargor de la pallabra del puertu de serie.Afitar la unidá serie.Afitar la contraseña d'usuariu (testu planu). Non encamentáu ya inseguru.Afitar la variable cola entrada del usuariu.Amuesa un mensaxe d'aida.Amosar una llista llarga d'información con más detalles.Amosar módulos cargaos.Amosar el conteníu d'un ficheru.Amosar asignaciones actuales.Amosar esti mensax.Saltar bytes de desplazamientu dende l'empiezu del ficheru.Especificar nome del ficheru.Comprobar sofitu USB.Comprobar subsistema de vídeu.La entrada resaltada va executase automáticamente en %ds.CONTRASEÑA D'USUARIUUsu:Usar el depurador llonxanu GDB n'arróu de DDB.Usar consola serie.Cunta regresiva detallada.Esperar un númberu específicu de segundos.Esperar por cada tecla primida dempués de cada llinia de salida.Avisu: color de fondu nun válidu `%s' Avisu: color de primer planu nun válidu `%s' Avisu: fallu de sintasis (falta barra) en `%s' La so área d'empotráu ye inusualmente pequeña. core.img nun va caber nella.[-e|-n] CADENA[-f FICHERU][-f FICHERU] nome_variable [...][ENVVAR][OPCIONES] DISCU[OPCIONES] FICHERU_O_PRESÉU[PATRÓN ...][[añu-]mes-día] [hora:minutu[:segundu]]intentando lleer la imaxe del nucleu `%s' dende'l GRUBintentando lleer la imaxe del nucleu `%s' dende'l GRUB otra vegadanun puede comprimise la imaxe kernelnun puede lleese «%s» correchamenteel tamañu de diskboot.img tien de ser de %u bytesnun hai terminador na imaxe principalatopáronse datos non alliniaos con un sector nel ficheru principalel primer sector del ficheru principal nun ta alliniáu col sectorlos sectores del ficheru núcleu tán enforma estrizaos.el tamañu de «%s» nun ye %uel tamañu de «%s» ye enforma grandeel tamañu de «%s» ye enforma pequeñunun ye dable identificar un sistema d'ficheros en %s; nun puede llevase a cabu una comprobación de seguridáL|"D[#[ [\9\Q\$h\\6\\ \ \ \]"]:] P].]].]%]]]]^_a7 aFXava+bBb Sbtb!bb,bb c$cDc*`cccccc c cd,d,Ld,yd'd-d d(e(Fe)oeee eee"e4fPf Xf7eff1ff%f'g%Eg'kgggggggg gh%h 7hEh Uh bh3ohh$hhhhii6iKi-cii!iiij#j:j`jZ#k~kkkkkkkl(lBlYlsl lll llllmm%m=m\mpmmmmmmm*n3.nbn"}n8nnn o#o6oTogoooo)oop4pPRpppHp&q=qUq!\q,~q qqq q!q*r/rGr\rnrr$rrrrs s;s Ys dsos1s s sss3t>8t$wtttttu#u+7ucuu#uuu$uv6v'Rv9zvvvzvfwmw8ww w wwx#xx+xyy3y"Fyiyzy(yy yyyyz"!z0Dzuzzzz7zz zz