|
gxsanhen
初级用户
 
积分 68
发帖 29
注册 2006-9-9
状态 离线
|
『楼 主』:
关于grub4dos-0.4.3 menu.lst语法问题
使用 LLM 解释/回答一下
自从05年开始用GRLDR 0。95开始,到现在就一直没有更新过了。直到现在又重新开始研究GRUB,因为要用到大容量的IMG,所以这几天出现了不少问题,也折腾了我几天,今晚终于完美的成功解决这个问题。对此,请教一下不点大师!
如果GRLDR是0。95版本的话,用以下脚本可启动标准IMG
title Run Ghost
password --md5 $1$xpH$dgNZf0p5KCySzw.Aaz//d1
root (hd0,0)
kernel (hd0,0)/boot/grub/memdisk.gz
initrd (hd0,0)/boot/grub/boot.img
但是非标准格式大容量的IMG,用上边脚本是启动不了的,换以下脚本也不行
请问是GRLDR0。95不支持非标准格式的IMG吗?
title memdrive duplicated from floppy image file (hd0,0)/sbm.bin
map --mem (hd0,0)/boot/grub/boot.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2
继续,我用grub4dos-0.4.3-2007-12-25里边的GRLDR可以成功运行,但是必须用到上边那种写法的脚本,即
title memdrive duplicated from floppy image file (hd0,0)/sbm.bin
map --mem (hd0,0)/boot/grub/boot.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2
这样是成功可以运行非标准大容量的IMG的。
但是以下写法的话,用grub4dos-0.4.3-2007-12-25里边的GRLDR一样启动不了大容量非标准格式的IMG的。。。
title Run Ghost
password --md5 $1$xpH$dgNZf0p5KCySzw.Aaz//d1
root (hd0,0)
kernel (hd0,0)/boot/grub/memdisk.gz
initrd (hd0,0)/boot/grub/boot.img
请问是否现在的GRLDR不支持上边的脚本写法来启动非标准IMG了还是什么原因,我就因为一直习惯用上边的写法,没留意新版的写法,之所以折腾了我三天,换了不少IMG文件,一样不行,直到现在才留意到脚本的写法是不相同了的,但是用上边的写法用新版GRLDR却可以成功启动标准的IMG格式文件,如果不支持,为什么GRUB里边的说明文档没有说明,请指教。。。
Since I started using GRLDR 0.95 in 2005, there has been no update until now. Now I've started researching GRUB again because I need to use large-capacity IMG files, so I've had many problems these days and have been struggling for a few days. Tonight I finally successfully solved this problem perfectly. Therefore, I would like to ask Master Budian!
If GRLDR is version 0.95, the following script can boot the standard IMG:
title Run Ghost
password --md5 $1$xpH$dgNZf0p5KCySzw.Aaz//d1
root (hd0,0)
kernel (hd0,0)/boot/grub/memdisk.gz
initrd (hd0,0)/boot/grub/boot.img
But for non-standard format large-capacity IMG, the above script can't boot. The following script also doesn't work.
Is it that GRLDR 0.95 doesn't support non-standard format IMG?
title memdrive duplicated from floppy image file (hd0,0)/sbm.bin
map --mem (hd0,0)/boot/grub/boot.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2
Continue, I can successfully run with GRLDR in grub4dos-0.4.3-2007-12-25, but I must use the above writing method script, that is
title memdrive duplicated from floppy image file (hd0,0)/sbm.bin
map --mem (hd0,0)/boot/grub/boot.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2
This can successfully run non-standard large-capacity IMG.
But the following writing method, with GRLDR in grub4dos-0.4.3-2007-12-25, still can't boot large-capacity non-standard format IMG...
title Run Ghost
password --md5 $1$xpH$dgNZf0p5KCySzw.Aaz//d1
root (hd0,0)
kernel (hd0,0)/boot/grub/memdisk.gz
initrd (hd0,0)/boot/grub/boot.img
Is it that the current GRLDR doesn't support the above script writing method to boot non-standard IMG or what's the reason? I have been used to the above writing method and didn't pay attention to the new version's writing method, so it has troubled me for three days, changed many IMG files, still no good. Until now I just noticed that the script writing method is different. But with the above writing method, the new version of GRLDR can successfully boot the standard IMG format file. If it doesn't support, why doesn't the GRUB instruction document explain it? Please instruct...
|
|
2007-12-30 03:50 |
|
|
gxsanhen
初级用户
 
积分 68
发帖 29
注册 2006-9-9
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
继续测试成果:
换成grub4dos-0.4.3-2007-12-25里边的GRLDR用这种写法是成功的:
title Run Ghost
password --md5 $1$xpH$dgNZf0p5KCySzw.Aaz//d1
root (hd0,0)
kernel (hd0,0)/boot/grub/memdisk.gz c=240 h=2 s=36 floppy
initrd (hd0,0)/boot/grub/boot.img
但是GRLDR 0。95的话,上边的写法一样是加载不了非标准IMG的。
搜索论坛的时候,也注意到语法的问题,但是没有注意版本的是否支持的问题,所以走了不少弯路,折磨了不少时间。希望不点大师能够有时间写个MENU。LST里边用法说明出来,让我等菜鸟学习一下。
Continue to test the results:
The following writing in GRLDR from grub4dos-0.4.3-2007-12-25 is successful:
title Run Ghost
password --md5 $1$xpH$dgNZf0p5KCySzw.Aaz//d1
root (hd0,0)
kernel (hd0,0)/boot/grub/memdisk.gz c=240 h=2 s=36 floppy
initrd (hd0,0)/boot/grub/boot.img
But with GRLDR 0.95, the above writing still fails to load non-standard IMG.
When searching the forum, I also noticed the issue of grammar, but I didn't pay attention to whether the version supports it, so I went through a lot of detours and wasted a lot of time. I hope Mr. Budian can take the time to write out the usage instructions in MENU.LST for us noobs to learn.
|
|
2007-12-30 04:10 |
|
|
429499381
中级用户
  
积分 452
发帖 202
注册 2006-12-21
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
算 是高级技巧了 , 到时候谁收集一下, 编个CHN
It's a relatively advanced technique. At that time, someone should collect it and compile a CHN
|
|
2008-1-5 05:38 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
|
2008-1-5 07:26 |
|
|
CCCLOVE
新手上路

积分 6
发帖 3
注册 2007-8-1
状态 离线
|
|
2008-1-5 19:50 |
|
|
429499381
中级用户
  
积分 452
发帖 202
注册 2006-12-21
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
楼主一直在说上面上面的, 让我搞不懂到底哪个是上面
不点当然不愿意多耗时间去分析啊
你写的基本没什么问题, 用最新的语法就好了
如果非要用你以前的写法, 非标准的IMG 需要CHS参数 (不确定)
title Run Ghost
password --md5 $1$xpH$dgNZf0p5KCySzw.Aaz//d1
root (hd0,0)
kernel (hd0,0)/boot/grub/memdisk.gz
initrd (hd0,0)/boot/grub/boot.img
你这 title Run Ghost 写法 在新版本可能有问题!! 记得有帖子写过
去掉 root (hd0,0)
The LZ has been talking about above and above, which makes me confused about which one is above. If you don't click, of course, you don't want to spend more time analyzing. What you wrote is basically okay, just use the latest grammar. If you have to use your previous writing, the non-standard IMG needs the CHS parameter (not sure).
title Run Ghost
password --md5 $1$xpH$dgNZf0p5KCySzw.Aaz//d1
root (hd0,0)
kernel (hd0,0)/boot/grub/memdisk.gz
initrd (hd0,0)/boot/grub/boot.img
Your way of writing "title Run Ghost" may have problems in the new version! I remember there was a post that wrote about removing root (hd0,0)
|
|
2008-1-14 11:54 |
|
|