|
bean123
中级用户
  
积分 214
发帖 34
注册 2004-3-10
状态 离线
|
『楼 主』:
[分享]WinNT/2K/XP 下安装Grub4Dos的工具 grubinst 1.1 beta4
使用 LLM 解释/回答一下
grubinst 可用于在Windows NT/2K/XP 和 Linux/FreeBSD 下把Grub4Dos启动代码安装到MBR/BS。其用法类似于bootlace.com。
grubinst_gui 是运行于Windows系统下的图形界面,利用它可以方便的使用grubinst的功能。
注意:grubinst只负责把GRLDR启动代码安装到 MBR/BS, 你还需要手动把GRLDR文件拷贝到某一FAT16/FAT32分区的根目录里。
下载地址:
http://grub4dos.sourceforge.net/grubinst-1.1-beta4-bin-w32.tar.gz
http://grub4dos.sourceforge.net/grubinst-1.1-beta4-src.tar.gz
grubinst新功能:
* 支持安装到分区和软盘
* 新增选项--list-part, 用于显示分区信息
* --hot-key=支持用字符串表示热键,比如说 --hot-key=ctrl-a
* 对应于常用的选项增加相应的短形式。
grubinst_gui新功能:
* 支持中文界面
* 可显示文件/磁盘中的分区列表
* 新增对应于新版grubinst的选项
* 新增测试按钮,可显示调用grubinst的参数
详细的用法请参照README.txt文件
beta2修正:
* 刷新分区列表时无反应的bug
* Linux下不能访问超过4G的扩展分区的bug
beta3修正:
* 安装到软盘映像时出错的bug
beta4修正:
* --time-out参数没有效果
* "从文件中恢复"和"从原来的MBR中恢复"两个选项中只能选一个
Last edited by bean123 on 2007-1-23 at 10:17 AM ]
grubinst can be used to install Grub4Dos boot code to MBR/BS under Windows NT/2K/XP and Linux/FreeBSD. Its usage is similar to bootlace.com.
grubinst_gui is a graphical interface running under the Windows system, with which you can conveniently use the functions of grubinst.
Note: grubinst only takes charge of installing the GRLDR boot code to MBR/BS, and you still need to manually copy the GRLDR file to the root directory of a FAT16/FAT32 partition.
Download addresses:
http://grub4dos.sourceforge.net/grubinst-1.1-beta4-bin-w32.tar.gz
http://grub4dos.sourceforge.net/grubinst-1.1-beta4-src.tar.gz
New functions of grubinst:
* Support installation to partitions and floppy disks
* New option --list-part for displaying partition information
* --hot-key= supports using strings to represent hotkeys, for example --hot-key=ctrl-a
* Corresponding short forms are added for common options.
New functions of grubinst_gui:
* Support Chinese interface
* Can display partition lists in files/disks
* New options corresponding to the new version of grubinst are added
* New test button, which can display the parameters for calling grubinst
For detailed usage, please refer to the README.txt file
Beta2 fixes:
* Bug that no response when refreshing partition list
* Bug that cannot access extended partitions larger than 4G under Linux
Beta3 fixes:
* Bug that errors occur when installing to floppy disk images
Beta4 fixes:
* --time-out parameter has no effect
* Only one of the two options "Restore from file" and "Restore from original MBR" can be selected
Last edited by bean123 on 2007-1-23 at 10:17 AM ]
|
|
2007-1-23 01:26 |
|
|
bean123
中级用户
  
积分 214
发帖 34
注册 2004-3-10
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
新手指南:
在Windows NT/2000/XP 下,用以下的步骤可以快速地把Grub4Dos安装到MBR或分区中:
前提:你必须拥有FAT16/FAT32的分区。如果全部分区均为NTFS,则请参考最后的部分。
1、下载grubinst,解压
2、双击grubinst_gui.exe
3、在"磁盘"右面的列表中选择需要安装Grub4Dos的硬盘/软盘,如果你有多个磁盘(包括USB移动硬盘),请留意中显示的磁盘大小,以便选择正确的磁盘。
4、若需要安装到分区,可点击"分区列表"右面的"刷新"按钮,然后从下拉列表中选择需要的分区(支持FAT12/FAT16/FAT32/EXT2/EXT3)。若需要安装到MBR,这一步可省略。
5、若想以后能恢复原来的MBR/BS,则在"保存文件"中输入用于保存的文件名字。
6、点"安装",出现命令窗口,如果看到"The MBR/BS has been successfully installer", 则说明安装成功。
当然,以上步骤只是安装启动代码,要能正常启动Grub4Dos,还需要以下的步骤:
7、从
http://grub4dos.jot.com/WikiHome 或 http://sourceforge.net/project/showfiles.php?group_id=104188
中下载最新版的Grub4Dos。
8、在压缩包中找到grldr,把它放到FAT16/FAT32分区的根目录中。
9、编辑menu.lst文件(应该放在和GRLDR一样的目录里),以配置启动菜单。
若没有FAT16/FAT32分区,则不能把Grub4Dos安装到MBR/BS,而只能利用NT的启动管理器启动Grub4Dos:
1、下载Grub4Dos,把GRLDR解压到系统盘的根目录里(C:\)
2、编辑C:\boot.ini(此文件是隐藏的),在文件的最后加上
C:\GRLDR="Load Grub4Dos"
这样一行
3、编辑C:\menu.lst文件,以配置启动菜单。
4、下次启动Windows时,会增加"Load Grub4Dos"一项,选择它便能进入Grub4Dos
New User Guide:
Under Windows NT/2000/XP, you can quickly install Grub4Dos to the MBR or a partition with the following steps:
Prerequisite: You must have a FAT16/FAT32 partition. If all partitions are NTFS, please refer to the last part.
1. Download grubinst and extract it.
2. Double-click grubinst_gui.exe.
3. In the list on the right of "Disk", select the hard disk/floppy disk where you need to install Grub4Dos. If you have multiple disks (including USB mobile disks), please pay attention to the disk size shown in , so as to select the correct disk.
4. If you need to install to a partition, click the "Refresh" button on the right of "Partition List", and then select the required partition from the drop-down list (supports FAT12/FAT16/FAT32/EXT2/EXT3). If you need to install to the MBR, this step can be omitted.
5. If you want to be able to restore the original MBR/BS in the future, enter the file name for saving in "Save File".
6. Click "Install", and a command window will appear. If you see "The MBR/BS has been successfully installer", it means the installation is successful.
Of course, the above steps are only for installing the boot code. To start Grub4Dos normally, the following steps are also needed:
7. Download the latest version of Grub4Dos from http://grub4dos.jot.com/WikiHome or http://sourceforge.net/project/showfiles.php?group_id=104188
8. Find grldr in the compressed package and put it in the root directory of the FAT16/FAT32 partition.
9. Edit the menu.lst file (it should be placed in the same directory as GRLDR) to configure the boot menu.
If there is no FAT16/FAT32 partition, you cannot install Grub4Dos to the MBR/BS, but can only use the NT boot manager to start Grub4Dos:
1. Download Grub4Dos, extract GRLDR to the root directory of the system disk (C:\)
2. Edit C:\boot.ini (this file is hidden), and add a line at the end of the file:
C:\GRLDR="Load Grub4Dos"
3. Edit the C:\menu.lst file to configure the boot menu.
4. When starting Windows next time, a "Load Grub4Dos" item will be added. Select it to enter Grub4Dos
|
|
2007-1-23 03:33 |
|
|
bean123
中级用户
  
积分 214
发帖 34
注册 2004-3-10
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
grubinst_gui使用指南:
1、安装Grub4Dos到硬盘/软盘映像中。
在"文件"右面的输入框中输入映像文件名,则按"安装"时会安装到指定的映像中。
当修改的是软盘映像时,需要勾上选项"软盘映像"。
2、选项设置
只读模式:
模拟所需的操作,但不真正地把MBS/BS写到硬盘/映像中。
输出详细信息:
让后台程序grubinst输出更详细的信息,建议使用。
不保存原来的MBR (适用于安装到MBR时)
在修改原来的MBR前,grubinst会把原来的MBR保存到第二个扇区中。若选了这个选项,则
屏蔽这一功能。
启动时不搜索软盘 (适用于安装到MBR时)
启动时,若在硬盘上找不到GRLDR,Grub4Dos会试图到软盘上去寻找。若选了这个选项,则
屏蔽这一功能。
不引导原来的MBR (适用于安装到MBR时)
若原来的MBR保存在第二个扇区里,则当Grub4Dos找不到GRLDR时,会用原来的MBR来启动。
若选了这个选项,则屏蔽这一功能。
优先引导原来的MBR (适用于安装到MBR时)
若选了这个选项,则优先使用原来的MBR来启动。
注意1: Grub4Dos只保留了一个扇区的空间来存储原来的MBR,若原来的MBR超过一扇区,则只
有第一扇区被保存,因此不能用原来的MBR来启动。
注意2: 若使用了这一选项,则在启动时会有5秒的等待时间,若你在5秒内按了空格键,则启
动Grub4Dos,按其他键或5秒超时的话便引导原来的MBR。等待时间和按键可以定制。
DUCE (适用于安装到MBR时)
通常,你可以进入用'C'键无条件地进入命令模式,从而跳过所有的配置文件。这可能会引起
安全方面的问题。使用了这一选项,则可屏蔽这一功能。
注意:DUCE代表的是Disable Unconditional Command-line Entrance
软盘映像
当你把Grub4Dos安装到软盘映像时,请勾上这一选项
注意1: 安装到物理软盘时,并不需要点这一选项
注意2:当你选择了映像文件,并刷新了分区列表时,程序会根据映像文件的类型自动设置
这一参数。
注意3:安装到软盘映像或分区时,以上的适用于安装到MBR的各参数将不起作用
等待时间:
设置当优先引导原来的MBR时,启动的等待时间,缺省值是5
热键:
设置当优先引导原来的MBR时,启动Grub的热键,缺省值是空格。
注意:原来版本的grubinst(bootlace.com也一样)利用扫描码来代表按键,比如说,空格是
0x3920。但新版的grubinst允许用字符串来表示按键。比如说,a , ctrl-a , shift-a,
alt-a, F1, home, end, space, key-5 (小键盘上的5键) 等等。
额外参数:
你可以在这里输入其他传给后台程序grubinst.exe的参数
3、恢复功能
保存文件:
指定用于保存/恢复的外部文件
从文件中恢复
没有使用了这一选项时,"安装"按钮是正常的安装操作,若保存文件框不是空,则指定用于
保存原来的MBR/BS的文件
使用了这一选项时,"安装"按钮的操作变为从指定的保存文件中恢复原来的MBR/BS
从原来的MBR中恢复
使用了这一选项时,"安装"按钮的操作是从第二个扇区中恢复原来的MBR
注意1: 原来的MBR必须是单扇区,否则恢复后不能启动
注意2: 使用这一功能时,"保存文件"应该为空,并且不能选择"从文件中恢复"
4、"测试"按钮
用于显示传给grubinst的参数,但并不真正地调用grubinst。
注意: 这和"只读模式"是不同的。使用"只读模式"时调用了后台的grubinst,只是grubinst
不进行修改MBR/BS的操作。
Grubinst_gui User Guide:
1. Install Grub4Dos to the hard disk/floppy disk image.
Enter the image file name in the input box next to "File", and when pressing "Install", it will be installed to the specified image.
When modifying a floppy disk image, check the option "Floppy Disk Image".
2. Option Settings
Read-only mode:
Simulate the required operation but do not actually write the MBS/BS to the hard disk/image.
Output detailed information:
Let the background program grubinst output more detailed information, which is recommended.
Do not save the original MBR (for installation to MBR)
Before modifying the original MBR, grubinst will save the original MBR to the second sector. If this option is selected, this function is blocked.
Do not search for floppy disk at startup (for installation to MBR)
At startup, if GRLDR is not found on the hard disk, Grub4Dos will try to find it on the floppy disk. If this option is selected, this function is blocked.
Do not boot the original MBR (for installation to MBR)
If the original MBR is saved in the second sector, when Grub4Dos cannot find GRLDR, it will boot with the original MBR. If this option is selected, this function is blocked.
Prefer to boot the original MBR (for installation to MBR)
If this option is selected, the original MBR will be used to boot preferentially.
Note 1: Grub4Dos only reserves one sector of space to store the original MBR. If the original MBR exceeds one sector, only the first sector will be saved, so it cannot be booted with the original MBR.
Note 2: If this option is used, there will be a 5-second waiting time at startup. If you press the space bar within 5 seconds, Grub4Dos will be started. If you press other keys or the 5-second timeout occurs, the original MBR will be booted. The waiting time and keys can be customized.
DUCE (for installation to MBR)
Usually, you can enter the command mode unconditionally by pressing the 'C' key, thus skipping all configuration files. This may cause security problems. If this option is used, this function is blocked.
Note: DUCE stands for Disable Unconditional Command-line Entrance
Floppy Disk Image
When you install Grub4Dos to a floppy disk image, check this option
Note 1: When installing to a physical floppy disk, you do not need to check this option
Note 2: When you select an image file and refresh the partition list, the program will automatically set this parameter according to the type of the image file.
Note 3: When installing to a floppy disk image or partition, the above parameters applicable to installation to MBR will not work
Waiting time:
Set the waiting time when preferentially booting the original MBR. The default value is 5
Hot key:
Set the hot key to start Grub when preferentially booting the original MBR. The default value is space.
Note: The original version of grubinst (bootlace.com is the same) uses scan codes to represent keys. For example, space is 0x3920. But the new version of grubinst allows using strings to represent keys. For example, a, ctrl-a, shift-a, alt-a, F1, home, end, space, key-5 (the 5 key on the numeric keypad), etc.
Extra parameters:
You can enter other parameters passed to the background program grubinst.exe here
3. Restore function
Save file:
Specify an external file for saving/restoring
Restore from file
When this option is not used, the "Install" button is for normal installation operation. If the save file box is not empty, it specifies the file for saving the original MBR/BS.
When this option is used, the operation of the "Install" button becomes restoring the original MBR/BS from the specified save file
Restore from original MBR
When this option is used, the operation of the "Install" button is to restore the original MBR from the second sector
Note 1: The original MBR must be a single sector, otherwise it cannot be booted after restoration
Note 2: When using this function, the "Save file" should be empty and "Restore from file" should not be selected
4. "Test" button
Used to display the parameters passed to grubinst but does not actually call grubinst.
Note: This is different from "Read-only mode". When using "Read-only mode", the background grubinst is called, but grubinst does not perform the operation of modifying the MBR/BS.
|
|
2007-1-23 05:59 |
|
|
cain
中级用户
  
积分 201
发帖 72
注册 2005-11-20
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
我的分区全部是NTFS格式的,按说明“若没有FAT16/FAT32分区,则不能把Grub4Dos安装到MBR/BS”,但我用命令行方式把最新版本的GRLDR安装到MBR,在启动时按热键却仍有效,请问为什么?
另外等待时间没有效果,即使设置为5秒也是一闪而过,楼主能否解决?
My partitions are all in NTFS format. According to the instruction "If there is no FAT16/FAT32 partition, then Grub4Dos cannot be installed to MBR/BS", but I used the command line method to install the latest version of GRLDR to the MBR, and it is still effective when pressing the hotkey during startup. Why is that?
In addition, the waiting time has no effect. Even if set to 5 seconds, it flashes by in an instant. Can the owner solve this?
|
|
2007-1-23 06:44 |
|
|
bean123
中级用户
  
积分 214
发帖 34
注册 2004-3-10
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Originally posted by cain at 2007-1-23 06:44 AM:
我的分区全部是NTFS格式的,按说明“若没有FAT16/FAT32分区,则不能把Grub4Dos安装到MBR/BS”,但我用命令行方式把最新版本的GRLDR安装到MBR,在启动时按热 ...
根据不点文档上的说明,NTFS支持将会删除。如果可以启动的话,可能是现在的版本还支持NTFS,不过还是建议使用FAT分区。
刚才发现等待时间的处理的确有问题,请下载最新的beta4测试。
Last edited by bean123 on 2007-1-23 at 10:19 AM ]
Originally posted by cain at 2007-1-23 06:44 AM:
All my partitions are in NTFS format. According to the instructions "If there are no FAT16/FAT32 partitions, Grub4Dos cannot be installed to the MBR/BS", but I used the command line method to install the latest version of GRLDR to the MBR. When booting, press the hot ...
According to the instructions in the documentation, NTFS support will be removed. If it can boot, it may be that the current version still supports NTFS, but it is still recommended to use FAT partitions.
Just now, I found that there is indeed a problem with the processing of the waiting time. Please download the latest beta4 test.
Last edited by bean123 on 2007-1-23 at 10:19 AM ]
|
|
2007-1-23 08:45 |
|
|
cain
中级用户
  
积分 201
发帖 72
注册 2005-11-20
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
bean123,谢谢您。最新的beta4的热键已经有效了。想再请问一个问题:
安装到MBR后,在启动电脑时屏幕上出现的“PRESS HOT-KEY TO START GURB...”这一行字怎样修改成自己想要的文字?
bean123, thank you. The hotkey for the latest beta4 is already effective. I want to ask another question:
After installing to the MBR, how to modify the line "PRESS HOT-KEY TO START GURB..." that appears on the screen when booting the computer into your desired text?
|
|
2007-1-24 00:57 |
|
|
bean123
中级用户
  
积分 214
发帖 34
注册 2004-3-10
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
Originally posted by cain at 2007-1-24 12:57 AM:
bean123,谢谢您。最新的beta4的热键已经有效了。想再请问一个问题:
安装到MBR后,在启动电脑时屏幕上出现的“PRESS HOT-KEY TO START GURB...”这一行字怎 ...
这一行是嵌入代码中的,一般情况下无法修改,除非改源代码。
Originally posted by cain at 2007-1-24 12:57 AM:
bean123, thank you. The hotkey of the latest beta4 is already effective. I want to ask another question:
The line "PRESS HOT-KEY TO START GURB..." that appears on the screen when booting the computer after installing to the MBR...
This line is embedded in the code, and generally cannot be modified unless the source code is modified.
|
|
2007-1-24 01:18 |
|
|
cain
中级用户
  
积分 201
发帖 72
注册 2005-11-20
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
用UE等软件改GRLDR这个文件吗?能否指点一下?
Can you use software like UE to modify the GRLDR file? Can you give me some pointers?
|
|
2007-1-24 01:24 |
|
|
bean123
中级用户
  
积分 214
发帖 34
注册 2004-3-10
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
Originally posted by cain at 2007-1-24 01:24 AM:
用UE等软件改GRLDR这个文件吗?能否指点一下?
不建议用UE来改,不过如果真的要改的话:
用UE打开grubinst.exe文件,搜索
“Press space bar"
这里有三个连续的字符串:
1. 0D 0A "Press space bar" 00
2. 0D 0A "Press your hot-key" 00
3. " to start GRUB, any other key to boot previous MBR ..." 00
当热键是SPACE时,输出是 1+3
但热键是其它键时,输出是 2+3
需要改的话便修改以上的字符串,不过不能用中文,而且字符串的开始位置不能变。还有,新串的长度必须少于或等于旧串(长度比原来少时,可在串的结尾加上#0, 或用空格来填充)
修改grubinst.exe后,用它安装MBR,热键提示便会改变。
Originally posted by cain at 2007-1-24 01:24 AM:
Do you modify the GRLDR file with software like UE? Can you give some pointers?
It is not recommended to use UE for modification, but if you really need to modify it:
Open the grubinst.exe file with UE, and search for
"Press space bar"
There are three consecutive strings here:
1. 0D 0A "Press space bar" 00
2. 0D 0A "Press your hot-key" 00
3. " to start GRUB, any other key to boot previous MBR ..." 00
When the hot key is SPACE, the output is 1+3
But when the hot key is another key, the output is 2+3
If you need to modify, you can modify the above strings, but no Chinese can be used, and the starting position of the string cannot be changed. Also, the length of the new string must be less than or equal to the original length (when the length is shorter than the original, you can add #0 at the end of the string, or fill with spaces)
After modifying grubinst.exe, use it to install the MBR, and the hot key prompt will change.
|
|
2007-1-24 07:04 |
|
|
cain
中级用户
  
积分 201
发帖 72
注册 2005-11-20
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
谢谢。用UE修改只要修改其中一个字符都不行,按热键时会出现双行字,请问用哪一种工具修改好呢?
Thanks. Using UE to modify, even changing one character is not okay. When pressing the hotkey, double lines of text will appear. Then, which tool is better to use for modification?
|
|
2007-1-24 08:43 |
|
|
bean123
中级用户
  
积分 214
发帖 34
注册 2004-3-10
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
应该可以的,在UE二进制模式中,点右面字符的一栏,然后便可以直接输入英文字符了。
It should be okay. In the UE binary mode, click on the column of characters to the right of the dot, and then you can directly input English characters.
|
|
2007-1-24 15:11 |
|
|
hybzsz
初级用户
 
积分 67
发帖 33
注册 2009-9-12
状态 离线
|
|
2010-3-27 21:32 |
|
|
ajiange
初级用户
 
积分 44
发帖 21
注册 2006-12-17
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
感謝九樓的前輩,找這個答案已經很久了,,謝謝,,
Thanks to the senior in the ninth floor, I have been looking for this answer for a long time, thank you.
|
|
2010-5-12 21:02 |
|
|
xhamigua
初级用户
 
积分 29
发帖 12
注册 2010-3-31 来自 湖北
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
如何更改GRUB的菜单列表的最上方的 一行文字GRUB版本号的
How to change the line of text for the GRUB version number at the top of the GRUB menu list
|
|
2010-6-17 07:59 |
|
|