在win7引导之前先执行dos引导 [英] dos boot before win7 boot

查看:156
本文介绍了在win7引导之前先执行dos引导的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于dos& amp;的问题win7启动过程.

I've got a question for dos & win7 boot process.

是否有可能在win7引导之前不重新引导dos引导并执行一些dos-app? 我的意思是启动过程像win95或win3.1.

Is it possible that dos boot and execute some dos-app before win7 boot without reboot? I mean boot process like win95 or win3.1.

我将解释更多细节.

  1. 执行启动->
  2. 执行一些dos应用程序->
  3. 清理内存->
  4. 将win7卷启动记录加载到内存7c00->
  5. win7引导,无需重新引导

这可能吗?

推荐答案

您所描述的场景基本上是热重启,中断0x19的行为几乎与之类似,不同之处在于它始终加载主引导记录(带有分区)桌子). Win3.1或Win95是作为普通可执行文件从DOS启动的,而不是从它们的启动记录启动的. Win7在启动过程中没有任何DOS阶段.

The scenario you have described is basically a warm reboot, interrupt 0x19 behaves almost like that, with the exception that it always loads the Master Boot Record (with the partition table). Win3.1 or Win95 were started as normal executables from DOS and not from their boot record. Win7 does not have any DOS phase during boot.

但是,我认为有可能,但绝非易事.这些是一些选项:

However, I think it's possible, but won't be easy. These are a few options:

  1. 最简单的解决方案是,如果您可以找到合适的引导管理器软件来执行此操作.看看 GRUB 问题.

如果足够了(您要运行的DOS程序并不严格要求16位DOS环境),我不确定,但是也许您可以调整Win7的boot.ini使其以安全模式启动命令行并从那里启动,然后重新启动.

If it is enough (the DOS program you want to run does not strictly require 16-bit DOS environment), I'm not sure, but maybe you can tweak Win7's boot.ini to boot in safe mode with command line and start it from there and then reboot.

在最坏的情况下,您必须手动编写一个小型DOS程序,该程序将Win7启动扇区读到地址0000:7C00并执行它.为此,您现在必须准确地将Win7启动扇区放在磁盘中的位置.请注意,在支持它的硬件上,Win7将更喜欢EFI引导方法,而不是基于MBR的旧方法.您必须检查Win7安装使用哪种方法.可能还有其他困难,例如如何选择活动分区或DOS分区必须位于磁盘的开头等.

In the worst case you must manually write a small DOS program that reads the Win7 boot sector to the address 0000:7C00 and executes it. For this to work you must now exactly where the Win7 boot sector is located in the disk. Be aware that on hardware that supports it, Win7 will prefer EFI boot method instead of the old MBR-based one. You must check what method your Win7 installation uses. There may be other difficulties like how to select active partition or that the DOS partition must reside in the beginning of the disk, and so on.

这篇关于在win7引导之前先执行dos引导的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆