Board logo

标题: [求助]修改GRLDR.MBR [打印本页]

作者: zerocn     时间: 2008-2-15 20:49    标题: [求助]修改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).
作者: darkradx     时间: 2008-2-17 01:34
就改8500?
看上去85对39应该是扫描码, 00对20应该是ascii码
作者: wwwcccyyy     时间: 2008-2-19 17:28
何修这么麻烦,
用grubinst_gui吧,想怎样改就怎样改
作者: yoxu     时间: 2008-2-19 19:30
请问一下,这个文件有什么用?我一般都没用到这个文件。




欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) Powered by Discuz! 2.5