|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『楼 主』:
[求助不点]Grub for NTLDR的默认启动菜单文件位置有办法改变吗
使用 LLM 解释/回答一下
我知道grub for ntldr(即grldr)默认情况下在boot.ini中这样设置:
c:\grldr="Start Grub"
这个grub启动起来以后,会搜索(hd0,0)/boot/grub/menu.lst作为默认的启动菜单,但假设我的NT系统安装在(hd0,1),而menu.lst在(hd0,1)/boot/grub目录下,那么我如何设置boot.ini,使得grldr能够启动我指定的menu.lst?
我想象中应该这样设置:
c:\grldr="start Grub" configfile=(hd0,1)/boot/grub/menu.lst
但可惜无效。
还要请不点及各位grub高手不吝赐教!
I know that grub for ntldr (i.e., grldr) is set in boot.ini by default as:
c:\grldr="Start Grub"
After this grub is started, it searches for (hd0,0)/boot/grub/menu.lst as the default boot menu. But suppose my NT system is installed in (hd0,1) and menu.lst is in the (hd0,1)/boot/grub directory. Then how should I set boot.ini so that grldr can start the menu.lst I specified?
I imagined it should be set like this:
c:\grldr="start Grub" configfile=(hd0,1)/boot/grub/menu.lst
But unfortunately, it doesn't work.
Also, please ask the grub experts not to be stingy with their advice!
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-9-10 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
目前 GRLDR 不支持命令行参数。但是,最新的几个版本都已经加入了 Chris 的 findroot 和 presetmenu 补丁,可以启动 (hd0,1) 下的 menu.lst 文件了。
当 GRUB 启动时,首先查找硬盘上的各个分区中是否有 /boot/grub/menu.lst 文件,如果失败,再接着查找软盘上的 /boot/grub/menu.lst 文件。并把找到的第一个 menu.lst 文件作为菜单使用。
如果上述过程失败,就用 /boot/menu.lst 作为文件名重复上述查找过程。
如果上述过程也失败,就用 /menu.lst 作为文件名重复上述查找过程。
这样应该够用了吧?(顺便特别感谢 Chris 的精彩补丁!!)
Currently, GRLDR does not support command-line arguments. However, the latest few versions have included Chris's findroot and presetmenu patches, allowing it to boot the menu.lst file under (hd0,1).
When GRUB starts, it first searches for the /boot/grub/menu.lst file in each partition on the hard disk. If it fails, it then continues to search for the /boot/grub/menu.lst file on the floppy disk. And it uses the first found menu.lst file as the menu.
If the above process fails, it repeats the search process with /boot/menu.lst as the file name.
If the above process also fails, it repeats the search process with /menu.lst as the file name.
Should this be sufficient? (By the way, a special thanks to Chris for the wonderful patches!)
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-9-10 00:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
Chris的补丁加上后,在编译时是不是需要加什么参数呢?我是用从 http://159.226.20.15/grub_chs/上下载的Grub 0.95中文版编译的,按道理说这个源程序应该包括了所有补丁,而且,在命令行方式下确实有findroot这个命令,但这个命令我在运行时总是出现File not found的提示。而且,我的menu.lst就在(hd0,1)/boot/grub目录下,但启动时根本就找不到。不知道问题到底出在哪里?
After applying Chris's patch, do I need to add any parameters during compilation? I am using the Chinese version of Grub 0.95 downloaded from http://159.226.20.15/grub_chs/ for compilation. In theory, this source code should include all patches, and indeed there is the findroot command in the command line mode, but I always get the "File not found" prompt when running this command. Also, my menu.lst is in the (hd0,1)/boot/grub directory, but it can't be found at all during startup. I don't know where the problem is.
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-9-11 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
中文版是由 Gandalf 负责的, 你应当向他询问详细情况.
The Chinese version is handled by Gandalf. You should ask him for detailed information.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-9-11 00:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
谢谢不点,我再试一下。
Thanks, I'll try again.
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-9-12 00:00 |
|
|
gmy
版主
        操作系统爱好者
积分 1113
发帖 392
注册 2002-11-11
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
以下是引用Climbing在2004-9-10 9:32:11的发言:
我知道grub for ntldr(即grldr)默认情况下在boot.ini中这样设置:
c:\grldr="Start Grub"
这个grub启动起来以后,会搜索(hd0,0)/boot/grub/menu.lst作为默认的启动菜单,但假设我的NT系统安装在(hd0,1),而menu.lst在(hd0,1)/boot/grub目录下,那么我如何设置boot.ini,使得grldr能够启动我指定的menu.lst?
我想象中应该这样设置:
c:\grldr="start Grub" configfile=(hd0,1)/boot/grub/menu.lst
但可惜无效。
还要请不点及各位grub高手不吝赐教!
用十六进制编辑GRLDR的所有路径。
The following is a quote from Climbing's post on September 10, 2004, at 9:32:11:
I know that grub for ntldr (i.e., grldr) is set in boot.ini by default as:
c:\grldr="Start Grub"
After this grub starts, it will search (hd0,0)/boot/grub/menu.lst as the default boot menu. But suppose my NT system is installed in (hd0,1) and menu.lst is in (hd0,1)/boot/grub directory, then how should I set boot.ini so that grldr can start the menu.lst I specified?
I imagined it should be set like this:
c:\grldr="start Grub" configfile=(hd0,1)/boot/grub/menu.lst
But unfortunately, it doesn't work.
Also, please ask the great grub experts to give advice!
Edit all paths in GRLDR in hexadecimal.
|

DOS之家 http://doshome.com 站长 葛明阳 |
|
2004-9-12 00:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
以下是引用gmy在2004-9-12 20:03:02的发言:
>
用十六进制编辑GRLDR的所有路径。
试过了,无效!
The following is a quote from gmy's post on 2004-9-12 20:03:02:
>
Edit all paths in GRLDR in hexadecimal.
Tried it, no good!
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-9-13 00:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Dear Tinybit,能不能修改grldr,让他支持启动参数呢?我觉得这应该并不复杂吧?因为NTLDR是支持传递启动参数的。如果grldr支持启动参数,那么顶楼的问题就很容易解决了。
Dear Tinybit, can you modify grldr to support boot parameters? I think this shouldn't be too complicated, because NTLDR supports passing boot parameters. If grldr supports boot parameters, then the problem in the top post will be easily solved.
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-9-13 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
以前曾经考虑过增添 GRLDR 命令行的支持, 不过这似乎并不容易, 所以, 后来就采纳了 CHRIS 的 findroot 和 preset menu 补丁.
这基本上够用了, 尽量使用这个方法. 如果确实不够用, 大家再商量.
grub for dos 0.2.0 pre12 是完全支持这个动态查找过程的. 你试试再说.
Previously, there was consideration to add support for GRLDR command line, but it seemed not easy, so later CHRIS's findroot and preset menu patches were adopted.
This is basically sufficient, try to use this method. If it is really not enough, we can discuss again.
grub for dos 0.2.0 pre12 fully supports this dynamic search process. You can give it a try.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-9-13 00:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
不点,通过./configure --help我已经找到preset menu的编译参数应该是:--enable-preset-menu=FILE通过查阅你写的帮助,我也搞清楚了findroot的用法。有两个问题需要请教:1、--enable-preset-menu=FILE中的FILE是不是应该类似于这样:(hd0,1)/boot/grub/menu.lst如果我这样编译了grub,是不是grub就将默认的(hd0,0)/boot/grub/menu.lst修改为了(hd0,1)/boot/grub/menu.lst,那么这个编译版本也只能适用于某些特殊的机器(即将menu.lst放在(hd0,1)/boot/grub的机器),却不适合于另一些机器(将menu.lst放在除(hd0,1)以外的分区的机器。2、findroot命令(及find)是不是只能用于grub的交互式界面,当然前提是没有一个默认的menu.lst作支持。例如,我的grub默认查找(hd0,0)/boot/grub/menu.lst作为默认启动菜单,如果该位置没有这个文件,启动grub后就直接进入了交互式界面,这时候我只能手工输入:findroot /boot/grub/menu.lst
configfile /boot/grub/menu.lst来启动菜单系统。而现在我想解决的就是,无论我的menu.lst在哪个分区(假设固定在/boot/grub/menu.lst位置),只要我启动grub,它就会自动查找每个分区的/boot/grub/menu.lst,并将找到的第一个文件作为默认菜单启动。不知道grub for dos 0.2.0 pre12是不是支持这种查找方式?
Don't click. Through ./configure --help I have found that the compilation parameter for the preset menu should be: --enable-preset-menu=FILE. By referring to your written help, I have also clarified the usage of findroot. There are two questions to ask: 1. Should FILE in --enable-preset-menu=FILE be similar to this: (hd0,1)/boot/grub/menu.lst? If I compile grub like this, will grub change the default (hd0,0)/boot/grub/menu.lst to (hd0,1)/boot/grub/menu.lst? Then this compiled version will only be suitable for some special machines (the machines where menu.lst is placed in (hd0,1)/boot/grub), but not suitable for other machines (the machines where menu.lst is placed in partitions other than (hd0,1)). 2. Are the findroot command (and find) only usable in the interactive interface of grub, of course, on the premise that there is no default menu.lst for support. For example, my grub defaults to finding (hd0,0)/boot/grub/menu.lst as the default boot menu. If this file is not at that location, after starting grub, it directly enters the interactive interface. At this time, I can only manually enter: findroot /boot/grub/menu.lst
configfile /boot/grub/menu.lst to start the menu system. And now what I want to solve is that no matter where my menu.lst is in the partition (assuming it is fixed at /boot/grub/menu.lst), as long as I start grub, it will automatically search for /boot/grub/menu.lst in each partition and use the first found file as the default menu to boot. I wonder if grub for dos 0.2.0 pre12 supports this kind of search method?
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-9-14 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
按照 grub for dos 0.2.0 pre12 发布中的 compile 文件去编译就行了。
我已经把 presetmenu 编译进去了。findroot 已经被改成 find --set-root 了。
find 命令可以用于菜单中,命令行也可以用。
你什么也不需要做,只要下载 pre12 用就成。
Just compile according to the compile file in the release of grub for dos 0.2.0 pre12.
I have compiled presetmenu into it. findroot has been changed to find --set-root.
The find command can be used in the menu and also in the command line.
You don't need to do anything, just download and use pre12.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-9-14 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
而现在我想解决的就是,无论我的menu.lst在哪个分区(假设固定在/boot/grub/menu.lst位置),只要我启动grub,它就会自动查找每个分区的/boot/grub/menu.lst,并将找到的第一个文件作为默认菜单启动。不知道grub for dos 0.2.0pre12是不是支持这种查找方式?
----------------
是的,完全支持,无需任何设置,默认自动搜索 /boot/grub/menu.lst,先搜索硬盘全部分区,然后搜索所有的软盘。找到的第一个就被采用。
And now what I want to solve is that no matter which partition my menu.lst is in (assuming it is fixed at the /boot/grub/menu.lst location), as long as I boot grub, it will automatically search for /boot/grub/menu.lst in each partition, and take the first file found as the default menu to boot. I wonder if grub for dos 0.2.0pre12 supports this kind of search method?
----------------
Yes, it is fully supported. No settings are required. It automatically searches for /boot/grub/menu.lst by default. It first searches all partitions of the hard disk, and then all floppy disks. The first one found is used.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2004-9-14 00:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
不点,
嘿,我在无忧启动论坛与Einstein/Gandalf/useronce联系,在DOS联盟论坛与你联系,而你们又在United DOS forum联系,实在是浪费了太多的精力。
在Gandalf的帮助下,我已经大体搞清楚了Chris补丁的工作原理,我已经看到了grub-0.95-patch4-findroot这个补丁,你应该是在Chris补丁的基础上进行了简单的修改。我不太熟悉linux,因此还不知道怎么将补丁打到源程序上。应该是用diff这个命令吧。看来我只好寄希望于Gandalf继续推出打上你的pre12补丁的grub源程序,然后重新编译。
总之,感谢。
我在无忧启动论坛与Gandalf(useronce)讨论的帖子链接为:
http://bbs.wuyou.com/cgi-bin/topic.cgi?forum=34&topic=4225&show=0
Don't click,
Hey, I contacted Einstein/Gandalf/useronce on the Wuyou Boot Forum and you on the DOS Union Forum, and you're also in contact on the United DOS forum, which really wastes too much energy.
With the help of Gandalf, I have generally figured out the working principle of the Chris patch. I have seen the grub-0.95-patch4-findroot patch. You should have made simple modifications based on the Chris patch. I'm not very familiar with linux, so I don't know how to apply the patch to the source code. It should be using the diff command. It seems I can only hope that Gandalf will continue to release the grub source code with your pre12 patch applied and then recompile it.
In short, thanks.
The link to the post I discussed with Gandalf (useronce) on the Wuyou Boot Forum is:
http://bbs.wuyou.com/cgi-bin/topic.cgi?forum=34&topic=4225&show=0
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-9-14 00:00 |
|