中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 04:22
47,811 topics / 349,897 posts / today 0 new / 48,256 members
GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » How to write Grub's Menu.lst, please give guidance!
Printable Version  2,557 / 7
Floor1 e98123 Posted 2008-06-22 18:07
初级用户 Posts 9 Credits 27
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...
Floor2 不点 Posted 2008-06-23 10:21
银牌会员 Posts 1,115 Credits 2,491
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.
Floor3 e98123 Posted 2008-06-23 11:59
初级用户 Posts 9 Credits 27
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 ]
Floor4 ntfsdos Posted 2008-06-23 16:38
初级用户 Posts 38 Credits 78
Does using map --in-situ (hd0,4)+1 (hd0) without the Master Booter allow booting into XP in that partition?
Floor5 Climbing Posted 2008-06-23 16:54
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
It is absolutely impossible to boot XP because disk emulation is ineffective for XP.
Floor6 Jneny Posted 2008-06-24 07:52
高级用户 Posts 318 Credits 686
Can't this work,
chainloader (hd0,4)/ntldr
Floor7 lianjiang2004 Posted 2008-06-24 10:53
金牌会员 Posts 1,884 Credits 3,946
Originally posted by Jneny at 2008-6-24 07:52:
Can't this be done?
chainloader (hd0,4)/ntldr

No.
Floor8 lianjiang2004 Posted 2008-06-24 10:55
金牌会员 Posts 1,884 Credits 3,946
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.

[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023