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'.
Command |
GRUB Legacy |
GRUB 2 |
Comments |
Group |
yes |
yes |
|
||
yes |
yes |
|
||
yes |
no |
network support is missing |
||
yes |
yes |
|
||
yes |
yes |
ex. of use chainloader (hd0,0)+1 |
||
yes |
yes |
|
||
yes |
replaced |
now two variables (menu_color_{normal,highlight}) |
||
yes |
yes |
default file is /grub.cfg |
Menu only |
|
yes |
replaced |
now a variable |
||
yes |
yes |
missing support for label and saved |
||
yes |
replaced |
replaced with loopback |
||
yes |
no |
network support is missing |
||
yes |
no |
maybe useless |
||
yes |
no |
how useful? for debugging? |
||
yes |
no |
unnecessary |
||
yes |
no |
required with label support |
Menu only |
|
yes |
replaced |
replaced with search |
||
yes |
no |
how useful? |
||
yes |
no |
ls should suffice |
||
yes |
yes |
|
||
yes |
yes |
|
||
yes |
replaced |
see Hiddenmenu |
Menu only |
|
yes |
no |
Required for old operating systems |
||
yes |
no |
network support is missing |
||
yes |
no |
useless |
||
yes |
yes |
|
||
insmod |
no |
yes |
Insert a module |
|
yes |
no |
unnecessary |
||
yes |
no |
useless |
||
yes |
replaced |
replaced with multiboot, linux, etc. |
||
linux |
no |
yes |
Load a linux kernel |
|
yes |
no |
Required for security |
||
loopback |
no |
yes |
Make a device from a file |
|
ls |
no |
yes |
|
|
lsmod |
no |
yes |
List modules |
|
yes |
no |
useful but a better name is wished |
||
yes |
no |
Required for old operating systems |
||
yes |
no |
should be implemented as a utility |
||
yes |
yes |
|
||
yes |
no |
should be merged into module |
||
multiboot |
no |
yes |
Load a multiboot kernel |
|
yes |
replaced |
now a variable |
||
yes |
no |
Usefull to create/manage partitions without additional programs |
||
yes |
no |
Usefull to create/manage partitions without additional programs |
||
yes |
no |
Required for security |
||
yes |
no |
how useful? |
||
yes |
no |
synonym of halt or reboot? |
||
yes |
no |
used? |
||
yes |
no |
useful for debugging |
||
yes |
yes |
|
||
rescue |
no |
yes |
Enter rescue mode |
|
rmmod |
no |
yes |
Remove a module |
|
yes |
replaced |
now a variable |
||
yes |
no |
useless |
||
yes |
no |
useful |
||
search |
no |
yes |
Search devices by a file or a filesystem label |
|
yes |
yes |
|
||
set |
no |
yes |
Set a variable |
|
yes |
no |
useful |
||
yes |
no |
unnecessary |
||
yes |
yes |
timeout support is missing |
||
yes |
yes |
not completed yet |
||
yes |
no |
how useful? |
||
yes |
replaced |
replaced with vbetest |
||
yes |
no |
network support is missing |
||
yes |
yes |
|
Menu only |
|
yes |
yes |
shortcut support would be nice |
Menu only |
|
yes |
no |
Required for old operating systems |
||
unset |
no |
yes |
Unset a variable |
|
yes |
no |
evil necessity! |
||
yes |
no |
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.