|
realstephen
新手上路

积分 16
发帖 7
注册 2009-11-30
状态 离线
|
『楼 主』:
求助,利用Grub4DOS 双引导的问题
使用 LLM 解释/回答一下
一共两个分区,都是主分区。
C盘为Fat32格式,设为活动分区。
D盘为Fat格式,设为非活动分区。
C盘装的Winxp,用XP引导Grub4DOS.
把DOS的系统文件(IO.sys,MSDOS.sys,Command.com)拷贝到D盘根目录。
修改menu.lst如下:
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
都不能成功,显示错误为
Error 13:Invalid or unsupported executable format.
请问这是为什么。
我能用什么方法实现双启动?
另外还有一个问题,Grub4DOS能引导Vxworks的bootrom吗?如果可以怎么做?
谢谢各位了!
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!
|
|
2009-11-30 22:24 |
|
|
realstephen
新手上路

积分 16
发帖 7
注册 2009-11-30
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
看来我提的这个问题太幼稚。
DOS6.22只能安装在硬盘第一主分区吧。呵呵
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
|
|
2009-12-2 21:56 |
|
|
fujianabc
金牌会员
     
积分 3467
发帖 1616
注册 2004-6-21
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
ms-dos 6.22不支持直接用chainloader io.sys方式启动,必须chainloader启动扇区才能启动
因为msdos 6.22的io.sys与msdos.sys两个文件都是核心文件
Last edited by fujianabc on 2009-12-3 at 17:26 ]
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 ]
|
|
2009-12-3 17:24 |
|
|
realstephen
新手上路

积分 16
发帖 7
注册 2009-11-30
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
原来如此。
谢谢。已经用chainloader(0,0) + 1的方法启动成功。
我后来试着用grub4dos引导Vxworks的bootrom.sys,得到的也是
Error 13:Invalid or unsupported executable format.
请问是grub4dos不支持这种格式吗?
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?
|
|
2009-12-4 23:20 |
|
|
fujianabc
金牌会员
     
积分 3467
发帖 1616
注册 2004-6-21
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Originally posted by realstephen at 2009-12-4 11:20 PM:
原来如此。
谢谢。已经用chainloader(0,0) + 1的方法启动成功。
我后来试着用grub4dos引导Vxworks的bootrom.sys,得到的也是
Error 13:Invalid or unsupported executa ...
bootrom.sys是什么东西?
你为什么直接用chainloader来加载?
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?
|
|
2009-12-5 19:50 |
|
|
realstephen
新手上路

积分 16
发帖 7
注册 2009-11-30
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
bootrom.sys是Vxwroks系统的boot loader。
我以前是用DOS6.22来引导它,由它引导Vxworks的真正IMG。
现在想尝试用Grub4DOS来直接引导它,这样我就可以摆脱DOS6.22了。
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.
|
|
2009-12-5 23:14 |
|
|
realstephen
新手上路

积分 16
发帖 7
注册 2009-11-30
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
是否应该用
kernel (hd0,0)/boot/grub/memdisk.gz
initrd (hd0,0)/boot/grub/bootrom.sys
这种方式?
Should we use
kernel (hd0,0)/boot/grub/memdisk.gz
initrd (hd0,0)/boot/grub/bootrom.sys
in this way?
|
|
2009-12-5 23:18 |
|
|
fujianabc
金牌会员
     
积分 3467
发帖 1616
注册 2004-6-21
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Originally posted by realstephen at 2009-12-5 11:14 PM:
bootrom.sys是Vxwroks系统的boot loader。
我以前是用DOS6.22来引导它,由它引导Vxworks的真正IMG。
现在想尝试用Grub4DOS来直接引导它,这样我就可以摆脱DOS6.22了。
grub又不是操作系统,grub只支持直接加载两类格式:
1、chainloader命令能直接加载bootsect类的文件以及ntldr和io.sys
2、kernel命令能直接加载linux内核类的文件
你的bootrom.sys显然不属于上面两类之一,所以grub不能直接加载。
你dos下是怎样加载bootrom.sys的?
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?
|
|
2009-12-6 18:29 |
|
|
realstephen
新手上路

积分 16
发帖 7
注册 2009-11-30
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
Vxworks提供了一个DOS6.22调用的程序Vxload.com,DOS6.22启动后通过Vxload.com引导bootrom.sys,这个时候DOS就把控制权交给Vxworks的bootrom了,然后bootrom.sys初始化基本的硬件信息(包括IO系统,网络等),将真正的操作系统映像Vxworks加载到内存,并把控制权交给Vxworks。这样就完成了启动。
当然Vxworks也有其他的启动模式,比如利用vxsys将Vxworks的引导信息写到硬盘的引导扇区,然后上电后引导信息直接加载bootrom.sys。
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.
|
|
2009-12-6 22:53 |
|
|
fujianabc
金牌会员
     
积分 3467
发帖 1616
注册 2004-6-21
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by realstephen at 2009-12-6 10:53 PM:
当然Vxworks也有其他的启动模式,比如利用vxsys将Vxworks的引导信息写到硬盘的引导扇区,然后上电后引导信息直接加载bootrom.sys
那你就按照此方法,用vxsys将Vxworks的引导信息写到硬盘的引导扇区,然后用grub chainloader加载引导扇区
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
|
|
2009-12-7 02:33 |
|
|
ZhiChaoC
初级用户
 
积分 88
发帖 42
注册 2006-5-5
状态 离线
|
『第 11 楼』:
能DOS与PE双启动共存吗
使用 LLM 解释/回答一下
能DOS与PE双启动共存吗???
如果可以的话,用什么工具,如何制作!!!???
请帮助,求教,谢谢 !!!????
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!!!!!????
|
|
2009-12-18 10:36 |
|
|
realstephen
新手上路

积分 16
发帖 7
注册 2009-11-30
状态 离线
|
|
2009-12-19 20:39 |
|
|
turkeycq
新手上路

积分 12
发帖 6
注册 2010-1-9
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
你的DOS是怎么引导的?还是这样吗?
chainloader(0,0) + 1
括号里的(0,0)是什么意思
How is your DOS booted? Still like this?
chainloader(0,0) + 1
What does (0,0) in the parentheses mean
|
|
2010-1-11 11:11 |
|