![]() |
中国DOS联盟-- 联合DOS 推动DOS 发展DOS --联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum |
| 游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟 |
|
中国DOS联盟论坛 现在时间是 2026-08-12 06:11 |
共 47,811 主题排行 / 349,897 发帖 / 今日 0 篇 / 48,256 会员排行 |
| GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » [求助]修改GRLDR.MBR |
| 可打印版本 1,806 / 3 |
| 第1楼 zerocn | 发表于 2008-02-15 20:49 |
| 新手上路 发帖 4 积分 14 | |
|
[求助]修改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). |
|
| 第2楼 darkradx | 发表于 2008-02-17 01:34 |
| 高级用户 发帖 420 积分 972 | |
|
就改8500?
看上去85对39应该是扫描码, 00对20应该是ascii码 |
|
| 第3楼 wwwcccyyy | 发表于 2008-02-19 17:28 |
| 中级用户 发帖 110 积分 224 来自 广东 | |
|
何修这么麻烦,
用grubinst_gui吧,想怎样改就怎样改 |
|
| 第4楼 yoxu | 发表于 2008-02-19 19:30 |
| 初级用户 发帖 35 积分 99 | |
|
请问一下,这个文件有什么用?我一般都没用到这个文件。
|
|
|
[ 联系联盟系统管理团队 -
中国DOS联盟 -
标准版 ] Sponsored by ifanr Inc | © 2001–2023 |