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 18:28
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Help, problem with dual-boot using Grub4DOS View 3,167 Replies 12
Original Poster Posted 2009-11-30 22:24 ·  中国 北京 歌华有线
新手上路
Credits 16
Posts 7
Joined 2009-11-30 01:09
16-year member
UID 155631
Gender Male
Status Offline
There are a total of two partitions, both primary partitions.
The C drive is in Fat32 format and set as the active partition.
The D drive is in Fat format and set as the inactive partition.
The C drive has Winxp installed, and XP boots Grub4DOS.
Copy the DOS system files (IO.sys, MSDOS.sys, Command.com) to the root directory of the D drive.
Modify menu.lst as follows:

title DOS6.22
root (hd0,1)
chainloader (hd0,1)/IO.SYS


title DOSDOS
find --set-root (hd0,1)/io.sys
chainloader (hd0,1)/io.sys

title FINDDOSACT
find --set-root (hd0,1)/io.sys
makeactive
chainloader (hd0,1)/io.sys

title HD0
rootnoverify (hd0,0)
makeactive
chainloader +1


title HD1HD1
rootnoverify (hd0,1)
makeactive
chainloader (hd0,1)/io.sys

None of them can succeed, and the error displayed is
Error 13: Invalid or unsupported executable format.

Why is this?
What method can I use to achieve dual-boot?

Also, another question, can Grub4DOS boot the Vxworks bootrom? If yes, how to do it?
Thank you everyone!
Floor 2 Posted 2009-12-02 21:56 ·  中国 北京 歌华有线
新手上路
Credits 16
Posts 7
Joined 2009-11-30 01:09
16-year member
UID 155631
Gender Male
Status Offline
It seems that the question I raised is too naive.
DOS 6.22 can only be installed in the first primary partition of the hard disk, heh heh
Floor 3 Posted 2009-12-03 17:24 ·  德国 马克斯-普朗克等离子物理研究所
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
MS-DOS 6.22 does not support booting directly with the chainloader io.sys method; it must boot with the chainloader boot sector to start. Because both the io.sys and msdos.sys files of msdos 6.22 are core files.

[ Last edited by fujianabc on 2009-12-3 at 17:26 ]
Floor 4 Posted 2009-12-04 23:20 ·  中国 北京 歌华有线
新手上路
Credits 16
Posts 7
Joined 2009-11-30 01:09
16-year member
UID 155631
Gender Male
Status Offline
Oh, I see. Thanks. I've successfully booted using the chainloader (0,0) + 1 method. Later, I tried to use grub4dos to boot Vxworks's bootrom.sys and got Error 13: Invalid or unsupported executable format. Is it that grub4dos doesn't support this format?
Floor 5 Posted 2009-12-05 19:50 ·  德国 马克斯-普朗克等离子物理研究所
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
Originally posted by realstephen at 2009-12-4 11:20 PM:
I see.
Thanks. I have successfully booted using the method of chainloader(0,0) + 1.

Later I tried to use grub4dos to boot Vxworks's bootrom.sys, and got
Error 13: Invalid or unsupported executa ...

What is bootrom.sys?

Why did you directly use chainloader to load it?
Floor 6 Posted 2009-12-05 23:14 ·  中国 北京 歌华有线
新手上路
Credits 16
Posts 7
Joined 2009-11-30 01:09
16-year member
UID 155631
Gender Male
Status Offline
bootrom.sys is the boot loader of the VxWorks system.
I used to use DOS 6.22 to boot it, and it boots the real IMG of VxWorks.
Now I want to try to directly boot it with Grub4DOS, so that I can get rid of DOS 6.22.
Floor 7 Posted 2009-12-05 23:18 ·  中国 北京 歌华有线
新手上路
Credits 16
Posts 7
Joined 2009-11-30 01:09
16-year member
UID 155631
Gender Male
Status Offline
Should we use
kernel (hd0,0)/boot/grub/memdisk.gz
initrd (hd0,0)/boot/grub/bootrom.sys
in this way?
Floor 8 Posted 2009-12-06 18:29 ·  德国 马克斯-普朗克等离子物理研究所
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
Originally posted by realstephen at 2009-12-5 11:14 PM:
bootrom.sys is the boot loader of the Vxworks system.
I used to use DOS 6.22 to boot it, and it boots the real IMG of Vxworks.
Now I want to try to use Grub4DOS to boot it directly, so that I can get rid of DOS 6.22.

Grub is not an operating system. Grub only supports directly loading two types of formats:
1. The chainloader command can directly load bootsect-type files as well as ntldr and io.sys
2. The kernel command can directly load linux kernel-type files

Your bootrom.sys obviously does not belong to one of the above two types, so Grub cannot be directly loaded.
How did you load bootrom.sys under DOS?
Floor 9 Posted 2009-12-06 22:53 ·  中国 北京 歌华有线
新手上路
Credits 16
Posts 7
Joined 2009-11-30 01:09
16-year member
UID 155631
Gender Male
Status Offline
Vxworks provides a program Vxload.com for calling DOS 6.22. After DOS 6.22 is started, it boots bootrom.sys through Vxload.com. At this time, DOS hands over control to Vxworks' bootrom. Then bootrom.sys initializes basic hardware information (including the IO system, network, etc.), loads the real operating system image Vxworks into memory, and hands over control to Vxworks. In this way, the startup is completed.

Of course, Vxworks also has other startup modes. For example, use vxsys to write the boot information of Vxworks to the boot sector of the hard disk, and then the boot information directly loads bootrom.sys after power-on.
Floor 10 Posted 2009-12-07 02:33 ·  德国 马克斯-普朗克等离子物理研究所
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
Originally posted by realstephen at 2009-12-6 10:53 PM:
Of course, Vxworks also has other boot modes, such as using vxsys to write Vxworks boot information to the boot sector of the hard drive, and then the boot information directly loads bootrom.sys when powered on


Then you follow this method, use vxsys to write Vxworks boot information to the boot sector of the hard drive, and then load the boot sector with grub chainloader
Floor 11 Posted 2009-12-18 10:36 ·  中国 广东 广州 番禺区 电信
初级用户
Credits 88
Posts 42
Joined 2006-05-05 16:26
20-year member
UID 54979
Gender Male
Status Offline
Can DOS and PE coexist in dual-boot????
If it is possible, what tools are used and how to make it!!!????
Please help, ask for advice, thank you!!!!!????
Floor 12 Posted 2009-12-19 20:39 ·  中国 北京 歌华有线
新手上路
Credits 16
Posts 7
Joined 2009-11-30 01:09
16-year member
UID 155631
Gender Male
Status Offline
Floor 13 Posted 2010-01-11 11:11 ·  中国 浙江 杭州 网易云BGP数据中心
新手上路
Credits 12
Posts 6
Joined 2010-01-09 17:12
16-year member
UID 158316
Gender Male
Status Offline
How is your DOS booted? Still like this?

chainloader(0,0) + 1

What does (0,0) in the parentheses mean
Forum Jump: