『第 2 楼』:
使用 LLM 解释/回答一下
是的,正如我在那篇文章中提到,关键就是C:\要有BOOTSECT.DOS文件。我一段时间以前已将那篇文章作了大修改,不知您看到新版了没有。以下是原文摘录:
DOS的启动需要DOS系统的引导扇区和启动文件。而安装了WinNT/2K/XP后再安装DOS的关键就是要建立它们。大家也许会问,系统安装了WinNT/2K/XP后主引导扇区中的内容不是已被替换成为非DOS的了吗,为什么还能通过上面所提到的启动菜单启动到DOS呢?这是因为,如果系统中曾经安装着DOS(包括Win9x自带的MS-DOS 7.x),WinNT/2K/XP在安装时会自动在主引导分区(通常是C驱动器)中建立BOOTSECT.DOS文件,而此文件中保留着DOS的引导信息,在启动菜单中选择启动DOS后,WinNT/2K/XP就利用此文件使DOS能够启动。因此,如果C:\(即主引导分区)中已存在BOOTSECT.DOS文件,就不用手工建立此文件了。可直接将DOS(如MS-DOS 7.10)的IO.SYS、MSDOS.SYS和COMMAND.COM文件复制到C:\上(最好不要用SYS命令传输系统,详情可看下段的介绍),然后按照下面的介绍修改BOOT.INI文件就可以了。
对于DOS系统启动文件,大家知道可以用DOS自带的SYS命令传输。但是,若直接这样做的话,只有DOS可以启动了,WinNT/2K/XP的引导信息会被覆盖而导致无法启动。为了使DOS和WinNT/2K/XP均能启动,有几种办法。可以使用一个叫作BOOTPART的十分实用的工具,可在本站的“系统工具”中找到。它的功能很强大,比如可以向引导扇区中写入指定的系统的信息,包括DOS6、DOS7(Win9x)、WinNT(/2K/XP)的。例如想将MS-DOS 7.10(Win98)的引导信息写入C盘,就可用BOOTPART WIN98 BOOT:C:,命令来完成。因此,具体的方法是,先用SYS命令(如SYS C:)将DOS系统文件传输入C盘,然后将此时的主引导扇区中的信息(即DOS引导信息)中的内容保存到C:\BOOTSECT.DOS文件中,可用本站“磁盘工具”中的一个叫SRC Tools的小工具轻易实现。其中的SRCBOOT、SRCMBR和SRCFAT分别是对BOOT、MBR和FAT进入保存、备份及比较操作的命令,SRCTools工具集的具体使用方法可在“DOS文章”栏目中的专文中看到。例如SRCBOOT C: C:\BOOTSECT.DOS /S就可将C盘的引导扇区保存到C:\BOOTSECT.DOS文件中。此时BOOTSECT.DOS文件已顺利建立,接下来就是恢复WinNT/2K/XP的引导信息了,可用上面那个BOOTPART工具完成,如BOOTPART WINNT BOOT:C:。然后再进行下面修改BOOT.INI文件的操作就可以了。
另一种办法是,先将WinNT/2K/XP的引导信息保存下来到文件中,再分别将DOS的系统启动文件和引导信息建立,然后用上面所提到的SRC Tools将DOS的引导信息保存到C:\BOOTSECT.DOS文件中,最后将保存于文件中的WinNT/2K/XP的引导信息还原到启动扇区中。建立DOS的系统启动文件和引导信息的具体过程可见上面的方法,而保存和还原WinNT/2K/XP的启动扇区则均可以用SRC Tools命令,例如可分别执行SRCBOOT C: C:\NTBOOT.DAT /S和SRCBOOT C: C:\NTBOOT.DAT /R命令来完成(/S参数表示保存,/R参数表示恢复,而NTBOOT.DAT只是保存和还原WinNT/2K/XP的引导信息时所用的临时文件,完成后可删除),再进行下面的操作即可。
最后,就可以开始做双重启动菜单了。WinNT/2K/XP的启动菜单保存于主引导分区的根文件夹下的BOOT.INI文件中(通常是C:\BOOT.INI),操作方法是首先去掉C:\BOOT.INI文件的只读、隐藏和系统属性(如用DOS自带的ATTRIB命令,也可用增强的ATTRIB命令等等),再用文本编辑器(如DOS自带的EDIT)打开C:\BOOT.INI文件,在其文件中的项下加入一行:C:\="MS-DOS"。完成后保存文件并恢复文件的各种属性,然后重新启动系统,就会出现一个启动菜单,其中有"MS-DOS"这一项了。选此项后即可进入纯DOS方式。此时,WinNT/2K/XP与DOS的双启动就制作成功了,以后就可以选择相应的启动选项以启动相应的系统了。
Yes, as I mentioned in that article, the key is to have the BOOTSECT.DOS file in C:\. I made a major revision to that article some time ago. I wonder if you've seen the new version. Here's an excerpt from the original text:
The boot of DOS requires the boot sector and boot files of the DOS system. The key to installing DOS after installing WinNT/2K/XP is to establish them. Everyone may ask, after the system installs WinNT/2K/XP, isn't the content in the master boot sector replaced with non-DOS? Why can it still boot to DOS through the startup menu mentioned above? This is because if DOS (including MS-DOS 7.x built into Win9x) was once installed on the system, WinNT/2K/XP will automatically create the BOOTSECT.DOS file in the primary boot partition (usually drive C) during installation, and this file retains the boot information of DOS. When you select to boot DOS in the startup menu, WinNT/2K/XP uses this file to enable DOS to boot. Therefore, if the BOOTSECT.DOS file already exists in C:\ (that is, the primary boot partition), you don't need to manually create this file. You can directly copy the IO.SYS, MSDOS.SYS, and COMMAND.COM files of DOS (such as MS-DOS 7.10) to C:\ (it's best not to use the SYS command to transfer the system, for details, see the introduction in the next paragraph), and then modify the BOOT.INI file as described below.
For the DOS system boot files, you know you can use the SYS command自带 by DOS to transfer. However, if you do it directly, only DOS can boot, and the boot information of WinNT/2K/XP will be overwritten, resulting in inability to boot. To enable both DOS and WinNT/2K/XP to boot, there are several methods. You can use a very practical tool called BOOTPART, which can be found in the "System Tools" on this site. Its functions are powerful, such as writing the boot information of the specified system into the boot sector, including DOS6, DOS7 (Win9x), WinNT (/2K/XP). For example, to write the boot information of MS-DOS 7.10 (Win98) to drive C, you can use the command BOOTPART WIN98 BOOT:C:. Therefore, the specific method is to first use the SYS command (such as SYS C:) to transfer the DOS system files to drive C, then save the content in the master boot sector at this time (that is, the DOS boot information) to the C:\BOOTSECT.DOS file, which can be easily achieved with a small tool called SRC Tools in the "Disk Tools" on this site. Among them, SRCBOOT, SRCMBR, and SRCFAT are commands for saving, backing up, and comparing BOOT, MBR, and FAT respectively. The specific usage of the SRCTools toolset can be seen in the special article in the "DOS Articles" column. For example, SRCBOOT C: C:\BOOTSECT.DOS /S can save the boot sector of drive C to the C:\BOOTSECT.DOS file. At this time, the BOOTSECT.DOS file has been successfully established. Next, it's to restore the boot information of WinNT/2K/XP, which can be completed with the above BOOTPART tool, such as BOOTPART WINNT BOOT:C:. Then proceed with the following operation of modifying the BOOT.INI file.
Another method is to first save the boot information of WinNT/2K/XP to a file, then respectively establish the DOS system boot files and boot information, then use the above-mentioned SRC Tools to save the DOS boot information to the C:\BOOTSECT.DOS file, and finally restore the boot information of WinNT/2K/XP saved in the file to the boot sector. The specific process of establishing the DOS system boot files and boot information can be seen in the above method, and both saving and restoring the boot sector of WinNT/2K/XP can be done with the SRC Tools command. For example, you can respectively execute the commands SRCBOOT C: C:\NTBOOT.DAT /S and SRCBOOT C: C:\NTBOOT.DAT /R (the /S parameter means save, the /R parameter means restore, and NTBOOT.DAT is just a temporary file used for saving and restoring the boot information of WinNT/2K/XP, which can be deleted after completion), and then proceed with the following operations.
Finally, you can start making the dual-boot menu. The boot menu of WinNT/2K/XP is saved in the BOOT.INI file in the root folder of the primary boot partition (usually C:\BOOT.INI). The operation method is to first remove the read-only, hidden, and system attributes of the C:\BOOT.INI file (such as using the ATTRIB command自带 by DOS, or using the enhanced ATTRIB command, etc.), then open the C:\BOOT.INI file with a text editor (such as EDIT自带 by DOS), and add a line under the section in the file: C:\="MS-DOS". After completion, save the file and restore the various attributes of the file, then restart the system, and a boot menu will appear, which has the "MS-DOS" item. Select this item to enter the pure DOS mode. At this time, the dual-boot of WinNT/2K/XP and DOS is successfully made, and then you can select the corresponding boot option to boot the corresponding system.
|