China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 05:16
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Regarding the syntax issue of grub4dos-0.4.3 menu.lst View 2,640 Replies 5
Original Poster Posted 2007-12-30 03:50 ·  中国 广东 深圳 宝安区 电信
初级用户
Credits 68
Posts 29
Joined 2006-09-09 06:19
19-year member
UID 62210
Gender Male
Status Offline
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...
Floor 2 Posted 2007-12-30 04:10 ·  中国 广东 深圳 宝安区 电信
初级用户
Credits 68
Posts 29
Joined 2006-09-09 06:19
19-year member
UID 62210
Gender Male
Status Offline
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.
Floor 3 Posted 2008-01-05 05:38 ·  中国 湖北 武汉 电信
中级用户
★★
Credits 452
Posts 202
Joined 2006-12-21 13:46
19-year member
UID 74161
Gender Female
Status Offline
It's a relatively advanced technique. At that time, someone should collect it and compile a CHN
Floor 4 Posted 2008-01-05 07:26 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Originally posted by gxsanhen at 2007-12-30 04:10:
When searching the forum, I also noticed the grammar issue, but I didn't pay attention to whether the version supported it, so I went through a lot of detours and wasted a lot of time. I hope Master Budian can find time to write a usage explanation in the MENU.LST so that noobs like me can learn.


The requirement you mentioned has already been addressed by the official. Hehe.
It is recommended to check the official forum.

http://grub4dos.sourceforge.net/wiki/index.php/Main_Page
http://bbs.znpc.net/forumdisplay.php?fid=4
Windows 一键还原
http://www.yjhy.com
Floor 5 Posted 2008-01-05 19:50 ·  中国 四川 成都 电信
新手上路
Credits 6
Posts 3
Joined 2007-08-01 13:47
18-year member
UID 94428
Gender Male
Status Offline
Floor 6 Posted 2008-01-14 11:54 ·  中国 湖北 武汉 电信
中级用户
★★
Credits 452
Posts 202
Joined 2006-12-21 13:46
19-year member
UID 74161
Gender Female
Status Offline
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)
Forum Jump: