下面引用由Climbing在 2004/09/09 07:42pm 发表的内容:
我知道grub for ntldr(即grldr)默认情况下在boot.ini中这样设置:
c:\grldr="Start Grub"
这个grub启动起来以后,会搜索(hd0,0)/boot/grub/menu.lst作为默认的启动菜单,但假设我的NT系统安装在(hd0,1 ...
下面引用由弄潮儿-NET在 2004/09/09 08:54pm 发表的内容:
就算NT系统安装在 (hd0,1)中,BOOT.INI也应该在 (hd0,0)中的呀.晕...
下面引用由弄潮儿-NET在 2004/09/09 08:01pm 发表的内容:
我也想问一下这个MENU.LST是否可以指定别的名字...
下面引用由Climbing在 2004/09/09 07:42pm 发表的内容:
我知道grub for ntldr(即grldr)默认情况下在boot.ini中这样设置:
c:\grldr="Start Grub"
这个grub启动起来以后,会搜索(hd0,0)/boot/grub/menu.lst作为默认的启动菜单,但假设我的NT系统安装在(hd0,1 ...
下面引用由Climbing在 2004/09/10 08:26am 发表的内容:
错,我的boot.ini就是在(hd0,1)中的。
你如果大喊:官人,我要。我就告诉你是怎么回事。呵呵
下面引用由guies在 2004/09/10 02:14pm 发表的内容:
GRLDR 里有这样的代码
下面引用由guies在 2004/09/11 05:57pm 发表的内容:
把 grub.exe 文件拷贝到 DOS 的硬盘分区或者 DOS 软盘即可。用法:
grub --config-file=(hd0,0)/boot/grub/menu.lst
或者不带参数:
grub
...
下面引用由弄潮儿-NET在 2004/09/11 07:33pm 发表的内容:
楼主问的是从GRLDR引导,
the only thing I have done beyond that is to make the default configfile (hd0,0)/grldr.lst so that it will not try to find the normal (hd0,0)/boot/grub/menu.lst I also create an fr.lst file in the root of the source and this fr.lst is compiled in.
the patch4a that is in this e-mail can do that for you.
so what happens is
grub loads fr.lst from it's memory but does not run any commands yet then it looks for (hd0,0)/grldr.lst and if found loads it and runs the commands and forgets the commands in fr.lst If (hd0,0)/grldr.lst is not present then the commands in fr.lst run and search all drives/partitions for /grldr.lst the loads it..........
so edit tinybit's compile script in his source to also apply patch 4a and change the ./configure line in that script to.
./configure --enable-preset-menu=fr.lst
or if you have source that is already patched for pre9 you can just apply patch 4a and then ./configure --enable-preset-menu=fr.lst make
hope that is what you want to know.
--------cut here-------------
diff -urN grub-0.95c/fr.lst grub-0.95/fr.lst
--- grub-0.95c/fr.lst1969-12-31 19:00:00.000000000 -0500
+++ grub-0.95/fr.lst2004-07-21 12:53:26.000000000 -0400
@@ -0,0 +1,6 @@
+default=0
+timeout=0
+
+title load grldr.lst
+findroot /grldr.lst
+configfile /grldr.lst
diff -urN grub-0.95c/stage2/asm.S grub-0.95/stage2/asm.S
--- grub-0.95c/stage2/asm.S2004-07-21 12:14:51.000000000 -0400
+++ grub-0.95/stage2/asm.S2004-07-21 12:03:27.000000000 -0400
@@ -97,7 +97,7 @@
.string VERSION
VARIABLE(config_file)
#ifndef STAGE1_5
-.string "/boot/grub/menu.lst"
+.string "/grldr.lst"
#else /* STAGE1_5 */
.long0xffffffff
.string "/boot/grub/stage2"
diff -urN grub-0.95c/stage2/grldrstart.S grub-0.95/stage2/grldrstart.S
--- grub-0.95c/stage2/grldrstart.S2004-07-21 12:14:20.000000000 -0400
+++ grub-0.95/stage2/grldrstart.S2004-07-21 12:03:27.000000000 -0400
@@ -585,7 +585,7 @@
jmppre_stage2_start//ljmp$0, $0x8200
default_config_file:
-.ascii"(hd0,0)/boot/grub/menu.lst"
+.ascii"(hd0,0)/grldr.lst"
.byte0/* mark the end of ascii zero string */
-----------------cut here--------------------
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) | Powered by Discuz! X3.3 |