|
发表于 2003-8-6 04:22:53
|
显示全部楼层
hehe, xdw_jack, u ask this in both places. so u must really want to know the answer.
see grub doc.
Embedded variables in GRUB
Stage 1 and Stage 2 have embedded variables whose locations are well-defined, so that the installation can patch the binary file directly without recompilation of the stages.
In Stage 1, these are defined:
0x3E
The version number (not GRUB's, but the installation mechanism's).
0x40
The boot drive. If it is 0xFF, use a drive passed by BIOS.
0x41
The flag for if forcing LBA.
0x42
The starting address of Stage 2.
0x44
The first sector of Stage 2.
0x48
The starting segment of Stage 2.
0x1FE
The signature (0xAA55).
so do dd if=/dev/hda of=cc bs=512 count=1 and check the cc using hexedit. i use grub and the 0x1fe of cc (my hda) is aa55.
so... |
|