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-24 23:40
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » How does GRUB load the XP installation boot file SETUPLDR.bin? View 8,356 Replies 23
Floor 16 Posted 2007-02-07 22:43 ·  中国 辽宁 锦州 联通
初级用户
Credits 90
Posts 38
Joined 2007-01-16 08:12
19-year member
UID 76668
Gender Male
Status Offline
Don't click. I still need to ask you to help analyze.

I followed your method and used the MAP command to swap the hard drives. The commands are as follows

map (hdo0) (hd1)

map (hd1) (hd0)

rootnoverify (hd1,0)

chainloader (hd1,0)+1

boot

Then there is only a cursor flashing there and it doesn't execute.

What's the reason? Don't click. Help take a look in FastSLZ, thank you
Floor 17 Posted 2007-02-07 22:55 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
Your first command was a typo? Try this:

map (hd1) (hd0)
map (hd0) (hd1)
map --hook
find --set-root /ntldr
chainloader /ntldr
boot
因为我们亲手创建,这个世界更加美丽。
Floor 18 Posted 2007-02-07 23:16 ·  中国 辽宁 锦州 联通
初级用户
Credits 90
Posts 38
Joined 2007-01-16 08:12
19-year member
UID 76668
Gender Male
Status Offline
Haha, thank you Budian. It has been successful. :D
Floor 19 Posted 2007-02-07 23:19 ·  中国 辽宁 锦州 联通
初级用户
Credits 90
Posts 38
Joined 2007-01-16 08:12
19-year member
UID 76668
Gender Male
Status Offline
According to the above command, it's okay. It's the problem of my own hard drive. The MBR was lost, and it was fine after rewriting one. Thank you for your attention. I didn't expect to get a reply so soon.
Floor 20 Posted 2007-02-07 23:37 ·  中国 辽宁 锦州 联通
初级用户
Credits 90
Posts 38
Joined 2007-01-16 08:12
19-year member
UID 76668
Gender Male
Status Offline
There is also a problem, how to modify the built-in menu to prevent it from searching for the local MENU.LST. When starting up now, it always first shows the built-in find MENU.LST, and then shows my MENU.LST. It would be great if the built-in one can be used. I analyzed the dwarf's DOS toolbox, his is using the built-in menu, but there are two files, one is ARLDR and the other is argzs, and there is no MENU.LST in the boot directory.
Floor 21 Posted 2007-02-08 00:02 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
I don't agree with modifying grub myself. What does it mean? That is, if you want to modify, submit the modified patch to the project maintainer. If the project maintainer thinks your modification is reasonable, he will accept your patch. Otherwise, I personally think that's making trouble.

As for GRLDR, what it executes preferentially is not the built-in menu, but menu.lst in the root directory. Only when there is no menu.lst in the root directory will it execute the built-in preset_menu menu.

So, unless you explicitly delete menu.lst in the root directory to ensure it doesn't exist, then your built-in preset_menu cannot guarantee that it will take over control. Although you can delete the menu.lst in the root directory yourself, other software may create this file. Therefore, the execution of your built-in menu is always not absolutely guaranteed.
因为我们亲手创建,这个世界更加美丽。
Floor 22 Posted 2007-02-08 00:14 ·  中国 辽宁 锦州 联通
初级用户
Credits 90
Posts 38
Joined 2007-01-16 08:12
19-year member
UID 76668
Gender Male
Status Offline
Floor 23 Posted 2007-04-09 01:06 ·  中国 广西 南宁 西乡塘区 电信
初级用户
Credits 55
Posts 23
Joined 2007-04-02 13:59
19-year member
UID 83729
Gender Male
Status Offline
I directly put the installation package on the USB flash drive. How should I boot? I have tried all the above methods, and it just restarts after the screen flashes. If I switch to ntldr, it shows a boot.ini reading error and then stops.
Floor 24 Posted 2009-01-19 21:52 ·  中国 福建 泉州 电信
新手上路
Credits 18
Posts 9
Joined 2008-02-08 01:48
18-year member
UID 110332
Gender Male
Status Offline
Boss, just use
title Install Windows XP (by Makubes)
chainloader /SETUPLDR.BIN
No need to write hd or something, this is simple and convenient, remember to be in the same directory~
Forum Jump: