|
zerocn
新手上路
积分 14
发帖 4
注册 2007-6-18
状态 离线
|
『楼 主』:
[求助]修改GRLDR.MBR
我在GRUB4DOS的说明文件里面看到了下面的说明,请问如何修改
是不是用UltraEdit打开后
按照说明需要修改的位置,如
--------------------------------
Offset Length Description
04h 2 hot-key code. high byte is scan code, low byte is
ASCII code.the default value is 0x3920, which
stands for the space bar . if this key is pressed,
GRUB will be started prior to the boot of previous
MBR. See "int 16 keyboard scan codes" below.
--------------------------------
这项,对应着UltraEdit的这图下的这个吗?
grldr.mbr默认的是空格(0x3092)
那么,我想改成F11(8500)应该怎么改?
******************************************************************************
*** grldr.mbr - Details about the control bytes ***
******************************************************************************
Six bytes can be used to control the boot process of GRLDR.MBR.
Offset Length Description
====== ====== ==============================================================
02h 1 bit0=1: disable the search for GRLDR on floppy
bit0=0: enable the search for GRLDR on floppy
bit1=1: disable the boot of PREVIOUS MBR with invalid
partition table(usually an OS boot sector)
bit1=0: enable the boot of PREVIOUS MBR with invalid
partition table(usually an OS boot sector)
bit2=1: disable the feature of unconditional entrance to
the command-line(See below `--duce')
bit2=0: enable the feature of unconditional entrance to
the command-line(See below `--duce')
bit3 - bit6: reserved
bit7=1: try to boot PREVIOUS MBR after the search for GRLDR
bit7=0: try to boot PREVIOUS MBR before the search for GRLDR
03h 1 timeout in seconds to wait for a key press. 0xff stands for
waiting all the time(endless).
04h 2 hot-key code. high byte is scan code, low byte is ASCII code.
the default value is 0x3920, which stands for the space bar.
if this key is pressed, GRUB will be started prior to the boot
of previous MBR. See "int 16 keyboard scan codes" below.
06h 1 preferred boot drive number, 0xff for no-drive
07h 1 preferred partition number, 0xff for whole drive
if the preferred boot drive number is 0xff, the order of the
search for GRLDR will be:
(hd0,0), (hd0,1), ..., (hd0,L),(L=max partition number)
(hd1,0), (hd1,1), ..., (hd1,M),(M=max partition number)
... ... ... ... ... ... ... ...
(hdX,0), (hdX,1), ..., (hdX,N),(N=max partition number)
(X=max harddrive number)
(fd0)
otherwise, if the preferred boot drive number is Y(not equal to
0xff) and the preferred partition number is K, then the order of
the search for GRLDR will be:
(Y) if K=0xff; or (Y,K) otherwise
(hd0,0), (hd0,1), ..., (hd0,L),(L=max partition number)
(hd1,0), (hd1,1), ..., (hd1,M),(M=max partition number)
... ... ... ... ... ... ... ...
(hdX,0), (hdX,1), ..., (hdX,N),(N=max partition number)
(X=max harddrive number)
(fd0)
Note: if Y < 0x80, then (Y) is floppy, else (Y) is harddrive,
and (Y,K) is partition number K on harddrive (Y).
|
|
2008-2-15 20:49 |
|
|
darkradx
高级用户
积分 972
发帖 420
注册 2004-5-16
状态 离线
|
『第
2 楼』:
就改8500?
看上去85对39应该是扫描码, 00对20应该是ascii码
|
平生进退如飙风 |
|
2008-2-17 01:34 |
|
|
wwwcccyyy
中级用户
积分 224
发帖 110
注册 2007-1-7 来自 广东
状态 离线
|
『第
3 楼』:
何修这么麻烦,
用grubinst_gui吧,想怎样改就怎样改
|
|
2008-2-19 17:28 |
|
|
yoxu
初级用户
积分 99
发帖 35
注册 2008-2-19
状态 离线
|
『第
4 楼』:
请问一下,这个文件有什么用?我一般都没用到这个文件。
|
|
2008-2-19 19:30 |
|
|