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-08-01 10:46
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Must grldr and menu.lst be placed in the root? View 14,670 Replies 6
Original Poster Posted 2010-10-28 14:43 ·  中国 陕西 西安 电信
新手上路
Credits 6
Posts 2
Joined 2010-10-27 17:14
15-year member
UID 176615
Gender Male
Status Offline
As the title says, I first formatted the USB flash drive with HP's USB flash drive formatting tool, and then used grubinst_gui to make a bootable USB flash drive in MRB format. According to the production instructions, grldr and menu.lst must be placed in the root directory. After testing, it can run normally. Is there a better way to make grldr and menu.lst not have to be placed in the root directory, such as placing them in "\boot\" under the root directory? It seems that it is necessary to modify the MRB boot to achieve it, but I don't know how to make it. I ask all the predecessors for advice.
Floor 2 Posted 2010-10-28 16:45 ·  德国 马克斯-普朗克等离子物理研究所
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
The grldr must be placed in the root directory, and menu.lst can be placed in the boot directory.
Floor 3 Posted 2010-10-28 17:53 ·  中国 天津 电信
初级用户
★★
小鸟鸟
Credits 120
Posts 74
Joined 2010-05-08 01:53
16-year member
UID 166347
Gender Male
From 河北
Status Offline
Floor 4 Posted 2010-10-29 16:00 ·  中国 陕西 西安 电信
新手上路
Credits 6
Posts 2
Joined 2010-10-27 17:14
15-year member
UID 176615
Gender Male
Status Offline
Is there no way to modify the boot file so that the boot program directly executes grldr in the \boot\ directory?
Floor 5 Posted 2010-10-30 04:23 ·  德国 巴伐利亚州 纽伦堡
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
Originally posted by jaqal at 2010-10-20 04:00 PM:
Is there no way to modify the boot file so that the boot program directly executes \boot\grldr?

No. Currently, common system boot programs all require to be placed directly in the root directory. For example, io.sys for DOS, os2ldr for OS/2, ntldr for NT systems, and bootmgr for NT 6.x, all require to be placed in the root directory. The key reason is the limitation of the capacity of the boot sector code, which makes it impossible for the boot sector to hold the code to find the boot program in a non-root directory.
Floor 6 Posted 2010-10-31 22:04 ·  中国 河南 南阳 电信
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
The building host's requirements are too high. It's a blessing if the USB flash drive can boot successfully without freezing, and you still ask to find GRLDR in the subdirectory.

If it's not a USB flash drive but a hard disk, then there is a way, that is, use the MBR code of the 63rd sector to load the boot file in the subdirectory, such as GRLDR, etc.

Currently, there are two such available software. One is wee (can be downloaded at http://nufans.net/grub4dos/), and one is pt's 63rd sector grub (63s-grub):

http://bbs.wuyou.com/viewthread.php?tid=159898&extra=page%3D4
因为我们亲手创建,这个世界更加美丽。
Floor 7 Posted 2010-11-01 02:55 ·  中国 青海 西宁 联通
新手上路
Credits 9
Posts 6
Joined 2009-12-21 11:52
16-year member
UID 157036
Gender Male
Status Offline
Must be in the root directory, system issue
Forum Jump: