xref: /titanic_41/usr/src/grub/grub-0.97/docs/grub.info-2 (revision 1b8adde7ba7d5e04395c141c5400dc2cffd7d809)
1*1b8adde7SWilliam KucharskiThis is grub.info, produced by makeinfo version 4.0 from grub.texi.
2*1b8adde7SWilliam Kucharski
3*1b8adde7SWilliam KucharskiINFO-DIR-SECTION Kernel
4*1b8adde7SWilliam KucharskiSTART-INFO-DIR-ENTRY
5*1b8adde7SWilliam Kucharski* GRUB: (grub).                 The GRand Unified Bootloader
6*1b8adde7SWilliam Kucharski* grub-install: (grub)Invoking grub-install.    Install GRUB on your drive
7*1b8adde7SWilliam Kucharski* grub-md5-crypt: (grub)Invoking grub-md5-crypt.        Encrypt a password
8*1b8adde7SWilliam Kucharski                                                        in MD5 format
9*1b8adde7SWilliam Kucharski* grub-terminfo: (grub)Invoking grub-terminfo.  Generate a terminfo
10*1b8adde7SWilliam Kucharski                                                command from a
11*1b8adde7SWilliam Kucharski                                                terminfo name
12*1b8adde7SWilliam Kucharski* grub-set-default: (grub)Invoking grub-set-default.    Set a default boot
13*1b8adde7SWilliam Kucharski                                                        entry
14*1b8adde7SWilliam Kucharski* mbchk: (grub)Invoking mbchk.  Check for the format of a Multiboot kernel
15*1b8adde7SWilliam KucharskiEND-INFO-DIR-ENTRY
16*1b8adde7SWilliam Kucharski
17*1b8adde7SWilliam Kucharski   Copyright (C) 1999,2000,2001,2002,2004 Free Software Foundation, Inc.
18*1b8adde7SWilliam Kucharski
19*1b8adde7SWilliam Kucharski   Permission is granted to make and distribute verbatim copies of this
20*1b8adde7SWilliam Kucharskimanual provided the copyright notice and this permission notice are
21*1b8adde7SWilliam Kucharskipreserved on all copies.
22*1b8adde7SWilliam Kucharski
23*1b8adde7SWilliam Kucharski   Permission is granted to copy and distribute modified versions of
24*1b8adde7SWilliam Kucharskithis manual under the conditions for verbatim copying, provided also
25*1b8adde7SWilliam Kucharskithat the entire resulting derived work is distributed under the terms
26*1b8adde7SWilliam Kucharskiof a permission notice identical to this one.
27*1b8adde7SWilliam Kucharski
28*1b8adde7SWilliam Kucharski   Permission is granted to copy and distribute translations of this
29*1b8adde7SWilliam Kucharskimanual into another language, under the above conditions for modified
30*1b8adde7SWilliam Kucharskiversions.
31*1b8adde7SWilliam Kucharski
32*1b8adde7SWilliam Kucharski
33*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Diskless,  Prev: General usage of network support,  Up: Network
34*1b8adde7SWilliam Kucharski
35*1b8adde7SWilliam KucharskiBooting from a network
36*1b8adde7SWilliam Kucharski======================
37*1b8adde7SWilliam Kucharski
38*1b8adde7SWilliam Kucharski   It is sometimes very useful to boot from a network, especially when
39*1b8adde7SWilliam Kucharskiyou use a machine which has no local disk. In this case, you need to
40*1b8adde7SWilliam Kucharskiobtain a kind of Net Boot ROM, such as a PXE ROM or a free software
41*1b8adde7SWilliam Kucharskipackage like Etherboot. Such a Boot ROM first boots the machine, sets
42*1b8adde7SWilliam Kucharskiup the network card installed into the machine, and downloads a second
43*1b8adde7SWilliam Kucharskistage boot image from the network. Then, the second image will try to
44*1b8adde7SWilliam Kucharskiboot an operating system actually from the network.
45*1b8adde7SWilliam Kucharski
46*1b8adde7SWilliam Kucharski   GRUB provides two second stage images, `nbgrub' and `pxegrub' (*note
47*1b8adde7SWilliam KucharskiImages::). These images are the same as the normal Stage 2, except that
48*1b8adde7SWilliam Kucharskithey set up a network automatically, and try to load a configuration
49*1b8adde7SWilliam Kucharskifile from the network, if specified. The usage is very simple: If the
50*1b8adde7SWilliam Kucharskimachine has a PXE ROM, use `pxegrub'. If the machine has an NBI loader
51*1b8adde7SWilliam Kucharskisuch as Etherboot, use `nbgrub'. There is no difference between them
52*1b8adde7SWilliam Kucharskiexcept their formats. Since the way to load a second stage image you
53*1b8adde7SWilliam Kucharskiwant to use should be described in the manual on your Net Boot ROM,
54*1b8adde7SWilliam Kucharskiplease refer to the manual, for more information.
55*1b8adde7SWilliam Kucharski
56*1b8adde7SWilliam Kucharski   However, there is one thing specific to GRUB. Namely, how to specify
57*1b8adde7SWilliam Kucharskia configuration file in a BOOTP/DHCP server. For now, GRUB uses the tag
58*1b8adde7SWilliam Kucharski`150', to get the name of a configuration file. The following is an
59*1b8adde7SWilliam Kucharskiexample with a BOOTP configuration:
60*1b8adde7SWilliam Kucharski
61*1b8adde7SWilliam Kucharski     .allhost:hd=/tmp:bf=null:\
62*1b8adde7SWilliam Kucharski             :ds=145.71.35.1 145.71.32.1:\
63*1b8adde7SWilliam Kucharski             :sm=255.255.254.0:\
64*1b8adde7SWilliam Kucharski             :gw=145.71.35.1:\
65*1b8adde7SWilliam Kucharski             :sa=145.71.35.5:
66*1b8adde7SWilliam Kucharski
67*1b8adde7SWilliam Kucharski     foo:ht=1:ha=63655d0334a7:ip=145.71.35.127:\
68*1b8adde7SWilliam Kucharski             :bf=/nbgrub:\
69*1b8adde7SWilliam Kucharski             :tc=.allhost:\
70*1b8adde7SWilliam Kucharski             :T150="(nd)/tftpboot/menu.lst.foo":
71*1b8adde7SWilliam Kucharski
72*1b8adde7SWilliam Kucharski   Note that you should specify the drive name `(nd)' in the name of
73*1b8adde7SWilliam Kucharskithe configuration file. This is because you might change the root drive
74*1b8adde7SWilliam Kucharskibefore downloading the configuration from the TFTP server when the
75*1b8adde7SWilliam Kucharskipreset menu feature is used (*note Preset Menu::).
76*1b8adde7SWilliam Kucharski
77*1b8adde7SWilliam Kucharski   See the manual of your BOOTP/DHCP server for more information. The
78*1b8adde7SWilliam Kucharskiexact syntax should differ a little from the example.
79*1b8adde7SWilliam Kucharski
80*1b8adde7SWilliam Kucharski
81*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Serial terminal,  Next: Preset Menu,  Prev: Network,  Up: Top
82*1b8adde7SWilliam Kucharski
83*1b8adde7SWilliam KucharskiUsing GRUB via a serial line
84*1b8adde7SWilliam Kucharski****************************
85*1b8adde7SWilliam Kucharski
86*1b8adde7SWilliam Kucharski   This chapter describes how to use the serial terminal support in
87*1b8adde7SWilliam KucharskiGRUB.
88*1b8adde7SWilliam Kucharski
89*1b8adde7SWilliam Kucharski   If you have many computers or computers with no display/keyboard, it
90*1b8adde7SWilliam Kucharskicould be very useful to control the computers through serial
91*1b8adde7SWilliam Kucharskicommunications. To connect one computer with another via a serial line,
92*1b8adde7SWilliam Kucharskiyou need to prepare a null-modem (cross) serial cable, and you may need
93*1b8adde7SWilliam Kucharskito have multiport serial boards, if your computer doesn't have extra
94*1b8adde7SWilliam Kucharskiserial ports. In addition, a terminal emulator is also required, such as
95*1b8adde7SWilliam Kucharskiminicom. Refer to a manual of your operating system, for more
96*1b8adde7SWilliam Kucharskiinformation.
97*1b8adde7SWilliam Kucharski
98*1b8adde7SWilliam Kucharski   As for GRUB, the instruction to set up a serial terminal is quite
99*1b8adde7SWilliam Kucharskisimple. First of all, make sure that you haven't specified the option
100*1b8adde7SWilliam Kucharski`--disable-serial' to the configure script when you built your GRUB
101*1b8adde7SWilliam Kucharskiimages. If you get them in binary form, probably they have serial
102*1b8adde7SWilliam Kucharskiterminal support already.
103*1b8adde7SWilliam Kucharski
104*1b8adde7SWilliam Kucharski   Then, initialize your serial terminal after GRUB starts up. Here is
105*1b8adde7SWilliam Kucharskian example:
106*1b8adde7SWilliam Kucharski
107*1b8adde7SWilliam Kucharski     grub> serial --unit=0 --speed=9600
108*1b8adde7SWilliam Kucharski     grub> terminal serial
109*1b8adde7SWilliam Kucharski
110*1b8adde7SWilliam Kucharski   The command `serial' initializes the serial unit 0 with the speed
111*1b8adde7SWilliam Kucharski9600bps. The serial unit 0 is usually called `COM1', so, if you want to
112*1b8adde7SWilliam Kucharskiuse COM2, you must specify `--unit=1' instead. This command accepts
113*1b8adde7SWilliam Kucharskimany other options, so please refer to *Note serial::, for more details.
114*1b8adde7SWilliam Kucharski
115*1b8adde7SWilliam Kucharski   The command `terminal' (*note terminal::) chooses which type of
116*1b8adde7SWilliam Kucharskiterminal you want to use. In the case above, the terminal will be a
117*1b8adde7SWilliam Kucharskiserial terminal, but you can also pass `console' to the command, as
118*1b8adde7SWilliam Kucharski`terminal serial console'. In this case, a terminal in which you press
119*1b8adde7SWilliam Kucharskiany key will be selected as a GRUB terminal.
120*1b8adde7SWilliam Kucharski
121*1b8adde7SWilliam Kucharski   However, note that GRUB assumes that your terminal emulator is
122*1b8adde7SWilliam Kucharskicompatible with VT100 by default. This is true for most terminal
123*1b8adde7SWilliam Kucharskiemulators nowadays, but you should pass the option `--dumb' to the
124*1b8adde7SWilliam Kucharskicommand if your terminal emulator is not VT100-compatible or implements
125*1b8adde7SWilliam Kucharskifew VT100 escape sequences. If you specify this option then GRUB
126*1b8adde7SWilliam Kucharskiprovides you with an alternative menu interface, because the normal
127*1b8adde7SWilliam Kucharskimenu requires several fancy features of your terminal.
128*1b8adde7SWilliam Kucharski
129*1b8adde7SWilliam Kucharski
130*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Preset Menu,  Next: Security,  Prev: Serial terminal,  Up: Top
131*1b8adde7SWilliam Kucharski
132*1b8adde7SWilliam KucharskiEmbedding a configuration file into GRUB
133*1b8adde7SWilliam Kucharski****************************************
134*1b8adde7SWilliam Kucharski
135*1b8adde7SWilliam Kucharski   GRUB supports a "preset menu" which is to be always loaded before
136*1b8adde7SWilliam Kucharskistarting. The preset menu feature is useful, for example, when your
137*1b8adde7SWilliam Kucharskicomputer has no console but a serial cable. In this case, it is
138*1b8adde7SWilliam Kucharskicritical to set up the serial terminal as soon as possible, since you
139*1b8adde7SWilliam Kucharskicannot see any message until the serial terminal begins to work. So it
140*1b8adde7SWilliam Kucharskiis good to run the commands `serial' (*note serial::) and `terminal'
141*1b8adde7SWilliam Kucharski(*note terminal::) before anything else at the start-up time.
142*1b8adde7SWilliam Kucharski
143*1b8adde7SWilliam Kucharski   How the preset menu works is slightly complicated:
144*1b8adde7SWilliam Kucharski
145*1b8adde7SWilliam Kucharski  1. GRUB checks if the preset menu feature is used, and loads the
146*1b8adde7SWilliam Kucharski     preset menu, if available. This includes running commands and
147*1b8adde7SWilliam Kucharski     reading boot entries, like an ordinary configuration file.
148*1b8adde7SWilliam Kucharski
149*1b8adde7SWilliam Kucharski  2. GRUB checks if the configuration file is available. Note that this
150*1b8adde7SWilliam Kucharski     check is performed *regardless of the existence of the preset
151*1b8adde7SWilliam Kucharski     menu*. The configuration file is loaded even if the preset menu was
152*1b8adde7SWilliam Kucharski     loaded.
153*1b8adde7SWilliam Kucharski
154*1b8adde7SWilliam Kucharski  3. If the preset menu includes any boot entries, they are cleared when
155*1b8adde7SWilliam Kucharski     the configuration file is loaded. It doesn't matter whether the
156*1b8adde7SWilliam Kucharski     configuration file has any entries or no entry. The boot entries
157*1b8adde7SWilliam Kucharski     in the preset menu are used only when GRUB fails in loading the
158*1b8adde7SWilliam Kucharski     configuration file.
159*1b8adde7SWilliam Kucharski
160*1b8adde7SWilliam Kucharski   To enable the preset menu feature, you must rebuild GRUB specifying a
161*1b8adde7SWilliam Kucharskifile to the configure script with the option `--enable-preset-menu'.
162*1b8adde7SWilliam KucharskiThe file has the same semantics as normal configuration files (*note
163*1b8adde7SWilliam KucharskiConfiguration::).
164*1b8adde7SWilliam Kucharski
165*1b8adde7SWilliam Kucharski   Another point you should take care is that the diskless support
166*1b8adde7SWilliam Kucharski(*note Diskless::) diverts the preset menu. Diskless images embed a
167*1b8adde7SWilliam Kucharskipreset menu to execute the command `bootp' (*note bootp::)
168*1b8adde7SWilliam Kucharskiautomatically, unless you specify your own preset menu to the configure
169*1b8adde7SWilliam Kucharskiscript. This means that you must put commands to initialize a network in
170*1b8adde7SWilliam Kucharskithe preset menu yourself, because diskless images don't set it up
171*1b8adde7SWilliam Kucharskiimplicitly, when you use the preset menu explicitly.
172*1b8adde7SWilliam Kucharski
173*1b8adde7SWilliam Kucharski   Therefore, a typical preset menu used with diskless support would be
174*1b8adde7SWilliam Kucharskilike this:
175*1b8adde7SWilliam Kucharski
176*1b8adde7SWilliam Kucharski     # Set up the serial terminal, first of all.
177*1b8adde7SWilliam Kucharski     serial --unit=0 --speed=19200
178*1b8adde7SWilliam Kucharski     terminal --timeout=0 serial
179*1b8adde7SWilliam Kucharski
180*1b8adde7SWilliam Kucharski     # Initialize the network.
181*1b8adde7SWilliam Kucharski     dhcp
182*1b8adde7SWilliam Kucharski
183*1b8adde7SWilliam Kucharski
184*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Security,  Next: Images,  Prev: Preset Menu,  Up: Top
185*1b8adde7SWilliam Kucharski
186*1b8adde7SWilliam KucharskiProtecting your computer from cracking
187*1b8adde7SWilliam Kucharski**************************************
188*1b8adde7SWilliam Kucharski
189*1b8adde7SWilliam Kucharski   You may be interested in how to prevent ordinary users from doing
190*1b8adde7SWilliam Kucharskiwhatever they like, if you share your computer with other people. So
191*1b8adde7SWilliam Kucharskithis chapter describes how to improve the security of GRUB.
192*1b8adde7SWilliam Kucharski
193*1b8adde7SWilliam Kucharski   One thing which could be a security hole is that the user can do too
194*1b8adde7SWilliam Kucharskimany things with GRUB, because GRUB allows one to modify its
195*1b8adde7SWilliam Kucharskiconfiguration and run arbitrary commands at run-time. For example, the
196*1b8adde7SWilliam Kucharskiuser can even read `/etc/passwd' in the command-line interface by the
197*1b8adde7SWilliam Kucharskicommand `cat' (*note cat::). So it is necessary to disable all the
198*1b8adde7SWilliam Kucharskiinteractive operations.
199*1b8adde7SWilliam Kucharski
200*1b8adde7SWilliam Kucharski   Thus, GRUB provides a "password" feature, so that only administrators
201*1b8adde7SWilliam Kucharskican start the interactive operations (i.e. editing menu entries and
202*1b8adde7SWilliam Kucharskientering the command-line interface). To use this feature, you need to
203*1b8adde7SWilliam Kucharskirun the command `password' in your configuration file (*note
204*1b8adde7SWilliam Kucharskipassword::), like this:
205*1b8adde7SWilliam Kucharski
206*1b8adde7SWilliam Kucharski     password --md5 PASSWORD
207*1b8adde7SWilliam Kucharski
208*1b8adde7SWilliam Kucharski   If this is specified, GRUB disallows any interactive control, until
209*1b8adde7SWilliam Kucharskiyou press the key <p> and enter a correct password.  The option `--md5'
210*1b8adde7SWilliam Kucharskitells GRUB that `PASSWORD' is in MD5 format.  If it is omitted, GRUB
211*1b8adde7SWilliam Kucharskiassumes the `PASSWORD' is in clear text.
212*1b8adde7SWilliam Kucharski
213*1b8adde7SWilliam Kucharski   You can encrypt your password with the command `md5crypt' (*note
214*1b8adde7SWilliam Kucharskimd5crypt::). For example, run the grub shell (*note Invoking the grub
215*1b8adde7SWilliam Kucharskishell::), and enter your password:
216*1b8adde7SWilliam Kucharski
217*1b8adde7SWilliam Kucharski     grub> md5crypt
218*1b8adde7SWilliam Kucharski     Password: **********
219*1b8adde7SWilliam Kucharski     Encrypted: $1$U$JK7xFegdxWH6VuppCUSIb.
220*1b8adde7SWilliam Kucharski
221*1b8adde7SWilliam Kucharski   Then, cut and paste the encrypted password to your configuration
222*1b8adde7SWilliam Kucharskifile.
223*1b8adde7SWilliam Kucharski
224*1b8adde7SWilliam Kucharski   Also, you can specify an optional argument to `password'. See this
225*1b8adde7SWilliam Kucharskiexample:
226*1b8adde7SWilliam Kucharski
227*1b8adde7SWilliam Kucharski     password PASSWORD /boot/grub/menu-admin.lst
228*1b8adde7SWilliam Kucharski
229*1b8adde7SWilliam Kucharski   In this case, GRUB will load `/boot/grub/menu-admin.lst' as a
230*1b8adde7SWilliam Kucharskiconfiguration file when you enter the valid password.
231*1b8adde7SWilliam Kucharski
232*1b8adde7SWilliam Kucharski   Another thing which may be dangerous is that any user can choose any
233*1b8adde7SWilliam Kucharskimenu entry. Usually, this wouldn't be problematic, but you might want to
234*1b8adde7SWilliam Kucharskipermit only administrators to run some of your menu entries, such as an
235*1b8adde7SWilliam Kucharskientry for booting an insecure OS like DOS.
236*1b8adde7SWilliam Kucharski
237*1b8adde7SWilliam Kucharski   GRUB provides the command `lock' (*note lock::). This command always
238*1b8adde7SWilliam Kucharskifails until you enter the valid password, so you can use it, like this:
239*1b8adde7SWilliam Kucharski
240*1b8adde7SWilliam Kucharski     title Boot DOS
241*1b8adde7SWilliam Kucharski     lock
242*1b8adde7SWilliam Kucharski     rootnoverify (hd0,1)
243*1b8adde7SWilliam Kucharski     makeactive
244*1b8adde7SWilliam Kucharski     chainload +1
245*1b8adde7SWilliam Kucharski
246*1b8adde7SWilliam Kucharski   You should insert `lock' right after `title', because any user can
247*1b8adde7SWilliam Kucharskiexecute commands in an entry until GRUB encounters `lock'.
248*1b8adde7SWilliam Kucharski
249*1b8adde7SWilliam Kucharski   You can also use the command `password' instead of `lock'. In this
250*1b8adde7SWilliam Kucharskicase the boot process will ask for the password and stop if it was
251*1b8adde7SWilliam Kucharskientered incorrectly.  Since the `password' takes its own PASSWORD
252*1b8adde7SWilliam Kucharskiargument this is useful if you want different passwords for different
253*1b8adde7SWilliam Kucharskientries.
254*1b8adde7SWilliam Kucharski
255*1b8adde7SWilliam Kucharski
256*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Images,  Next: Filesystem,  Prev: Security,  Up: Top
257*1b8adde7SWilliam Kucharski
258*1b8adde7SWilliam KucharskiGRUB image files
259*1b8adde7SWilliam Kucharski****************
260*1b8adde7SWilliam Kucharski
261*1b8adde7SWilliam Kucharski   GRUB consists of several images: two essential stages, optional
262*1b8adde7SWilliam Kucharskistages called "Stage 1.5", one image for bootable CD-ROM, and two
263*1b8adde7SWilliam Kucharskinetwork boot images. Here is a short overview of them. *Note
264*1b8adde7SWilliam KucharskiInternals::, for more details.
265*1b8adde7SWilliam Kucharski
266*1b8adde7SWilliam Kucharski`stage1'
267*1b8adde7SWilliam Kucharski     This is an essential image used for booting up GRUB. Usually, this
268*1b8adde7SWilliam Kucharski     is embedded in an MBR or the boot sector of a partition. Because a
269*1b8adde7SWilliam Kucharski     PC boot sector is 512 bytes, the size of this image is exactly 512
270*1b8adde7SWilliam Kucharski     bytes.
271*1b8adde7SWilliam Kucharski
272*1b8adde7SWilliam Kucharski     All `stage1' must do is to load Stage 2 or Stage 1.5 from a local
273*1b8adde7SWilliam Kucharski     disk. Because of the size restriction, `stage1' encodes the
274*1b8adde7SWilliam Kucharski     location of Stage 2 (or Stage 1.5) in a block list format, so it
275*1b8adde7SWilliam Kucharski     never understand any filesystem structure.
276*1b8adde7SWilliam Kucharski
277*1b8adde7SWilliam Kucharski`stage2'
278*1b8adde7SWilliam Kucharski     This is the core image of GRUB. It does everything but booting up
279*1b8adde7SWilliam Kucharski     itself. Usually, this is put in a filesystem, but that is not
280*1b8adde7SWilliam Kucharski     required.
281*1b8adde7SWilliam Kucharski
282*1b8adde7SWilliam Kucharski`e2fs_stage1_5'
283*1b8adde7SWilliam Kucharski`fat_stage1_5'
284*1b8adde7SWilliam Kucharski`ffs_stage1_5'
285*1b8adde7SWilliam Kucharski`jfs_stage1_5'
286*1b8adde7SWilliam Kucharski`minix_stage1_5'
287*1b8adde7SWilliam Kucharski`reiserfs_stage1_5'
288*1b8adde7SWilliam Kucharski`vstafs_stage1_5'
289*1b8adde7SWilliam Kucharski`xfs_stage1_5'
290*1b8adde7SWilliam Kucharski     These are called "Stage 1.5", because they serve as a bridge
291*1b8adde7SWilliam Kucharski     between `stage1' and `stage2', that is to say, Stage 1.5 is loaded
292*1b8adde7SWilliam Kucharski     by Stage 1 and Stage 1.5 loads Stage 2. The difference between
293*1b8adde7SWilliam Kucharski     `stage1' and `*_stage1_5' is that the former doesn't understand
294*1b8adde7SWilliam Kucharski     any filesystem while the latter understands one filesystem (e.g.
295*1b8adde7SWilliam Kucharski     `e2fs_stage1_5' understands ext2fs). So you can move the Stage 2
296*1b8adde7SWilliam Kucharski     image to another location safely, even after GRUB has been
297*1b8adde7SWilliam Kucharski     installed.
298*1b8adde7SWilliam Kucharski
299*1b8adde7SWilliam Kucharski     While Stage 2 cannot generally be embedded in a fixed area as the
300*1b8adde7SWilliam Kucharski     size is so large, Stage 1.5 can be installed into the area right
301*1b8adde7SWilliam Kucharski     after an MBR, or the boot loader area of a ReiserFS or a FFS.
302*1b8adde7SWilliam Kucharski
303*1b8adde7SWilliam Kucharski`stage2_eltorito'
304*1b8adde7SWilliam Kucharski     This is a boot image for CD-ROMs using the "no emulation mode" in
305*1b8adde7SWilliam Kucharski     El Torito specification. This is identical to Stage 2, except that
306*1b8adde7SWilliam Kucharski     this boots up without Stage 1 and sets up a special drive `(cd)'.
307*1b8adde7SWilliam Kucharski
308*1b8adde7SWilliam Kucharski`nbgrub'
309*1b8adde7SWilliam Kucharski     This is a network boot image for the Network Image Proposal used
310*1b8adde7SWilliam Kucharski     by some network boot loaders, such as Etherboot. This is mostly
311*1b8adde7SWilliam Kucharski     the same as Stage 2, but it also sets up a network and loads a
312*1b8adde7SWilliam Kucharski     configuration file from the network.
313*1b8adde7SWilliam Kucharski
314*1b8adde7SWilliam Kucharski`pxegrub'
315*1b8adde7SWilliam Kucharski     This is another network boot image for the Preboot Execution
316*1b8adde7SWilliam Kucharski     Environment used by several Netboot ROMs. This is identical to
317*1b8adde7SWilliam Kucharski     `nbgrub', except for the format.
318*1b8adde7SWilliam Kucharski
319*1b8adde7SWilliam Kucharski
320*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Filesystem,  Next: Interface,  Prev: Images,  Up: Top
321*1b8adde7SWilliam Kucharski
322*1b8adde7SWilliam KucharskiFilesystem syntax and semantics
323*1b8adde7SWilliam Kucharski*******************************
324*1b8adde7SWilliam Kucharski
325*1b8adde7SWilliam Kucharski   GRUB uses a special syntax for specifying disk drives which can be
326*1b8adde7SWilliam Kucharskiaccessed by BIOS. Because of BIOS limitations, GRUB cannot distinguish
327*1b8adde7SWilliam Kucharskibetween IDE, ESDI, SCSI, or others. You must know yourself which BIOS
328*1b8adde7SWilliam Kucharskidevice is equivalent to which OS device. Normally, that will be clear if
329*1b8adde7SWilliam Kucharskiyou see the files in a device or use the command `find' (*note find::).
330*1b8adde7SWilliam Kucharski
331*1b8adde7SWilliam Kucharski* Menu:
332*1b8adde7SWilliam Kucharski
333*1b8adde7SWilliam Kucharski* Device syntax::               How to specify devices
334*1b8adde7SWilliam Kucharski* File name syntax::            How to specify files
335*1b8adde7SWilliam Kucharski* Block list syntax::           How to specify block lists
336*1b8adde7SWilliam Kucharski
337*1b8adde7SWilliam Kucharski
338*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Device syntax,  Next: File name syntax,  Up: Filesystem
339*1b8adde7SWilliam Kucharski
340*1b8adde7SWilliam KucharskiHow to specify devices
341*1b8adde7SWilliam Kucharski======================
342*1b8adde7SWilliam Kucharski
343*1b8adde7SWilliam Kucharski   The device syntax is like this:
344*1b8adde7SWilliam Kucharski
345*1b8adde7SWilliam Kucharski     `(DEVICE[,PART-NUM][,BSD-SUBPART-LETTER])'
346*1b8adde7SWilliam Kucharski
347*1b8adde7SWilliam Kucharski   `[]' means the parameter is optional. DEVICE should be either `fd'
348*1b8adde7SWilliam Kucharskior `hd' followed by a digit, like `fd0'.  But you can also set DEVICE
349*1b8adde7SWilliam Kucharskito a hexadecimal or a decimal number which is a BIOS drive number, so
350*1b8adde7SWilliam Kucharskithe following are equivalent:
351*1b8adde7SWilliam Kucharski
352*1b8adde7SWilliam Kucharski     (hd0)
353*1b8adde7SWilliam Kucharski     (0x80)
354*1b8adde7SWilliam Kucharski     (128)
355*1b8adde7SWilliam Kucharski
356*1b8adde7SWilliam Kucharski   PART-NUM represents the partition number of DEVICE, starting from
357*1b8adde7SWilliam Kucharskizero for primary partitions and from four for extended partitions, and
358*1b8adde7SWilliam KucharskiBSD-SUBPART-LETTER represents the BSD disklabel subpartition, such as
359*1b8adde7SWilliam Kucharski`a' or `e'.
360*1b8adde7SWilliam Kucharski
361*1b8adde7SWilliam Kucharski   A shortcut for specifying BSD subpartitions is
362*1b8adde7SWilliam Kucharski`(DEVICE,BSD-SUBPART-LETTER)', in this case, GRUB searches for the
363*1b8adde7SWilliam Kucharskifirst PC partition containing a BSD disklabel, then finds the
364*1b8adde7SWilliam Kucharskisubpartition BSD-SUBPART-LETTER. Here is an example:
365*1b8adde7SWilliam Kucharski
366*1b8adde7SWilliam Kucharski     (hd0,a)
367*1b8adde7SWilliam Kucharski
368*1b8adde7SWilliam Kucharski   The syntax `(hd0)' represents using the entire disk (or the MBR when
369*1b8adde7SWilliam Kucharskiinstalling GRUB), while the syntax `(hd0,0)' represents using the first
370*1b8adde7SWilliam Kucharskipartition of the disk (or the boot sector of the partition when
371*1b8adde7SWilliam Kucharskiinstalling GRUB).
372*1b8adde7SWilliam Kucharski
373*1b8adde7SWilliam Kucharski   If you enabled the network support, the special drive, `(nd)', is
374*1b8adde7SWilliam Kucharskialso available. Before using the network drive, you must initialize the
375*1b8adde7SWilliam Kucharskinetwork. *Note Network::, for more information.
376*1b8adde7SWilliam Kucharski
377*1b8adde7SWilliam Kucharski   If you boot GRUB from a CD-ROM, `(cd)' is available. *Note Making a
378*1b8adde7SWilliam KucharskiGRUB bootable CD-ROM::, for details.
379*1b8adde7SWilliam Kucharski
380*1b8adde7SWilliam Kucharski
381*1b8adde7SWilliam KucharskiFile: grub.info,  Node: File name syntax,  Next: Block list syntax,  Prev: Device syntax,  Up: Filesystem
382*1b8adde7SWilliam Kucharski
383*1b8adde7SWilliam KucharskiHow to specify files
384*1b8adde7SWilliam Kucharski====================
385*1b8adde7SWilliam Kucharski
386*1b8adde7SWilliam Kucharski   There are two ways to specify files, by "absolute file name" and by
387*1b8adde7SWilliam Kucharski"block list".
388*1b8adde7SWilliam Kucharski
389*1b8adde7SWilliam Kucharski   An absolute file name resembles a Unix absolute file name, using `/'
390*1b8adde7SWilliam Kucharskifor the directory separator (not `\' as in DOS). One example is
391*1b8adde7SWilliam Kucharski`(hd0,0)/boot/grub/menu.lst'. This means the file `/boot/grub/menu.lst'
392*1b8adde7SWilliam Kucharskiin the first partition of the first hard disk. If you omit the device
393*1b8adde7SWilliam Kucharskiname in an absolute file name, GRUB uses GRUB's "root device"
394*1b8adde7SWilliam Kucharskiimplicitly. So if you set the root device to, say, `(hd1,0)' by the
395*1b8adde7SWilliam Kucharskicommand `root' (*note root::), then `/boot/kernel' is the same as
396*1b8adde7SWilliam Kucharski`(hd1,0)/boot/kernel'.
397*1b8adde7SWilliam Kucharski
398*1b8adde7SWilliam Kucharski
399*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Block list syntax,  Prev: File name syntax,  Up: Filesystem
400*1b8adde7SWilliam Kucharski
401*1b8adde7SWilliam KucharskiHow to specify block lists
402*1b8adde7SWilliam Kucharski==========================
403*1b8adde7SWilliam Kucharski
404*1b8adde7SWilliam Kucharski   A block list is used for specifying a file that doesn't appear in the
405*1b8adde7SWilliam Kucharskifilesystem, like a chainloader. The syntax is
406*1b8adde7SWilliam Kucharski`[OFFSET]+LENGTH[,[OFFSET]+LENGTH]...'.  Here is an example:
407*1b8adde7SWilliam Kucharski
408*1b8adde7SWilliam Kucharski     `0+100,200+1,300+300'
409*1b8adde7SWilliam Kucharski
410*1b8adde7SWilliam Kucharski   This represents that GRUB should read blocks 0 through 99, block 200,
411*1b8adde7SWilliam Kucharskiand blocks 300 through 599. If you omit an offset, then GRUB assumes
412*1b8adde7SWilliam Kucharskithe offset is zero.
413*1b8adde7SWilliam Kucharski
414*1b8adde7SWilliam Kucharski   Like the file name syntax (*note File name syntax::), if a blocklist
415*1b8adde7SWilliam Kucharskidoes not contain a device name, then GRUB uses GRUB's "root device". So
416*1b8adde7SWilliam Kucharski`(hd0,1)+1' is the same as `+1' when the root device is `(hd0,1)'.
417*1b8adde7SWilliam Kucharski
418*1b8adde7SWilliam Kucharski
419*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Interface,  Next: Commands,  Prev: Filesystem,  Up: Top
420*1b8adde7SWilliam Kucharski
421*1b8adde7SWilliam KucharskiGRUB's user interface
422*1b8adde7SWilliam Kucharski*********************
423*1b8adde7SWilliam Kucharski
424*1b8adde7SWilliam Kucharski   GRUB has both a simple menu interface for choosing preset entries
425*1b8adde7SWilliam Kucharskifrom a configuration file, and a highly flexible command-line for
426*1b8adde7SWilliam Kucharskiperforming any desired combination of boot commands.
427*1b8adde7SWilliam Kucharski
428*1b8adde7SWilliam Kucharski   GRUB looks for its configuration file as soon as it is loaded. If one
429*1b8adde7SWilliam Kucharskiis found, then the full menu interface is activated using whatever
430*1b8adde7SWilliam Kucharskientries were found in the file. If you choose the "command-line" menu
431*1b8adde7SWilliam Kucharskioption, or if the configuration file was not found, then GRUB drops to
432*1b8adde7SWilliam Kucharskithe command-line interface.
433*1b8adde7SWilliam Kucharski
434*1b8adde7SWilliam Kucharski* Menu:
435*1b8adde7SWilliam Kucharski
436*1b8adde7SWilliam Kucharski* Command-line interface::      The flexible command-line interface
437*1b8adde7SWilliam Kucharski* Menu interface::              The simple menu interface
438*1b8adde7SWilliam Kucharski* Menu entry editor::           Editing a menu entry
439*1b8adde7SWilliam Kucharski* Hidden menu interface::       The hidden menu interface
440*1b8adde7SWilliam Kucharski
441*1b8adde7SWilliam Kucharski
442*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Command-line interface,  Next: Menu interface,  Up: Interface
443*1b8adde7SWilliam Kucharski
444*1b8adde7SWilliam KucharskiThe flexible command-line interface
445*1b8adde7SWilliam Kucharski===================================
446*1b8adde7SWilliam Kucharski
447*1b8adde7SWilliam Kucharski   The command-line interface provides a prompt and after it an editable
448*1b8adde7SWilliam Kucharskitext area much like a command-line in Unix or DOS. Each command is
449*1b8adde7SWilliam Kucharskiimmediately executed after it is entered(1) (*note Command-line
450*1b8adde7SWilliam Kucharskiinterface-Footnote-1::). The commands (*note Command-line and menu
451*1b8adde7SWilliam Kucharskientry commands::) are a subset of those available in the configuration
452*1b8adde7SWilliam Kucharskifile, used with exactly the same syntax.
453*1b8adde7SWilliam Kucharski
454*1b8adde7SWilliam Kucharski   Cursor movement and editing of the text on the line can be done via a
455*1b8adde7SWilliam Kucharskisubset of the functions available in the Bash shell:
456*1b8adde7SWilliam Kucharski
457*1b8adde7SWilliam Kucharski<C-f>
458*1b8adde7SWilliam Kucharski<PC right key>
459*1b8adde7SWilliam Kucharski     Move forward one character.
460*1b8adde7SWilliam Kucharski
461*1b8adde7SWilliam Kucharski<C-b>
462*1b8adde7SWilliam Kucharski<PC left key>
463*1b8adde7SWilliam Kucharski     Move back one character.
464*1b8adde7SWilliam Kucharski
465*1b8adde7SWilliam Kucharski<C-a>
466*1b8adde7SWilliam Kucharski<HOME>
467*1b8adde7SWilliam Kucharski     Move to the start of the line.
468*1b8adde7SWilliam Kucharski
469*1b8adde7SWilliam Kucharski<C-e>
470*1b8adde7SWilliam Kucharski<END>
471*1b8adde7SWilliam Kucharski     Move the the end of the line.
472*1b8adde7SWilliam Kucharski
473*1b8adde7SWilliam Kucharski<C-d>
474*1b8adde7SWilliam Kucharski<DEL>
475*1b8adde7SWilliam Kucharski     Delete the character underneath the cursor.
476*1b8adde7SWilliam Kucharski
477*1b8adde7SWilliam Kucharski<C-h>
478*1b8adde7SWilliam Kucharski<BS>
479*1b8adde7SWilliam Kucharski     Delete the character to the left of the cursor.
480*1b8adde7SWilliam Kucharski
481*1b8adde7SWilliam Kucharski<C-k>
482*1b8adde7SWilliam Kucharski     Kill the text from the current cursor position to the end of the
483*1b8adde7SWilliam Kucharski     line.
484*1b8adde7SWilliam Kucharski
485*1b8adde7SWilliam Kucharski<C-u>
486*1b8adde7SWilliam Kucharski     Kill backward from the cursor to the beginning of the line.
487*1b8adde7SWilliam Kucharski
488*1b8adde7SWilliam Kucharski<C-y>
489*1b8adde7SWilliam Kucharski     Yank the killed text back into the buffer at the cursor.
490*1b8adde7SWilliam Kucharski
491*1b8adde7SWilliam Kucharski<C-p>
492*1b8adde7SWilliam Kucharski<PC up key>
493*1b8adde7SWilliam Kucharski     Move up through the history list.
494*1b8adde7SWilliam Kucharski
495*1b8adde7SWilliam Kucharski<C-n>
496*1b8adde7SWilliam Kucharski<PC down key>
497*1b8adde7SWilliam Kucharski     Move down through the history list.
498*1b8adde7SWilliam Kucharski
499*1b8adde7SWilliam Kucharski   When typing commands interactively, if the cursor is within or before
500*1b8adde7SWilliam Kucharskithe first word in the command-line, pressing the <TAB> key (or <C-i>)
501*1b8adde7SWilliam Kucharskiwill display a listing of the available commands, and if the cursor is
502*1b8adde7SWilliam Kucharskiafter the first word, the `<TAB>' will provide a completion listing of
503*1b8adde7SWilliam Kucharskidisks, partitions, and file names depending on the context. Note that
504*1b8adde7SWilliam Kucharskito obtain a list of drives, one must open a parenthesis, as `root ('.
505*1b8adde7SWilliam Kucharski
506*1b8adde7SWilliam Kucharski   Note that you cannot use the completion functionality in the TFTP
507*1b8adde7SWilliam Kucharskifilesystem. This is because TFTP doesn't support file name listing for
508*1b8adde7SWilliam Kucharskithe security.
509*1b8adde7SWilliam Kucharski
510*1b8adde7SWilliam Kucharski
511*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Command-line interface-Footnotes,  Up: Command-line interface
512*1b8adde7SWilliam Kucharski
513*1b8adde7SWilliam Kucharski   (1) However, this behavior will be changed in the future version, in
514*1b8adde7SWilliam Kucharskia user-invisible way.
515*1b8adde7SWilliam Kucharski
516*1b8adde7SWilliam Kucharski
517*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Menu interface,  Next: Menu entry editor,  Prev: Command-line interface,  Up: Interface
518*1b8adde7SWilliam Kucharski
519*1b8adde7SWilliam KucharskiThe simple menu interface
520*1b8adde7SWilliam Kucharski=========================
521*1b8adde7SWilliam Kucharski
522*1b8adde7SWilliam Kucharski   The menu interface is quite easy to use. Its commands are both
523*1b8adde7SWilliam Kucharskireasonably intuitive and described on screen.
524*1b8adde7SWilliam Kucharski
525*1b8adde7SWilliam Kucharski   Basically, the menu interface provides a list of "boot entries" to
526*1b8adde7SWilliam Kucharskithe user to choose from. Use the arrow keys to select the entry of
527*1b8adde7SWilliam Kucharskichoice, then press <RET> to run it.  An optional timeout is available
528*1b8adde7SWilliam Kucharskito boot the default entry (the first one if not set), which is aborted
529*1b8adde7SWilliam Kucharskiby pressing any key.
530*1b8adde7SWilliam Kucharski
531*1b8adde7SWilliam Kucharski   Commands are available to enter a bare command-line by pressing <c>
532*1b8adde7SWilliam Kucharski(which operates exactly like the non-config-file version of GRUB, but
533*1b8adde7SWilliam Kucharskiallows one to return to the menu if desired by pressing <ESC>) or to
534*1b8adde7SWilliam Kucharskiedit any of the "boot entries" by pressing <e>.
535*1b8adde7SWilliam Kucharski
536*1b8adde7SWilliam Kucharski   If you protect the menu interface with a password (*note Security::),
537*1b8adde7SWilliam Kucharskiall you can do is choose an entry by pressing <RET>, or press <p> to
538*1b8adde7SWilliam Kucharskienter the password.
539*1b8adde7SWilliam Kucharski
540*1b8adde7SWilliam Kucharski
541*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Menu entry editor,  Next: Hidden menu interface,  Prev: Menu interface,  Up: Interface
542*1b8adde7SWilliam Kucharski
543*1b8adde7SWilliam KucharskiEditing a menu entry
544*1b8adde7SWilliam Kucharski====================
545*1b8adde7SWilliam Kucharski
546*1b8adde7SWilliam Kucharski   The menu entry editor looks much like the main menu interface, but
547*1b8adde7SWilliam Kucharskithe lines in the menu are individual commands in the selected entry
548*1b8adde7SWilliam Kucharskiinstead of entry names.
549*1b8adde7SWilliam Kucharski
550*1b8adde7SWilliam Kucharski   If an <ESC> is pressed in the editor, it aborts all the changes made
551*1b8adde7SWilliam Kucharskito the configuration entry and returns to the main menu interface.
552*1b8adde7SWilliam Kucharski
553*1b8adde7SWilliam Kucharski   When a particular line is selected, the editor places the user in a
554*1b8adde7SWilliam Kucharskispecial version of the GRUB command-line to edit that line.  When the
555*1b8adde7SWilliam Kucharskiuser hits <RET>, GRUB replaces the line in question in the boot entry
556*1b8adde7SWilliam Kucharskiwith the changes (unless it was aborted via <ESC>, in which case the
557*1b8adde7SWilliam Kucharskichanges are thrown away).
558*1b8adde7SWilliam Kucharski
559*1b8adde7SWilliam Kucharski   If you want to add a new line to the menu entry, press <o> if adding
560*1b8adde7SWilliam Kucharskia line after the current line or press <O> if before the current line.
561*1b8adde7SWilliam Kucharski
562*1b8adde7SWilliam Kucharski   To delete a line, hit the key <d>. Although GRUB unfortunately does
563*1b8adde7SWilliam Kucharskinot support "undo", you can do almost the same thing by just returning
564*1b8adde7SWilliam Kucharskito the main menu.
565*1b8adde7SWilliam Kucharski
566*1b8adde7SWilliam Kucharski
567*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Hidden menu interface,  Prev: Menu entry editor,  Up: Interface
568*1b8adde7SWilliam Kucharski
569*1b8adde7SWilliam KucharskiThe hidden menu interface
570*1b8adde7SWilliam Kucharski=========================
571*1b8adde7SWilliam Kucharski
572*1b8adde7SWilliam Kucharski   When your terminal is dumb or you request GRUB to hide the menu
573*1b8adde7SWilliam Kucharskiinterface explicitly with the command `hiddenmenu' (*note
574*1b8adde7SWilliam Kucharskihiddenmenu::), GRUB doesn't show the menu interface (*note Menu
575*1b8adde7SWilliam Kucharskiinterface::) and automatically boots the default entry, unless
576*1b8adde7SWilliam Kucharskiinterrupted by pressing <ESC>.
577*1b8adde7SWilliam Kucharski
578*1b8adde7SWilliam Kucharski   When you interrupt the timeout and your terminal is dumb, GRUB falls
579*1b8adde7SWilliam Kucharskiback to the command-line interface (*note Command-line interface::).
580*1b8adde7SWilliam Kucharski
581*1b8adde7SWilliam Kucharski
582*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Commands,  Next: Troubleshooting,  Prev: Interface,  Up: Top
583*1b8adde7SWilliam Kucharski
584*1b8adde7SWilliam KucharskiThe list of available commands
585*1b8adde7SWilliam Kucharski******************************
586*1b8adde7SWilliam Kucharski
587*1b8adde7SWilliam Kucharski   In this chapter, we list all commands that are available in GRUB.
588*1b8adde7SWilliam Kucharski
589*1b8adde7SWilliam Kucharski   Commands belong to different groups. A few can only be used in the
590*1b8adde7SWilliam Kucharskiglobal section of the configuration file (or "menu"); most of them can
591*1b8adde7SWilliam Kucharskibe entered on the command-line and can be used either anywhere in the
592*1b8adde7SWilliam Kucharskimenu or specifically in the menu entries.
593*1b8adde7SWilliam Kucharski
594*1b8adde7SWilliam Kucharski* Menu:
595*1b8adde7SWilliam Kucharski
596*1b8adde7SWilliam Kucharski* Menu-specific commands::
597*1b8adde7SWilliam Kucharski* General commands::
598*1b8adde7SWilliam Kucharski* Command-line and menu entry commands::
599*1b8adde7SWilliam Kucharski
600*1b8adde7SWilliam Kucharski
601*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Menu-specific commands,  Next: General commands,  Up: Commands
602*1b8adde7SWilliam Kucharski
603*1b8adde7SWilliam KucharskiThe list of commands for the menu only
604*1b8adde7SWilliam Kucharski======================================
605*1b8adde7SWilliam Kucharski
606*1b8adde7SWilliam Kucharski   The semantics used in parsing the configuration file are the
607*1b8adde7SWilliam Kucharskifollowing:
608*1b8adde7SWilliam Kucharski
609*1b8adde7SWilliam Kucharski   * The menu-specific commands have to be used before any others.
610*1b8adde7SWilliam Kucharski
611*1b8adde7SWilliam Kucharski   * The files _must_ be in plain-text format.
612*1b8adde7SWilliam Kucharski
613*1b8adde7SWilliam Kucharski   * `#' at the beginning of a line in a configuration file means it is
614*1b8adde7SWilliam Kucharski     only a comment.
615*1b8adde7SWilliam Kucharski
616*1b8adde7SWilliam Kucharski   * Options are separated by spaces.
617*1b8adde7SWilliam Kucharski
618*1b8adde7SWilliam Kucharski   * All numbers can be either decimal or hexadecimal. A hexadecimal
619*1b8adde7SWilliam Kucharski     number must be preceded by `0x', and is case-insensitive.
620*1b8adde7SWilliam Kucharski
621*1b8adde7SWilliam Kucharski   * Extra options or text at the end of the line are ignored unless
622*1b8adde7SWilliam Kucharski     otherwise specified.
623*1b8adde7SWilliam Kucharski
624*1b8adde7SWilliam Kucharski   * Unrecognized commands are added to the current entry, except
625*1b8adde7SWilliam Kucharski     before entries start, where they are ignored.
626*1b8adde7SWilliam Kucharski
627*1b8adde7SWilliam Kucharski   These commands can only be used in the menu:
628*1b8adde7SWilliam Kucharski
629*1b8adde7SWilliam Kucharski* Menu:
630*1b8adde7SWilliam Kucharski
631*1b8adde7SWilliam Kucharski* default::                     Set the default entry
632*1b8adde7SWilliam Kucharski* fallback::                    Set the fallback entry
633*1b8adde7SWilliam Kucharski* hiddenmenu::                  Hide the menu interface
634*1b8adde7SWilliam Kucharski* timeout::                     Set the timeout
635*1b8adde7SWilliam Kucharski* title::                       Start a menu entry
636*1b8adde7SWilliam Kucharski
637*1b8adde7SWilliam Kucharski
638*1b8adde7SWilliam KucharskiFile: grub.info,  Node: default,  Next: fallback,  Up: Menu-specific commands
639*1b8adde7SWilliam Kucharski
640*1b8adde7SWilliam Kucharskidefault
641*1b8adde7SWilliam Kucharski-------
642*1b8adde7SWilliam Kucharski
643*1b8adde7SWilliam Kucharski - Command: default num
644*1b8adde7SWilliam Kucharski     Set the default entry to the entry number NUM. Numbering starts
645*1b8adde7SWilliam Kucharski     from 0, and the entry number 0 is the default if the command is not
646*1b8adde7SWilliam Kucharski     used.
647*1b8adde7SWilliam Kucharski
648*1b8adde7SWilliam Kucharski     You can specify `saved' instead of a number. In this case, the
649*1b8adde7SWilliam Kucharski     default entry is the entry saved with the command `savedefault'.
650*1b8adde7SWilliam Kucharski     *Note savedefault::, for more information.
651*1b8adde7SWilliam Kucharski
652*1b8adde7SWilliam Kucharski
653*1b8adde7SWilliam KucharskiFile: grub.info,  Node: fallback,  Next: hiddenmenu,  Prev: default,  Up: Menu-specific commands
654*1b8adde7SWilliam Kucharski
655*1b8adde7SWilliam Kucharskifallback
656*1b8adde7SWilliam Kucharski--------
657*1b8adde7SWilliam Kucharski
658*1b8adde7SWilliam Kucharski - Command: fallback num...
659*1b8adde7SWilliam Kucharski     Go into unattended boot mode: if the default boot entry has any
660*1b8adde7SWilliam Kucharski     errors, instead of waiting for the user to do something,
661*1b8adde7SWilliam Kucharski     immediately start over using the NUM entry (same numbering as the
662*1b8adde7SWilliam Kucharski     `default' command (*note default::)). This obviously won't help if
663*1b8adde7SWilliam Kucharski     the machine was rebooted by a kernel that GRUB loaded. You can
664*1b8adde7SWilliam Kucharski     specify multiple fallback entry numbers.
665*1b8adde7SWilliam Kucharski
666*1b8adde7SWilliam Kucharski
667*1b8adde7SWilliam KucharskiFile: grub.info,  Node: hiddenmenu,  Next: timeout,  Prev: fallback,  Up: Menu-specific commands
668*1b8adde7SWilliam Kucharski
669*1b8adde7SWilliam Kucharskihiddenmenu
670*1b8adde7SWilliam Kucharski----------
671*1b8adde7SWilliam Kucharski
672*1b8adde7SWilliam Kucharski - Command: hiddenmenu
673*1b8adde7SWilliam Kucharski     Don't display the menu. If the command is used, no menu will be
674*1b8adde7SWilliam Kucharski     displayed on the control terminal, and the default entry will be
675*1b8adde7SWilliam Kucharski     booted after the timeout expired. The user can still request the
676*1b8adde7SWilliam Kucharski     menu to be displayed by pressing <ESC> before the timeout expires.
677*1b8adde7SWilliam Kucharski     See also *Note Hidden menu interface::.
678*1b8adde7SWilliam Kucharski
679*1b8adde7SWilliam Kucharski
680*1b8adde7SWilliam KucharskiFile: grub.info,  Node: timeout,  Next: title,  Prev: hiddenmenu,  Up: Menu-specific commands
681*1b8adde7SWilliam Kucharski
682*1b8adde7SWilliam Kucharskitimeout
683*1b8adde7SWilliam Kucharski-------
684*1b8adde7SWilliam Kucharski
685*1b8adde7SWilliam Kucharski - Command: timeout sec
686*1b8adde7SWilliam Kucharski     Set a timeout, in SEC seconds, before automatically booting the
687*1b8adde7SWilliam Kucharski     default entry (normally the first entry defined).
688*1b8adde7SWilliam Kucharski
689*1b8adde7SWilliam Kucharski
690*1b8adde7SWilliam KucharskiFile: grub.info,  Node: title,  Prev: timeout,  Up: Menu-specific commands
691*1b8adde7SWilliam Kucharski
692*1b8adde7SWilliam Kucharskititle
693*1b8adde7SWilliam Kucharski-----
694*1b8adde7SWilliam Kucharski
695*1b8adde7SWilliam Kucharski - Command: title name ...
696*1b8adde7SWilliam Kucharski     Start a new boot entry, and set its name to the contents of the
697*1b8adde7SWilliam Kucharski     rest of the line, starting with the first non-space character.
698*1b8adde7SWilliam Kucharski
699*1b8adde7SWilliam Kucharski
700*1b8adde7SWilliam KucharskiFile: grub.info,  Node: General commands,  Next: Command-line and menu entry commands,  Prev: Menu-specific commands,  Up: Commands
701*1b8adde7SWilliam Kucharski
702*1b8adde7SWilliam KucharskiThe list of general commands
703*1b8adde7SWilliam Kucharski============================
704*1b8adde7SWilliam Kucharski
705*1b8adde7SWilliam Kucharski   Commands usable anywhere in the menu and in the command-line.
706*1b8adde7SWilliam Kucharski
707*1b8adde7SWilliam Kucharski* Menu:
708*1b8adde7SWilliam Kucharski
709*1b8adde7SWilliam Kucharski* bootp::                       Initialize a network device via BOOTP
710*1b8adde7SWilliam Kucharski* color::                       Color the menu interface
711*1b8adde7SWilliam Kucharski* device::                      Specify a file as a drive
712*1b8adde7SWilliam Kucharski* dhcp::                        Initialize a network device via DHCP
713*1b8adde7SWilliam Kucharski* hide::                        Hide a partition
714*1b8adde7SWilliam Kucharski* ifconfig::                    Configure a network device manually
715*1b8adde7SWilliam Kucharski* pager::                       Change the state of the internal pager
716*1b8adde7SWilliam Kucharski* partnew::                     Make a primary partition
717*1b8adde7SWilliam Kucharski* parttype::                    Change the type of a partition
718*1b8adde7SWilliam Kucharski* password::                    Set a password for the menu interface
719*1b8adde7SWilliam Kucharski* rarp::                        Initialize a network device via RARP
720*1b8adde7SWilliam Kucharski* serial::                      Set up a serial device
721*1b8adde7SWilliam Kucharski* setkey::                      Configure the key map
722*1b8adde7SWilliam Kucharski* terminal::                    Choose a terminal
723*1b8adde7SWilliam Kucharski* terminfo::                    Define escape sequences for a terminal
724*1b8adde7SWilliam Kucharski* tftpserver::                  Specify a TFTP server
725*1b8adde7SWilliam Kucharski* unhide::                      Unhide a partition
726*1b8adde7SWilliam Kucharski
727*1b8adde7SWilliam Kucharski
728*1b8adde7SWilliam KucharskiFile: grub.info,  Node: bootp,  Next: color,  Up: General commands
729*1b8adde7SWilliam Kucharski
730*1b8adde7SWilliam Kucharskibootp
731*1b8adde7SWilliam Kucharski-----
732*1b8adde7SWilliam Kucharski
733*1b8adde7SWilliam Kucharski - Command: bootp [`--with-configfile']
734*1b8adde7SWilliam Kucharski     Initialize a network device via the "BOOTP" protocol. This command
735*1b8adde7SWilliam Kucharski     is only available if GRUB is compiled with netboot support. See
736*1b8adde7SWilliam Kucharski     also *Note Network::.
737*1b8adde7SWilliam Kucharski
738*1b8adde7SWilliam Kucharski     If you specify `--with-configfile' to this command, GRUB will
739*1b8adde7SWilliam Kucharski     fetch and load a configuration file specified by your BOOTP server
740*1b8adde7SWilliam Kucharski     with the vendor tag `150'.
741*1b8adde7SWilliam Kucharski
742*1b8adde7SWilliam Kucharski
743*1b8adde7SWilliam KucharskiFile: grub.info,  Node: color,  Next: device,  Prev: bootp,  Up: General commands
744*1b8adde7SWilliam Kucharski
745*1b8adde7SWilliam Kucharskicolor
746*1b8adde7SWilliam Kucharski-----
747*1b8adde7SWilliam Kucharski
748*1b8adde7SWilliam Kucharski - Command: color normal [highlight]
749*1b8adde7SWilliam Kucharski     Change the menu colors. The color NORMAL is used for most lines in
750*1b8adde7SWilliam Kucharski     the menu (*note Menu interface::), and the color HIGHLIGHT is used
751*1b8adde7SWilliam Kucharski     to highlight the line where the cursor points. If you omit
752*1b8adde7SWilliam Kucharski     HIGHLIGHT, then the inverted color of NORMAL is used for the
753*1b8adde7SWilliam Kucharski     highlighted line. The format of a color is
754*1b8adde7SWilliam Kucharski     `FOREGROUND/BACKGROUND'. FOREGROUND and BACKGROUND are symbolic
755*1b8adde7SWilliam Kucharski     color names. A symbolic color name must be one of these:
756*1b8adde7SWilliam Kucharski
757*1b8adde7SWilliam Kucharski        * black
758*1b8adde7SWilliam Kucharski
759*1b8adde7SWilliam Kucharski        * blue
760*1b8adde7SWilliam Kucharski
761*1b8adde7SWilliam Kucharski        * green
762*1b8adde7SWilliam Kucharski
763*1b8adde7SWilliam Kucharski        * cyan
764*1b8adde7SWilliam Kucharski
765*1b8adde7SWilliam Kucharski        * red
766*1b8adde7SWilliam Kucharski
767*1b8adde7SWilliam Kucharski        * magenta
768*1b8adde7SWilliam Kucharski
769*1b8adde7SWilliam Kucharski        * brown
770*1b8adde7SWilliam Kucharski
771*1b8adde7SWilliam Kucharski        * light-gray
772*1b8adde7SWilliam Kucharski
773*1b8adde7SWilliam Kucharski          *These below can be specified only for the foreground.*
774*1b8adde7SWilliam Kucharski
775*1b8adde7SWilliam Kucharski        * dark-gray
776*1b8adde7SWilliam Kucharski
777*1b8adde7SWilliam Kucharski        * light-blue
778*1b8adde7SWilliam Kucharski
779*1b8adde7SWilliam Kucharski        * light-green
780*1b8adde7SWilliam Kucharski
781*1b8adde7SWilliam Kucharski        * light-cyan
782*1b8adde7SWilliam Kucharski
783*1b8adde7SWilliam Kucharski        * light-red
784*1b8adde7SWilliam Kucharski
785*1b8adde7SWilliam Kucharski        * light-magenta
786*1b8adde7SWilliam Kucharski
787*1b8adde7SWilliam Kucharski        * yellow
788*1b8adde7SWilliam Kucharski
789*1b8adde7SWilliam Kucharski        * white
790*1b8adde7SWilliam Kucharski
791*1b8adde7SWilliam Kucharski     But only the first eight names can be used for BACKGROUND. You can
792*1b8adde7SWilliam Kucharski     prefix `blink-' to FOREGROUND if you want a blinking foreground
793*1b8adde7SWilliam Kucharski     color.
794*1b8adde7SWilliam Kucharski
795*1b8adde7SWilliam Kucharski     This command can be used in the configuration file and on the
796*1b8adde7SWilliam Kucharski     command line, so you may write something like this in your
797*1b8adde7SWilliam Kucharski     configuration file:
798*1b8adde7SWilliam Kucharski
799*1b8adde7SWilliam Kucharski          # Set default colors.
800*1b8adde7SWilliam Kucharski          color light-gray/blue black/light-gray
801*1b8adde7SWilliam Kucharski
802*1b8adde7SWilliam Kucharski          # Change the colors.
803*1b8adde7SWilliam Kucharski          title OS-BS like
804*1b8adde7SWilliam Kucharski          color magenta/blue black/magenta
805*1b8adde7SWilliam Kucharski
806*1b8adde7SWilliam Kucharski
807*1b8adde7SWilliam KucharskiFile: grub.info,  Node: device,  Next: dhcp,  Prev: color,  Up: General commands
808*1b8adde7SWilliam Kucharski
809*1b8adde7SWilliam Kucharskidevice
810*1b8adde7SWilliam Kucharski------
811*1b8adde7SWilliam Kucharski
812*1b8adde7SWilliam Kucharski - Command: device drive file
813*1b8adde7SWilliam Kucharski     In the grub shell, specify the file FILE as the actual drive for a
814*1b8adde7SWilliam Kucharski     BIOS drive DRIVE. You can use this command to create a disk image,
815*1b8adde7SWilliam Kucharski     and/or to fix the drives guessed by GRUB when GRUB fails to
816*1b8adde7SWilliam Kucharski     determine them correctly, like this:
817*1b8adde7SWilliam Kucharski
818*1b8adde7SWilliam Kucharski          grub> device (fd0) /floppy-image
819*1b8adde7SWilliam Kucharski          grub> device (hd0) /dev/sd0
820*1b8adde7SWilliam Kucharski
821*1b8adde7SWilliam Kucharski     This command can be used only in the grub shell (*note Invoking
822*1b8adde7SWilliam Kucharski     the grub shell::).
823*1b8adde7SWilliam Kucharski
824*1b8adde7SWilliam Kucharski
825*1b8adde7SWilliam KucharskiFile: grub.info,  Node: dhcp,  Next: hide,  Prev: device,  Up: General commands
826*1b8adde7SWilliam Kucharski
827*1b8adde7SWilliam Kucharskidhcp
828*1b8adde7SWilliam Kucharski----
829*1b8adde7SWilliam Kucharski
830*1b8adde7SWilliam Kucharski - Command: dhcp [--with-configfile]
831*1b8adde7SWilliam Kucharski     Initialize a network device via the "DHCP" protocol. Currently,
832*1b8adde7SWilliam Kucharski     this command is just an alias for `bootp', since the two protocols
833*1b8adde7SWilliam Kucharski     are very similar. This command is only available if GRUB is
834*1b8adde7SWilliam Kucharski     compiled with netboot support. See also *Note Network::.
835*1b8adde7SWilliam Kucharski
836*1b8adde7SWilliam Kucharski     If you specify `--with-configfile' to this command, GRUB will
837*1b8adde7SWilliam Kucharski     fetch and load a configuration file specified by your DHCP server
838*1b8adde7SWilliam Kucharski     with the vendor tag `150'.
839*1b8adde7SWilliam Kucharski
840*1b8adde7SWilliam Kucharski
841*1b8adde7SWilliam KucharskiFile: grub.info,  Node: hide,  Next: ifconfig,  Prev: dhcp,  Up: General commands
842*1b8adde7SWilliam Kucharski
843*1b8adde7SWilliam Kucharskihide
844*1b8adde7SWilliam Kucharski----
845*1b8adde7SWilliam Kucharski
846*1b8adde7SWilliam Kucharski - Command: hide partition
847*1b8adde7SWilliam Kucharski     Hide the partition PARTITION by setting the "hidden" bit in its
848*1b8adde7SWilliam Kucharski     partition type code. This is useful only when booting DOS or
849*1b8adde7SWilliam Kucharski     Windows and multiple primary FAT partitions exist in one disk. See
850*1b8adde7SWilliam Kucharski     also *Note DOS/Windows::.
851*1b8adde7SWilliam Kucharski
852*1b8adde7SWilliam Kucharski
853*1b8adde7SWilliam KucharskiFile: grub.info,  Node: ifconfig,  Next: pager,  Prev: hide,  Up: General commands
854*1b8adde7SWilliam Kucharski
855*1b8adde7SWilliam Kucharskiifconfig
856*1b8adde7SWilliam Kucharski--------
857*1b8adde7SWilliam Kucharski
858*1b8adde7SWilliam Kucharski - Command: ifconfig [`--server=server'] [`--gateway=gateway']
859*1b8adde7SWilliam Kucharski          [`--mask=mask'] [`--address=address']
860*1b8adde7SWilliam Kucharski     Configure the IP address, the netmask, the gateway, and the server
861*1b8adde7SWilliam Kucharski     address of a network device manually. The values must be in dotted
862*1b8adde7SWilliam Kucharski     decimal format, like `192.168.11.178'. The order of the options is
863*1b8adde7SWilliam Kucharski     not important. This command shows current network configuration,
864*1b8adde7SWilliam Kucharski     if no option is specified. See also *Note Network::.
865*1b8adde7SWilliam Kucharski
866*1b8adde7SWilliam Kucharski
867*1b8adde7SWilliam KucharskiFile: grub.info,  Node: pager,  Next: partnew,  Prev: ifconfig,  Up: General commands
868*1b8adde7SWilliam Kucharski
869*1b8adde7SWilliam Kucharskipager
870*1b8adde7SWilliam Kucharski-----
871*1b8adde7SWilliam Kucharski
872*1b8adde7SWilliam Kucharski - Command: pager [flag]
873*1b8adde7SWilliam Kucharski     Toggle or set the state of the internal pager. If FLAG is `on',
874*1b8adde7SWilliam Kucharski     the internal pager is enabled. If FLAG is `off', it is disabled.
875*1b8adde7SWilliam Kucharski     If no argument is given, the state is toggled.
876*1b8adde7SWilliam Kucharski
877*1b8adde7SWilliam Kucharski
878*1b8adde7SWilliam KucharskiFile: grub.info,  Node: partnew,  Next: parttype,  Prev: pager,  Up: General commands
879*1b8adde7SWilliam Kucharski
880*1b8adde7SWilliam Kucharskipartnew
881*1b8adde7SWilliam Kucharski-------
882*1b8adde7SWilliam Kucharski
883*1b8adde7SWilliam Kucharski - Command: partnew part type from len
884*1b8adde7SWilliam Kucharski     Create a new primary partition. PART is a partition specification
885*1b8adde7SWilliam Kucharski     in GRUB syntax (*note Naming convention::); TYPE is the partition
886*1b8adde7SWilliam Kucharski     type and must be a number in the range `0-0xff'; FROM is the
887*1b8adde7SWilliam Kucharski     starting address and LEN is the length, both in sector units.
888*1b8adde7SWilliam Kucharski
889*1b8adde7SWilliam Kucharski
890*1b8adde7SWilliam KucharskiFile: grub.info,  Node: parttype,  Next: password,  Prev: partnew,  Up: General commands
891*1b8adde7SWilliam Kucharski
892*1b8adde7SWilliam Kucharskiparttype
893*1b8adde7SWilliam Kucharski--------
894*1b8adde7SWilliam Kucharski
895*1b8adde7SWilliam Kucharski - Command: parttype part type
896*1b8adde7SWilliam Kucharski     Change the type of an existing partition.  PART is a partition
897*1b8adde7SWilliam Kucharski     specification in GRUB syntax (*note Naming convention::); TYPE is
898*1b8adde7SWilliam Kucharski     the new partition type and must be a number in the range 0-0xff.
899*1b8adde7SWilliam Kucharski
900*1b8adde7SWilliam Kucharski
901*1b8adde7SWilliam KucharskiFile: grub.info,  Node: password,  Next: rarp,  Prev: parttype,  Up: General commands
902*1b8adde7SWilliam Kucharski
903*1b8adde7SWilliam Kucharskipassword
904*1b8adde7SWilliam Kucharski--------
905*1b8adde7SWilliam Kucharski
906*1b8adde7SWilliam Kucharski - Command: password [`--md5'] passwd [new-config-file]
907*1b8adde7SWilliam Kucharski     If used in the first section of a menu file, disable all
908*1b8adde7SWilliam Kucharski     interactive editing control (menu entry editor and command-line)
909*1b8adde7SWilliam Kucharski     and entries protected by the command `lock'. If the password
910*1b8adde7SWilliam Kucharski     PASSWD is entered, it loads the NEW-CONFIG-FILE as a new config
911*1b8adde7SWilliam Kucharski     file and restarts the GRUB Stage 2, if NEW-CONFIG-FILE is
912*1b8adde7SWilliam Kucharski     specified. Otherwise, GRUB will just unlock the privileged
913*1b8adde7SWilliam Kucharski     instructions.  You can also use this command in the script
914*1b8adde7SWilliam Kucharski     section, in which case it will ask for the password, before
915*1b8adde7SWilliam Kucharski     continuing.  The option `--md5' tells GRUB that PASSWD is
916*1b8adde7SWilliam Kucharski     encrypted with `md5crypt' (*note md5crypt::).
917*1b8adde7SWilliam Kucharski
918*1b8adde7SWilliam Kucharski
919*1b8adde7SWilliam KucharskiFile: grub.info,  Node: rarp,  Next: serial,  Prev: password,  Up: General commands
920*1b8adde7SWilliam Kucharski
921*1b8adde7SWilliam Kucharskirarp
922*1b8adde7SWilliam Kucharski----
923*1b8adde7SWilliam Kucharski
924*1b8adde7SWilliam Kucharski - Command: rarp
925*1b8adde7SWilliam Kucharski     Initialize a network device via the "RARP" protocol.  This command
926*1b8adde7SWilliam Kucharski     is only available if GRUB is compiled with netboot support. See
927*1b8adde7SWilliam Kucharski     also *Note Network::.
928*1b8adde7SWilliam Kucharski
929*1b8adde7SWilliam Kucharski
930*1b8adde7SWilliam KucharskiFile: grub.info,  Node: serial,  Next: setkey,  Prev: rarp,  Up: General commands
931*1b8adde7SWilliam Kucharski
932*1b8adde7SWilliam Kucharskiserial
933*1b8adde7SWilliam Kucharski------
934*1b8adde7SWilliam Kucharski
935*1b8adde7SWilliam Kucharski - Command: serial [`--unit=unit'] [`--port=port'] [`--speed=speed']
936*1b8adde7SWilliam Kucharski          [`--word=word'] [`--parity=parity'] [`--stop=stop']
937*1b8adde7SWilliam Kucharski          [`--device=dev']
938*1b8adde7SWilliam Kucharski     Initialize a serial device. UNIT is a number in the range 0-3
939*1b8adde7SWilliam Kucharski     specifying which serial port to use; default is 0, which
940*1b8adde7SWilliam Kucharski     corresponds to the port often called COM1. PORT is the I/O port
941*1b8adde7SWilliam Kucharski     where the UART is to be found; if specified it takes precedence
942*1b8adde7SWilliam Kucharski     over UNIT.  SPEED is the transmission speed; default is 9600. WORD
943*1b8adde7SWilliam Kucharski     and STOP are the number of data bits and stop bits. Data bits must
944*1b8adde7SWilliam Kucharski     be in the range 5-8 and stop bits must be 1 or 2. Default is 8 data
945*1b8adde7SWilliam Kucharski     bits and one stop bit. PARITY is one of `no', `odd', `even' and
946*1b8adde7SWilliam Kucharski     defaults to `no'. The option `--device' can only be used in the
947*1b8adde7SWilliam Kucharski     grub shell and is used to specify the tty device to be used in the
948*1b8adde7SWilliam Kucharski     host operating system (*note Invoking the grub shell::).
949*1b8adde7SWilliam Kucharski
950*1b8adde7SWilliam Kucharski     The serial port is not used as a communication channel unless the
951*1b8adde7SWilliam Kucharski     `terminal' command is used (*note terminal::).
952*1b8adde7SWilliam Kucharski
953*1b8adde7SWilliam Kucharski     This command is only available if GRUB is compiled with serial
954*1b8adde7SWilliam Kucharski     support. See also *Note Serial terminal::.
955*1b8adde7SWilliam Kucharski
956*1b8adde7SWilliam Kucharski
957*1b8adde7SWilliam KucharskiFile: grub.info,  Node: setkey,  Next: terminal,  Prev: serial,  Up: General commands
958*1b8adde7SWilliam Kucharski
959*1b8adde7SWilliam Kucharskisetkey
960*1b8adde7SWilliam Kucharski------
961*1b8adde7SWilliam Kucharski
962*1b8adde7SWilliam Kucharski - Command: setkey [to_key from_key]
963*1b8adde7SWilliam Kucharski     Change the keyboard map. The key FROM_KEY is mapped to the key
964*1b8adde7SWilliam Kucharski     TO_KEY. If no argument is specified, reset key mappings. Note that
965*1b8adde7SWilliam Kucharski     this command _does not_ exchange the keys. If you want to exchange
966*1b8adde7SWilliam Kucharski     the keys, run this command again with the arguments exchanged,
967*1b8adde7SWilliam Kucharski     like this:
968*1b8adde7SWilliam Kucharski
969*1b8adde7SWilliam Kucharski          grub> setkey capslock control
970*1b8adde7SWilliam Kucharski          grub> setkey control capslock
971*1b8adde7SWilliam Kucharski
972*1b8adde7SWilliam Kucharski     A key must be an alphabet letter, a digit, or one of these symbols:
973*1b8adde7SWilliam Kucharski     `escape', `exclam', `at', `numbersign', `dollar', `percent',
974*1b8adde7SWilliam Kucharski     `caret', `ampersand', `asterisk', `parenleft', `parenright',
975*1b8adde7SWilliam Kucharski     `minus', `underscore', `equal', `plus', `backspace', `tab',
976*1b8adde7SWilliam Kucharski     `bracketleft', `braceleft', `bracketright', `braceright', `enter',
977*1b8adde7SWilliam Kucharski     `control', `semicolon', `colon', `quote', `doublequote',
978*1b8adde7SWilliam Kucharski     `backquote', `tilde', `shift', `backslash', `bar', `comma',
979*1b8adde7SWilliam Kucharski     `less', `period', `greater', `slash', `question', `alt', `space',
980*1b8adde7SWilliam Kucharski     `capslock', `FX' (`X' is a digit), and `delete'. This table
981*1b8adde7SWilliam Kucharski     describes to which character each of the symbols corresponds:
982*1b8adde7SWilliam Kucharski
983*1b8adde7SWilliam Kucharski    `exclam'
984*1b8adde7SWilliam Kucharski          `!'
985*1b8adde7SWilliam Kucharski
986*1b8adde7SWilliam Kucharski    `at'
987*1b8adde7SWilliam Kucharski          `@'
988*1b8adde7SWilliam Kucharski
989*1b8adde7SWilliam Kucharski    `numbersign'
990*1b8adde7SWilliam Kucharski          `#'
991*1b8adde7SWilliam Kucharski
992*1b8adde7SWilliam Kucharski    `dollar'
993*1b8adde7SWilliam Kucharski          `$'
994*1b8adde7SWilliam Kucharski
995*1b8adde7SWilliam Kucharski    `percent'
996*1b8adde7SWilliam Kucharski          `%'
997*1b8adde7SWilliam Kucharski
998*1b8adde7SWilliam Kucharski    `caret'
999*1b8adde7SWilliam Kucharski          `^'
1000*1b8adde7SWilliam Kucharski
1001*1b8adde7SWilliam Kucharski    `ampersand'
1002*1b8adde7SWilliam Kucharski          `&'
1003*1b8adde7SWilliam Kucharski
1004*1b8adde7SWilliam Kucharski    `asterisk'
1005*1b8adde7SWilliam Kucharski          `*'
1006*1b8adde7SWilliam Kucharski
1007*1b8adde7SWilliam Kucharski    `parenleft'
1008*1b8adde7SWilliam Kucharski          `('
1009*1b8adde7SWilliam Kucharski
1010*1b8adde7SWilliam Kucharski    `parenright'
1011*1b8adde7SWilliam Kucharski          `)'
1012*1b8adde7SWilliam Kucharski
1013*1b8adde7SWilliam Kucharski    `minus'
1014*1b8adde7SWilliam Kucharski          `-'
1015*1b8adde7SWilliam Kucharski
1016*1b8adde7SWilliam Kucharski    `underscore'
1017*1b8adde7SWilliam Kucharski          `_'
1018*1b8adde7SWilliam Kucharski
1019*1b8adde7SWilliam Kucharski    `equal'
1020*1b8adde7SWilliam Kucharski          `='
1021*1b8adde7SWilliam Kucharski
1022*1b8adde7SWilliam Kucharski    `plus'
1023*1b8adde7SWilliam Kucharski          `+'
1024*1b8adde7SWilliam Kucharski
1025*1b8adde7SWilliam Kucharski    `bracketleft'
1026*1b8adde7SWilliam Kucharski          `['
1027*1b8adde7SWilliam Kucharski
1028*1b8adde7SWilliam Kucharski    `braceleft'
1029*1b8adde7SWilliam Kucharski          `{'
1030*1b8adde7SWilliam Kucharski
1031*1b8adde7SWilliam Kucharski    `bracketright'
1032*1b8adde7SWilliam Kucharski          `]'
1033*1b8adde7SWilliam Kucharski
1034*1b8adde7SWilliam Kucharski    `braceright'
1035*1b8adde7SWilliam Kucharski          `}'
1036*1b8adde7SWilliam Kucharski
1037*1b8adde7SWilliam Kucharski    `semicolon'
1038*1b8adde7SWilliam Kucharski          `;'
1039*1b8adde7SWilliam Kucharski
1040*1b8adde7SWilliam Kucharski    `colon'
1041*1b8adde7SWilliam Kucharski          `:'
1042*1b8adde7SWilliam Kucharski
1043*1b8adde7SWilliam Kucharski    `quote'
1044*1b8adde7SWilliam Kucharski          `''
1045*1b8adde7SWilliam Kucharski
1046*1b8adde7SWilliam Kucharski    `doublequote'
1047*1b8adde7SWilliam Kucharski          `"'
1048*1b8adde7SWilliam Kucharski
1049*1b8adde7SWilliam Kucharski    `backquote'
1050*1b8adde7SWilliam Kucharski          ``'
1051*1b8adde7SWilliam Kucharski
1052*1b8adde7SWilliam Kucharski    `tilde'
1053*1b8adde7SWilliam Kucharski          `~'
1054*1b8adde7SWilliam Kucharski
1055*1b8adde7SWilliam Kucharski    `backslash'
1056*1b8adde7SWilliam Kucharski          `\'
1057*1b8adde7SWilliam Kucharski
1058*1b8adde7SWilliam Kucharski    `bar'
1059*1b8adde7SWilliam Kucharski          `|'
1060*1b8adde7SWilliam Kucharski
1061*1b8adde7SWilliam Kucharski    `comma'
1062*1b8adde7SWilliam Kucharski          `,'
1063*1b8adde7SWilliam Kucharski
1064*1b8adde7SWilliam Kucharski    `less'
1065*1b8adde7SWilliam Kucharski          `<'
1066*1b8adde7SWilliam Kucharski
1067*1b8adde7SWilliam Kucharski    `period'
1068*1b8adde7SWilliam Kucharski          `.'
1069*1b8adde7SWilliam Kucharski
1070*1b8adde7SWilliam Kucharski    `greater'
1071*1b8adde7SWilliam Kucharski          `>'
1072*1b8adde7SWilliam Kucharski
1073*1b8adde7SWilliam Kucharski    `slash'
1074*1b8adde7SWilliam Kucharski          `/'
1075*1b8adde7SWilliam Kucharski
1076*1b8adde7SWilliam Kucharski    `question'
1077*1b8adde7SWilliam Kucharski          `?'
1078*1b8adde7SWilliam Kucharski
1079*1b8adde7SWilliam Kucharski    `space'
1080*1b8adde7SWilliam Kucharski          ` '
1081*1b8adde7SWilliam Kucharski
1082*1b8adde7SWilliam Kucharski
1083*1b8adde7SWilliam KucharskiFile: grub.info,  Node: terminal,  Next: terminfo,  Prev: setkey,  Up: General commands
1084*1b8adde7SWilliam Kucharski
1085*1b8adde7SWilliam Kucharskiterminal
1086*1b8adde7SWilliam Kucharski--------
1087*1b8adde7SWilliam Kucharski
1088*1b8adde7SWilliam Kucharski - Command: terminal [`--dumb'] [`--no-echo'] [`--no-edit']
1089*1b8adde7SWilliam Kucharski          [`--timeout=secs'] [`--lines=lines'] [`--silent'] [`console']
1090*1b8adde7SWilliam Kucharski          [`serial'] [`hercules']
1091*1b8adde7SWilliam Kucharski     Select a terminal for user interaction. The terminal is assumed to
1092*1b8adde7SWilliam Kucharski     be VT100-compatible unless `--dumb' is specified. If both
1093*1b8adde7SWilliam Kucharski     `console' and `serial' are specified, then GRUB will use the one
1094*1b8adde7SWilliam Kucharski     where a key is entered first or the first when the timeout
1095*1b8adde7SWilliam Kucharski     expires. If neither are specified, the current setting is
1096*1b8adde7SWilliam Kucharski     reported. This command is only available if GRUB is compiled with
1097*1b8adde7SWilliam Kucharski     serial support. See also *Note Serial terminal::.
1098*1b8adde7SWilliam Kucharski
1099*1b8adde7SWilliam Kucharski     This may not make sense for most users, but GRUB supports Hercules
1100*1b8adde7SWilliam Kucharski     console as well. Hercules console is usable like the ordinary
1101*1b8adde7SWilliam Kucharski     console, and the usage is quite similar to that for serial
1102*1b8adde7SWilliam Kucharski     terminals: specify `hercules' as the argument.
1103*1b8adde7SWilliam Kucharski
1104*1b8adde7SWilliam Kucharski     The option `--lines' defines the number of lines in your terminal,
1105*1b8adde7SWilliam Kucharski     and it is used for the internal pager function. If you don't
1106*1b8adde7SWilliam Kucharski     specify this option, the number is assumed as 24.
1107*1b8adde7SWilliam Kucharski
1108*1b8adde7SWilliam Kucharski     The option `--silent' suppresses the message to prompt you to hit
1109*1b8adde7SWilliam Kucharski     any key. This might be useful if your system has no terminal
1110*1b8adde7SWilliam Kucharski     device.
1111*1b8adde7SWilliam Kucharski
1112*1b8adde7SWilliam Kucharski     The option `--no-echo' has GRUB not to echo back input characters.
1113*1b8adde7SWilliam Kucharski     This implies the option `--no-edit'.
1114*1b8adde7SWilliam Kucharski
1115*1b8adde7SWilliam Kucharski     The option `--no-edit' disables the BASH-like editing feature.
1116*1b8adde7SWilliam Kucharski
1117*1b8adde7SWilliam Kucharski
1118*1b8adde7SWilliam KucharskiFile: grub.info,  Node: terminfo,  Next: tftpserver,  Prev: terminal,  Up: General commands
1119*1b8adde7SWilliam Kucharski
1120*1b8adde7SWilliam Kucharskiterminfo
1121*1b8adde7SWilliam Kucharski--------
1122*1b8adde7SWilliam Kucharski
1123*1b8adde7SWilliam Kucharski - Command: terminfo `--name=name' `--cursor-address=seq'
1124*1b8adde7SWilliam Kucharski          [`--clear-screen=seq'] [`--enter-standout-mode=seq']
1125*1b8adde7SWilliam Kucharski          [`--exit-standout-mode=seq']
1126*1b8adde7SWilliam Kucharski     Define the capabilities of your terminal. Use this command to
1127*1b8adde7SWilliam Kucharski     define escape sequences, if it is not vt100-compatible. You may
1128*1b8adde7SWilliam Kucharski     use `\e' for <ESC> and `^X' for a control character.
1129*1b8adde7SWilliam Kucharski
1130*1b8adde7SWilliam Kucharski     You can use the utility `grub-terminfo' to generate appropriate
1131*1b8adde7SWilliam Kucharski     arguments to this command. *Note Invoking grub-terminfo::.
1132*1b8adde7SWilliam Kucharski
1133*1b8adde7SWilliam Kucharski     If no option is specified, the current settings are printed.
1134*1b8adde7SWilliam Kucharski
1135*1b8adde7SWilliam Kucharski
1136*1b8adde7SWilliam KucharskiFile: grub.info,  Node: tftpserver,  Next: unhide,  Prev: terminfo,  Up: General commands
1137*1b8adde7SWilliam Kucharski
1138*1b8adde7SWilliam Kucharskitftpserver
1139*1b8adde7SWilliam Kucharski----------
1140*1b8adde7SWilliam Kucharski
1141*1b8adde7SWilliam Kucharski - Command: tftpserver ipaddr
1142*1b8adde7SWilliam Kucharski     *Caution:* This command exists only for backward compatibility.
1143*1b8adde7SWilliam Kucharski     Use `ifconfig' (*note ifconfig::) instead.
1144*1b8adde7SWilliam Kucharski
1145*1b8adde7SWilliam Kucharski     Override a TFTP server address returned by a BOOTP/DHCP/RARP
1146*1b8adde7SWilliam Kucharski     server. The argument IPADDR must be in dotted decimal format, like
1147*1b8adde7SWilliam Kucharski     `192.168.0.15'.  This command is only available if GRUB is compiled
1148*1b8adde7SWilliam Kucharski     with netboot support. See also *Note Network::.
1149*1b8adde7SWilliam Kucharski
1150*1b8adde7SWilliam Kucharski
1151*1b8adde7SWilliam KucharskiFile: grub.info,  Node: unhide,  Prev: tftpserver,  Up: General commands
1152*1b8adde7SWilliam Kucharski
1153*1b8adde7SWilliam Kucharskiunhide
1154*1b8adde7SWilliam Kucharski------
1155*1b8adde7SWilliam Kucharski
1156*1b8adde7SWilliam Kucharski - Command: unhide partition
1157*1b8adde7SWilliam Kucharski     Unhide the partition PARTITION by clearing the "hidden" bit in its
1158*1b8adde7SWilliam Kucharski     partition type code. This is useful only when booting DOS or
1159*1b8adde7SWilliam Kucharski     Windows and multiple primary partitions exist on one disk. See also
1160*1b8adde7SWilliam Kucharski     *Note DOS/Windows::.
1161*1b8adde7SWilliam Kucharski
1162*1b8adde7SWilliam Kucharski
1163*1b8adde7SWilliam KucharskiFile: grub.info,  Node: Command-line and menu entry commands,  Prev: General commands,  Up: Commands
1164*1b8adde7SWilliam Kucharski
1165*1b8adde7SWilliam KucharskiThe list of command-line and menu entry commands
1166*1b8adde7SWilliam Kucharski================================================
1167*1b8adde7SWilliam Kucharski
1168*1b8adde7SWilliam Kucharski   These commands are usable in the command-line and in menu entries.
1169*1b8adde7SWilliam KucharskiIf you forget a command, you can run the command `help' (*note help::).
1170*1b8adde7SWilliam Kucharski
1171*1b8adde7SWilliam Kucharski* Menu:
1172*1b8adde7SWilliam Kucharski
1173*1b8adde7SWilliam Kucharski* blocklist::                   Get the block list notation of a file
1174*1b8adde7SWilliam Kucharski* boot::                        Start up your operating system
1175*1b8adde7SWilliam Kucharski* cat::                         Show the contents of a file
1176*1b8adde7SWilliam Kucharski* chainloader::                 Chain-load another boot loader
1177*1b8adde7SWilliam Kucharski* cmp::                         Compare two files
1178*1b8adde7SWilliam Kucharski* configfile::                  Load a configuration file
1179*1b8adde7SWilliam Kucharski* debug::                       Toggle the debug flag
1180*1b8adde7SWilliam Kucharski* displayapm::                  Display APM information
1181*1b8adde7SWilliam Kucharski* displaymem::                  Display memory configuration
1182*1b8adde7SWilliam Kucharski* embed::                       Embed Stage 1.5
1183*1b8adde7SWilliam Kucharski* find::                        Find a file
1184*1b8adde7SWilliam Kucharski* fstest::                      Test a filesystem
1185*1b8adde7SWilliam Kucharski* geometry::                    Manipulate the geometry of a drive
1186*1b8adde7SWilliam Kucharski* halt::                        Shut down your computer
1187*1b8adde7SWilliam Kucharski* help::                        Show help messages
1188*1b8adde7SWilliam Kucharski* impsprobe::                   Probe SMP
1189*1b8adde7SWilliam Kucharski* initrd::                      Load an initrd
1190*1b8adde7SWilliam Kucharski* install::                     Install GRUB
1191*1b8adde7SWilliam Kucharski* ioprobe::                     Probe I/O ports used for a drive
1192*1b8adde7SWilliam Kucharski* kernel::                      Load a kernel
1193*1b8adde7SWilliam Kucharski* lock::                        Lock a menu entry
1194*1b8adde7SWilliam Kucharski* makeactive::                  Make a partition active
1195*1b8adde7SWilliam Kucharski* map::                         Map a drive to another
1196*1b8adde7SWilliam Kucharski* md5crypt::                    Encrypt a password in MD5 format
1197*1b8adde7SWilliam Kucharski* module::                      Load a module
1198*1b8adde7SWilliam Kucharski* modulenounzip::               Load a module without decompression
1199*1b8adde7SWilliam Kucharski* pause::                       Wait for a key press
1200*1b8adde7SWilliam Kucharski* quit::                        Exit from the grub shell
1201*1b8adde7SWilliam Kucharski* reboot::                      Reboot your computer
1202*1b8adde7SWilliam Kucharski* read::                        Read data from memory
1203*1b8adde7SWilliam Kucharski* root::                        Set GRUB's root device
1204*1b8adde7SWilliam Kucharski* rootnoverify::                Set GRUB's root device without mounting
1205*1b8adde7SWilliam Kucharski* savedefault::                 Save current entry as the default entry
1206*1b8adde7SWilliam Kucharski* setup::                       Set up GRUB's installation automatically
1207*1b8adde7SWilliam Kucharski* testload::                    Load a file for testing a filesystem
1208*1b8adde7SWilliam Kucharski* testvbe::                     Test VESA BIOS EXTENSION
1209*1b8adde7SWilliam Kucharski* uppermem::                    Set the upper memory size
1210*1b8adde7SWilliam Kucharski* vbeprobe::                    Probe VESA BIOS EXTENSION
1211*1b8adde7SWilliam Kucharski
1212*1b8adde7SWilliam Kucharski
1213*1b8adde7SWilliam KucharskiFile: grub.info,  Node: blocklist,  Next: boot,  Up: Command-line and menu entry commands
1214*1b8adde7SWilliam Kucharski
1215*1b8adde7SWilliam Kucharskiblocklist
1216*1b8adde7SWilliam Kucharski---------
1217*1b8adde7SWilliam Kucharski
1218*1b8adde7SWilliam Kucharski - Command: blocklist file
1219*1b8adde7SWilliam Kucharski     Print the block list notation of the file FILE. *Note Block list
1220*1b8adde7SWilliam Kucharski     syntax::.
1221*1b8adde7SWilliam Kucharski
1222*1b8adde7SWilliam Kucharski
1223*1b8adde7SWilliam KucharskiFile: grub.info,  Node: boot,  Next: cat,  Prev: blocklist,  Up: Command-line and menu entry commands
1224*1b8adde7SWilliam Kucharski
1225*1b8adde7SWilliam Kucharskiboot
1226*1b8adde7SWilliam Kucharski----
1227*1b8adde7SWilliam Kucharski
1228*1b8adde7SWilliam Kucharski - Command: boot
1229*1b8adde7SWilliam Kucharski     Boot the OS or chain-loader which has been loaded. Only necessary
1230*1b8adde7SWilliam Kucharski     if running the fully interactive command-line (it is implicit at
1231*1b8adde7SWilliam Kucharski     the end of a menu entry).
1232*1b8adde7SWilliam Kucharski
1233*1b8adde7SWilliam Kucharski
1234*1b8adde7SWilliam KucharskiFile: grub.info,  Node: cat,  Next: chainloader,  Prev: boot,  Up: Command-line and menu entry commands
1235*1b8adde7SWilliam Kucharski
1236*1b8adde7SWilliam Kucharskicat
1237*1b8adde7SWilliam Kucharski---
1238*1b8adde7SWilliam Kucharski
1239*1b8adde7SWilliam Kucharski - Command: cat file
1240*1b8adde7SWilliam Kucharski     Display the contents of the file FILE. This command may be useful
1241*1b8adde7SWilliam Kucharski     to remind you of your OS's root partition:
1242*1b8adde7SWilliam Kucharski
1243*1b8adde7SWilliam Kucharski          grub> cat /etc/fstab
1244*1b8adde7SWilliam Kucharski
1245*1b8adde7SWilliam Kucharski
1246*1b8adde7SWilliam KucharskiFile: grub.info,  Node: chainloader,  Next: cmp,  Prev: cat,  Up: Command-line and menu entry commands
1247*1b8adde7SWilliam Kucharski
1248*1b8adde7SWilliam Kucharskichainloader
1249*1b8adde7SWilliam Kucharski-----------
1250*1b8adde7SWilliam Kucharski
1251*1b8adde7SWilliam Kucharski - Command: chainloader [`--force'] file
1252*1b8adde7SWilliam Kucharski     Load FILE as a chain-loader. Like any other file loaded by the
1253*1b8adde7SWilliam Kucharski     filesystem code, it can use the blocklist notation to grab the
1254*1b8adde7SWilliam Kucharski     first sector of the current partition with `+1'. If you specify the
1255*1b8adde7SWilliam Kucharski     option `--force', then load FILE forcibly, whether it has a
1256*1b8adde7SWilliam Kucharski     correct signature or not. This is required when you want to load a
1257*1b8adde7SWilliam Kucharski     defective boot loader, such as SCO UnixWare 7.1 (*note SCO
1258*1b8adde7SWilliam Kucharski     UnixWare::).
1259*1b8adde7SWilliam Kucharski
1260*1b8adde7SWilliam Kucharski
1261*1b8adde7SWilliam KucharskiFile: grub.info,  Node: cmp,  Next: configfile,  Prev: chainloader,  Up: Command-line and menu entry commands
1262*1b8adde7SWilliam Kucharski
1263*1b8adde7SWilliam Kucharskicmp
1264*1b8adde7SWilliam Kucharski---
1265*1b8adde7SWilliam Kucharski
1266*1b8adde7SWilliam Kucharski - Command: cmp file1 file2
1267*1b8adde7SWilliam Kucharski     Compare the file FILE1 with the file FILE2. If they differ in
1268*1b8adde7SWilliam Kucharski     size, print the sizes like this:
1269*1b8adde7SWilliam Kucharski
1270*1b8adde7SWilliam Kucharski          Differ in size: 0x1234 [foo], 0x4321 [bar]
1271*1b8adde7SWilliam Kucharski
1272*1b8adde7SWilliam Kucharski     If the sizes are equal but the bytes at an offset differ, then
1273*1b8adde7SWilliam Kucharski     print the bytes like this:
1274*1b8adde7SWilliam Kucharski
1275*1b8adde7SWilliam Kucharski          Differ at the offset 777: 0xbe [foo], 0xef [bar]
1276*1b8adde7SWilliam Kucharski
1277*1b8adde7SWilliam Kucharski     If they are completely identical, nothing will be printed.
1278*1b8adde7SWilliam Kucharski
1279*1b8adde7SWilliam Kucharski
1280*1b8adde7SWilliam KucharskiFile: grub.info,  Node: configfile,  Next: debug,  Prev: cmp,  Up: Command-line and menu entry commands
1281*1b8adde7SWilliam Kucharski
1282*1b8adde7SWilliam Kucharskiconfigfile
1283*1b8adde7SWilliam Kucharski----------
1284*1b8adde7SWilliam Kucharski
1285*1b8adde7SWilliam Kucharski - Command: configfile file
1286*1b8adde7SWilliam Kucharski     Load FILE as a configuration file.
1287*1b8adde7SWilliam Kucharski
1288*1b8adde7SWilliam Kucharski
1289*1b8adde7SWilliam KucharskiFile: grub.info,  Node: debug,  Next: displayapm,  Prev: configfile,  Up: Command-line and menu entry commands
1290*1b8adde7SWilliam Kucharski
1291*1b8adde7SWilliam Kucharskidebug
1292*1b8adde7SWilliam Kucharski-----
1293*1b8adde7SWilliam Kucharski
1294*1b8adde7SWilliam Kucharski - Command: debug
1295*1b8adde7SWilliam Kucharski     Toggle debug mode (by default it is off). When debug mode is on,
1296*1b8adde7SWilliam Kucharski     some extra messages are printed to show disk activity. This global
1297*1b8adde7SWilliam Kucharski     debug flag is mainly useful for GRUB developers when testing new
1298*1b8adde7SWilliam Kucharski     code.
1299*1b8adde7SWilliam Kucharski
1300*1b8adde7SWilliam Kucharski
1301*1b8adde7SWilliam KucharskiFile: grub.info,  Node: displayapm,  Next: displaymem,  Prev: debug,  Up: Command-line and menu entry commands
1302*1b8adde7SWilliam Kucharski
1303*1b8adde7SWilliam Kucharskidisplayapm
1304*1b8adde7SWilliam Kucharski----------
1305*1b8adde7SWilliam Kucharski
1306*1b8adde7SWilliam Kucharski - Command: displayapm
1307*1b8adde7SWilliam Kucharski     Display APM BIOS information.
1308*1b8adde7SWilliam Kucharski
1309*1b8adde7SWilliam Kucharski
1310*1b8adde7SWilliam KucharskiFile: grub.info,  Node: displaymem,  Next: embed,  Prev: displayapm,  Up: Command-line and menu entry commands
1311*1b8adde7SWilliam Kucharski
1312*1b8adde7SWilliam Kucharskidisplaymem
1313*1b8adde7SWilliam Kucharski----------
1314*1b8adde7SWilliam Kucharski
1315*1b8adde7SWilliam Kucharski - Command: displaymem
1316*1b8adde7SWilliam Kucharski     Display what GRUB thinks the system address space map of the
1317*1b8adde7SWilliam Kucharski     machine is, including all regions of physical RAM installed. GRUB's
1318*1b8adde7SWilliam Kucharski     "upper/lower memory" display uses the standard BIOS interface for
1319*1b8adde7SWilliam Kucharski     the available memory in the first megabyte, or "lower memory", and
1320*1b8adde7SWilliam Kucharski     a synthesized number from various BIOS interfaces of the memory
1321*1b8adde7SWilliam Kucharski     starting at 1MB and going up to the first chipset hole for "upper
1322*1b8adde7SWilliam Kucharski     memory" (the standard PC "upper memory" interface is limited to
1323*1b8adde7SWilliam Kucharski     reporting a maximum of 64MB).
1324*1b8adde7SWilliam Kucharski
1325*1b8adde7SWilliam Kucharski
1326*1b8adde7SWilliam KucharskiFile: grub.info,  Node: embed,  Next: find,  Prev: displaymem,  Up: Command-line and menu entry commands
1327*1b8adde7SWilliam Kucharski
1328*1b8adde7SWilliam Kucharskiembed
1329*1b8adde7SWilliam Kucharski-----
1330*1b8adde7SWilliam Kucharski
1331*1b8adde7SWilliam Kucharski - Command: embed stage1_5 device
1332*1b8adde7SWilliam Kucharski     Embed the Stage 1.5 STAGE1_5 in the sectors after the MBR if
1333*1b8adde7SWilliam Kucharski     DEVICE is a drive, or in the "boot loader" area if DEVICE is a FFS
1334*1b8adde7SWilliam Kucharski     partition or a ReiserFS partition.(1) (*note embed-Footnote-1::)
1335*1b8adde7SWilliam Kucharski     Print the number of sectors which STAGE1_5 occupies, if successful.
1336*1b8adde7SWilliam Kucharski
1337*1b8adde7SWilliam Kucharski     Usually, you don't need to run this command directly. *Note
1338*1b8adde7SWilliam Kucharski     setup::.
1339*1b8adde7SWilliam Kucharski
1340*1b8adde7SWilliam Kucharski
1341*1b8adde7SWilliam KucharskiFile: grub.info,  Node: embed-Footnotes,  Up: embed
1342*1b8adde7SWilliam Kucharski
1343*1b8adde7SWilliam Kucharski   (1) The latter feature has not been implemented yet.
1344*1b8adde7SWilliam Kucharski
1345*1b8adde7SWilliam Kucharski
1346*1b8adde7SWilliam KucharskiFile: grub.info,  Node: find,  Next: fstest,  Prev: embed,  Up: Command-line and menu entry commands
1347*1b8adde7SWilliam Kucharski
1348*1b8adde7SWilliam Kucharskifind
1349*1b8adde7SWilliam Kucharski----
1350*1b8adde7SWilliam Kucharski
1351*1b8adde7SWilliam Kucharski - Command: find filename
1352*1b8adde7SWilliam Kucharski     Search for the file name FILENAME in all mountable partitions and
1353*1b8adde7SWilliam Kucharski     print the list of the devices which contain the file. The file
1354*1b8adde7SWilliam Kucharski     name FILENAME should be an absolute file name like
1355*1b8adde7SWilliam Kucharski     `/boot/grub/stage1'.
1356*1b8adde7SWilliam Kucharski
1357*1b8adde7SWilliam Kucharski
1358*1b8adde7SWilliam KucharskiFile: grub.info,  Node: fstest,  Next: geometry,  Prev: find,  Up: Command-line and menu entry commands
1359*1b8adde7SWilliam Kucharski
1360*1b8adde7SWilliam Kucharskifstest
1361*1b8adde7SWilliam Kucharski------
1362*1b8adde7SWilliam Kucharski
1363*1b8adde7SWilliam Kucharski - Command: fstest
1364*1b8adde7SWilliam Kucharski     Toggle filesystem test mode.  Filesystem test mode, when turned
1365*1b8adde7SWilliam Kucharski     on, prints out data corresponding to all the device reads and what
1366*1b8adde7SWilliam Kucharski     values are being sent to the low-level routines. The format is
1367*1b8adde7SWilliam Kucharski     `<PARTITION-OFFSET-SECTOR, BYTE-OFFSET, BYTE-LENGTH>' for
1368*1b8adde7SWilliam Kucharski     high-level reads inside a partition, and `[DISK-OFFSET-SECTOR]'
1369*1b8adde7SWilliam Kucharski     for low-level sector requests from the disk.  Filesystem test mode
1370*1b8adde7SWilliam Kucharski     is turned off by any use of the `install' (*note install::) or
1371*1b8adde7SWilliam Kucharski     `testload' (*note testload::) commands.
1372*1b8adde7SWilliam Kucharski
1373*1b8adde7SWilliam Kucharski
1374*1b8adde7SWilliam KucharskiFile: grub.info,  Node: geometry,  Next: halt,  Prev: fstest,  Up: Command-line and menu entry commands
1375*1b8adde7SWilliam Kucharski
1376*1b8adde7SWilliam Kucharskigeometry
1377*1b8adde7SWilliam Kucharski--------
1378*1b8adde7SWilliam Kucharski
1379*1b8adde7SWilliam Kucharski - Command: geometry drive [cylinder head sector [total_sector]]
1380*1b8adde7SWilliam Kucharski     Print the information for the drive DRIVE. In the grub shell, you
1381*1b8adde7SWilliam Kucharski     can set the geometry of the drive arbitrarily. The number of
1382*1b8adde7SWilliam Kucharski     cylinders, the number of heads, the number of sectors and the
1383*1b8adde7SWilliam Kucharski     number of total sectors are set to CYLINDER, HEAD, SECTOR and
1384*1b8adde7SWilliam Kucharski     TOTAL_SECTOR, respectively. If you omit TOTAL_SECTOR, then it will
1385*1b8adde7SWilliam Kucharski     be calculated based on the C/H/S values automatically.
1386*1b8adde7SWilliam Kucharski
1387*1b8adde7SWilliam Kucharski
1388*1b8adde7SWilliam KucharskiFile: grub.info,  Node: halt,  Next: help,  Prev: geometry,  Up: Command-line and menu entry commands
1389*1b8adde7SWilliam Kucharski
1390*1b8adde7SWilliam Kucharskihalt
1391*1b8adde7SWilliam Kucharski----
1392*1b8adde7SWilliam Kucharski
1393*1b8adde7SWilliam Kucharski - Command: halt `--no-apm'
1394*1b8adde7SWilliam Kucharski     The command halts the computer. If the `--no-apm' option is
1395*1b8adde7SWilliam Kucharski     specified, no APM BIOS call is performed. Otherwise, the computer
1396*1b8adde7SWilliam Kucharski     is shut down using APM.
1397*1b8adde7SWilliam Kucharski
1398*1b8adde7SWilliam Kucharski
1399*1b8adde7SWilliam KucharskiFile: grub.info,  Node: help,  Next: impsprobe,  Prev: halt,  Up: Command-line and menu entry commands
1400*1b8adde7SWilliam Kucharski
1401*1b8adde7SWilliam Kucharskihelp
1402*1b8adde7SWilliam Kucharski----
1403*1b8adde7SWilliam Kucharski
1404*1b8adde7SWilliam Kucharski - Command: help `--all' [pattern ...]
1405*1b8adde7SWilliam Kucharski     Display helpful information about builtin commands. If you do not
1406*1b8adde7SWilliam Kucharski     specify PATTERN, this command shows short descriptions of most of
1407*1b8adde7SWilliam Kucharski     available commands. If you specify the option `--all' to this
1408*1b8adde7SWilliam Kucharski     command, short descriptions of rarely used commands (such as *Note
1409*1b8adde7SWilliam Kucharski     testload::) are displayed as well.
1410*1b8adde7SWilliam Kucharski
1411*1b8adde7SWilliam Kucharski     If you specify any PATTERNS, it displays longer information about
1412*1b8adde7SWilliam Kucharski     each of the commands which match those PATTERNS.
1413*1b8adde7SWilliam Kucharski
1414*1b8adde7SWilliam Kucharski
1415*1b8adde7SWilliam KucharskiFile: grub.info,  Node: impsprobe,  Next: initrd,  Prev: help,  Up: Command-line and menu entry commands
1416*1b8adde7SWilliam Kucharski
1417*1b8adde7SWilliam Kucharskiimpsprobe
1418*1b8adde7SWilliam Kucharski---------
1419*1b8adde7SWilliam Kucharski
1420*1b8adde7SWilliam Kucharski - Command: impsprobe
1421*1b8adde7SWilliam Kucharski     Probe the Intel Multiprocessor Specification 1.1 or 1.4
1422*1b8adde7SWilliam Kucharski     configuration table and boot the various CPUs which are found into
1423*1b8adde7SWilliam Kucharski     a tight loop. This command can be used only in the Stage 2, but
1424*1b8adde7SWilliam Kucharski     not in the grub shell.
1425*1b8adde7SWilliam Kucharski
1426*1b8adde7SWilliam Kucharski
1427*1b8adde7SWilliam KucharskiFile: grub.info,  Node: initrd,  Next: install,  Prev: impsprobe,  Up: Command-line and menu entry commands
1428*1b8adde7SWilliam Kucharski
1429*1b8adde7SWilliam Kucharskiinitrd
1430*1b8adde7SWilliam Kucharski------
1431*1b8adde7SWilliam Kucharski
1432*1b8adde7SWilliam Kucharski - Command: initrd file ...
1433*1b8adde7SWilliam Kucharski     Load an initial ramdisk for a Linux format boot image and set the
1434*1b8adde7SWilliam Kucharski     appropriate parameters in the Linux setup area in memory. See also
1435*1b8adde7SWilliam Kucharski     *Note GNU/Linux::.
1436*1b8adde7SWilliam Kucharski
1437