中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-06-25 01:50
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » [求助]修改GRLDR.MBR 查看 1,725 回复 3
楼 主 [求助]修改GRLDR.MBR 发表于 2008-02-15 20:49 ·  中国 广东 广州 海珠区 电信
新手上路
积分 14
发帖 4
注册 2007-06-18 22:50
19年会员
UID 91748
性别 男
状态 离线
我在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).
2 发表于 2008-02-17 01:34 ·  中国 广东 深圳 联通
高级用户
★★★
积分 972
发帖 420
注册 2004-05-16 00:00
22年会员
UID 24467
性别 男
状态 离线
就改8500?
看上去85对39应该是扫描码, 00对20应该是ascii码
平生进退如飙风
3 发表于 2008-02-19 17:28 ·  中国 广东 揭阳 电信
中级用户
★★
积分 224
发帖 110
注册 2007-01-07 07:06
19年会员
UID 75698
性别 男
来自 广东
状态 离线
何修这么麻烦,
用grubinst_gui吧,想怎样改就怎样改
4 发表于 2008-02-19 19:30 ·  中国 浙江 温州 电信
初级用户
积分 99
发帖 35
注册 2008-02-19 13:45
18年会员
UID 110964
性别 男
状态 离线
请问一下,这个文件有什么用?我一般都没用到这个文件。
论坛跳转: