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:32
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Grub4dos after November 18 cannot boot SETUPLDR.BIN View 1,611 Replies 4
Original Poster Posted 2007-12-03 18:32 ·  中国 四川 成都 电信
新手上路
Credits 8
Posts 3
Joined 2007-12-03 17:35
18-year member
UID 104561
Gender Male
Status Offline
I use grldr to make the boot of the CD. In menu.lst there is this

title Boot WINPE
find --set-root (cd)/BOOT/SETUPLDR.BIN
chainloader (cd)/BOOT/SETUPLDR.BIN
savedefault --wait=2


After entering, it will prompt


Error 42: The filename should NOT have a DEVICE part


These 4 versions of 11.18, 11.24, 12.1, 12.2 all have this problem, while the 11.11 version can boot normally, and the version in March on my other tool disk is also normal

Could it be that after starting to support emulating CD-ROM, this was given up?
Floor 2 Posted 2007-12-03 18:34 ·  中国 四川 成都 电信
新手上路
Credits 8
Posts 3
Joined 2007-12-03 17:35
18-year member
UID 104561
Gender Male
Status Offline
This SETUPLDR.BIN file is the one under WXPE in the MaoTao 911 version PE.
Floor 3 Posted 2007-12-03 20:15 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
find --set-root (cd)/BOOT/SETUPLDR.BIN

This is originally a wrong usage. The old version doesn't report an error, but the new version does.

In the find command, the new version doesn't allow the device name part to appear, that is, you need to remove (cd).

The find command in your menu is actually useless at all, because there is no omitted device name in your subsequent chainloader statement, so the find command is redundant. It should be like this:


title Boot WINPE Example 1
chainloader (cd)/BOOT/SETUPLDR.BIN
savedefault --wait=2


Or if you need the flexibility brought by find, then it should be like this:


title Boot WINPE Example 2
find --set-root /BOOT/SETUPLDR.BIN
chainloader /BOOT/SETUPLDR.BIN
savedefault --wait=2


Here, the root device determined by find is the first device that contains the /BOOT/SETUPLDR.BIN file it finds, so it is not necessarily the (cd) device.

If you want chainloader to boot the file on (cd), then the former (Example 1) should be used, not the latter (Example 2).
因为我们亲手创建,这个世界更加美丽。
Floor 4 Posted 2007-12-03 22:13 ·  中国 四川 成都 电信
新手上路
Credits 8
Posts 3
Joined 2007-12-03 17:35
18-year member
UID 104561
Gender Male
Status Offline
Thanks to Master BuDian for guidance. Is "find --set-root /BOOT/SETUPLDR.BIN" supposed to be finding this file on any disk?
Floor 5 Posted 2007-12-11 08:47 ·  德国
初级用户
Credits 75
Posts 37
Joined 2007-04-11 16:01
19-year member
UID 84768
Gender Male
Status Offline
Search for the \boot\setupldr.bin file in any partition.
Forum Jump: