• If a system has multiple drive devices, it is very important to know how the drive boot order is
set in the BIOS. This is a simple task if a system has only IDE or SCSI drives, but if there is a
mix of devices, it becomes critical that the type of drive with the boot partition be accessed
first.
4.2. File Names and Blocklists
When typing commands to GRUB that reference a file, such as a menu list, it is necessary to
specify an absolute file path immediately after the device and partition numbers.
The following illustrates the structure of such a command:
(<device-type><device-number>,<partition-number>)</path/to/file>
In this example, replace
<device-type>
with
hd
,
fd
, or
nd
. Replace
<device-number>
with the
integer for the device. Replace
</path/to/file>
with an absolute path relative to the top-level
of the device.
It is also possible to specify files to GRUB that do not actually appear in the file system, such as
a chain loader that appears in the first few blocks of a partition. To load such files, provide a
blocklist that specifies block by block where the file is located in the partition. Since a file is often
comprised of several different sets of blocks, blocklists use a special syntax. Each block
containing the file is specified by an offset number of blocks, followed by the number of blocks
from that offset point. Block offsets are listed sequentially in a comma-delimited list.
The following is a sample blocklist:
0+50,100+25,200+1
This sample blocklist specifies a file that starts at the first block on the partition and uses blocks
0 through 49, 100 through 124, and 200.
Knowing how to write blocklists is useful when using GRUB to load operating systems which
require chain loading. It is possible to leave off the offset number of blocks if starting at block 0.
As an example, the chain loading file in the first partition of the first hard drive would have the
following name:
(hd0,0)+1
The following shows the
chainloader
command with a similar blocklist designation at the
GRUB command line after setting the correct device and partition as root:
chain1
4.3. The Root File System and GRUB
File Names and Blocklists
17
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......