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 01:28
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » How to write Grub's Menu.lst, please give guidance! View 2,423 Replies 7
Original Poster Posted 2008-06-22 18:07 ·  中国 广东 广州 越秀区 电信
初级用户
Credits 27
Posts 9
Joined 2008-05-17 15:04
18-year member
UID 118943
Gender Male
Status Offline
The same piece of hardware, the C drive is Fat32 with XP installed, and the extended partition D drive is Fat16 with DOS installed. Now I mainly want to ask for correction on the way to boot the DOS in drive D.

The first one:
title DOS
map --in-situ (hd0,4)+1 (hd0)
find --set-root /io.sys
chainloader /io.sys

The second one:
title DOS
map --read-only (hd0,4)+1 (hd0)
map --hook
chainloader (hd0,4)+1
rootnoverify (hd0)
map --harddrives=1

Which one of the above is correct, or is there a better way to write it? Please be corrected by the experts! Learning...
Floor 2 Posted 2008-06-23 10:21 ·  中国 河南 南阳 电信
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
The second one, why use --read-only write protection? Is it to prevent virus writing? The last sentence of setting the number of hard disks to 1 is also unnecessary. In case you have two hard disks, won't the second hard disk be inaccessible?

--in-situ is generally not necessary. You don't need this when booting DOS. This option is designed to deal with Win98.

It seems that this is better:

title DOS
map (hd0,4)+1 (hd0)
map --hook
find --set-root /io.sys
chainloader /io.sys

If booting Win98, you must use --in-situ.
因为我们亲手创建,这个世界更加美丽。
Floor 3 Posted 2008-06-23 11:59 ·  中国 广东 广州 越秀区 电信
初级用户
Credits 27
Posts 9
Joined 2008-05-17 15:04
18-year member
UID 118943
Gender Male
Status Offline
Under the command line, the following can start DOS:
grub>map (hd0,4)+1 (hd0)
grub>map --hook
grub>find --set-root /io.sys
grub>chainloader /io.sys
grub>boot

Under menu.lst, the following cannot start DOS; it will return to the boot menu. At this time, if you select the XP item, it actually enters DOS.
title DOS
map (hd0,4)+1 (hd0)
map --hook
find --set-root /io.sys
chainloader /io.sys

[ Last edited by e98123 on 2008-6-23 at 12:22 PM ]
Floor 4 Posted 2008-06-23 16:38 ·  中国 上海 浦东新区 电信
初级用户
Credits 78
Posts 38
Joined 2008-05-08 12:38
18-year member
UID 118097
Gender Male
Status Offline
Does using map --in-situ (hd0,4)+1 (hd0) without the Master Booter allow booting into XP in that partition?
Floor 5 Posted 2008-06-23 16:54 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
It is absolutely impossible to boot XP because disk emulation is ineffective for XP.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 6 Posted 2008-06-24 07:52 ·  中国 上海 浦东新区 电信
高级用户
★★★
中國DOS聯盟常任參議员
Credits 686
Posts 318
Joined 2005-11-04 13:00
20-year member
UID 77577
Gender Male
Status Offline
Can't this work,
chainloader (hd0,4)/ntldr
. 繽紛色彩閃出的美麗是因為它沒有分開每種色彩...>/

我的百度空间: BEYOND超越 为什么用DOS
Floor 7 Posted 2008-06-24 10:53 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Originally posted by Jneny at 2008-6-24 07:52:
Can't this be done?
chainloader (hd0,4)/ntldr

No.
Windows 一键还原
http://www.yjhy.com
Floor 8 Posted 2008-06-24 10:55 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Originally posted by e98123 at 2008-6-22 18:07:
The same hardware, the C drive is Fat32 with XP installed, and the extended partition D drive is Fat16 with DOS installed. Now mainly want to ask for correction on the way to boot the DOS on drive D

First kind:
title DOS
map --in-situ (hd0,4)+1 (hd0)
...


I have replied on Wuyou.
You can try the following menu.

Windows 一键还原
http://www.yjhy.com
Forum Jump: