Grub2 Commands
Grub2 Commands
action=print
Commands
Here is a list of commands. The 2nd and 3rd columns say whether or not the command
exists within Grub Legacy and Grub 2 respectively. If the command doesn't exist, but
the functionality is implemented using a different command name or method, the column
will contain the keyword 'replaced'.
GRUB GRUB
Command Comments Group
Legacy 2
blocklist yes yes
boot yes yes
bootp yes no network support is missing
cat yes yes
chainloader yes yes ex. of use chainloader (hd0,1)+1
cmp yes yes
now two variables
color yes replaced
(menu_color_{normal,highlight})
Menu
configfile yes yes default file is /grub.cfg
only
debug yes replaced now a variable
default yes yes now a variable
device yes replaced replaced with loopback
dhcp yes no network support is missing
displayapm yes no maybe useless
displaymem yes replaced replaced by lsmmap
embed yes no unnecessary
Menu
fallback yes replaced now a variable
only
find yes replaced replaced with search
how useful? "debug" variable
fstest yes no
should be enough
geometry yes no ls should suffice
halt yes yes
help yes yes
Menu
hiddenmenu yes replaced see Hiddenmenu
only
hide yes replaced Now a part of parttool
ifconfig yes no network support is missing
impsprobe yes no useless
initrd yes yes
insmod no yes Insert a module
install yes no unnecessary
ioprobe yes no useless
kernel yes replaced replaced with multiboot, linux, etc.
keystatus no yes Check key modifier status
linux no yes Load a 32-bit linux kernel
Load a 16-bit zImage
linux16 no yes
(Memtest86+)
lock yes replaced Implemented differently
loopback no yes Make a device from a file
ls no yes
lsmod no yes List modules
makeactive yes replaced Now a part of parttool
map yes replaced replaced by drivemap
md5crypt yes no should be implemented as a utility
module yes yes
yes no should be merged into module
modulenounzip
multiboot no yes Load a multiboot kernel
Menu
title yes yes shortcut support would be nice
only
unhide yes replaced Now a part of parttool
unset no yes Unset a variable
uppermem yes no evil necessity!
vbeprobe yes replaced replaced with vbeinfo
Commands for the menu only
The menu-specific commands have to be used before any others.
The files must be in plain-text format.
# at the beginning of a line in a configuration file means it is only a comment.
Options are separated by spaces.
All numbers can be either decimal or hexadecimal. A hexadecimal number must be
preceded by `0x', and is case-insensitive.
Extra options or text at the end of the line are ignored unless otherwise specified.
Unrecognized commands are added to the current entry, except before entries start,
where they are ignored.
CategoryDocumentation
GrubWiki: CommandList (zuletzt geändert am 2009-12-14 15:15:41 durch VladimirSerbinenko)