中国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-15 16:43
47,813 topics / 349,903 posts / today 1 new / 48,257 members
DOS疑难解答 & 问题讨论 (解答室) » [Help] Help~~ can't get back into XP
Printable Version  1,187 / 13
Floor1 newblood Posted 2003-05-06 00:00
初级用户 Posts 13 Credits 141
I used the boot disk made by wengier. After booting,
I used these commands~
SYS A: C:
SRCBOOT C: C:\BOOTSECT.DOS /S
BOOTPART WINXP BOOT:C:
Then after booting it went straight into DOS~
I can't get back into~~XP
Floor2 如是大师 Posted 2003-05-06 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
Oh, are you trying to set up XP and DOS dual boot?
Floor3 newblood Posted 2003-05-06 00:00
初级用户 Posts 13 Credits 141
Yeah, that's right.
Floor4 如是大师 Posted 2003-05-06 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
Could you explain the exact steps and your system situation?
Floor5 newblood Posted 2003-05-06 00:00
初级用户 Posts 13 Credits 141
My system only has WinXP... no other system has ever been installed.
I followed wengier's simplest method for making a dual-boot system~
but in the end I can't get into XP.
Floor6 newblood Posted 2003-05-06 00:00
初级用户 Posts 13 Credits 141
How to boot pure DOS under WinNT/2K/XP
Now some net friends have started installing WinNT/2K and even XP. But after they boot these operating systems, they find that many DOS programs can no longer run, and pure DOS can no longer be booted either. What's going on here?

As everyone knows, WinNT/2K/XP has something called the "command prompt." On the surface it looks similar to the MS-DOS box in Win3.x/9x. However, they are completely different. Win3.x/9x are large protected-mode interface enhancement programs running under MS-DOS, while WinNT/2K/XP are independent operating systems based on OS/2 and NT components, so there is an essential difference between them. By the same token, the MS-DOS provided in Win3.x/9x is real DOS, while the "command prompt" in WinNT/2K/XP is merely a "DOS virtual machine." Since it is virtual, the effect is naturally not as good as the real thing. Therefore, when this "virtual DOS" cannot run DOS programs properly, the only way is to use real DOS (including the MS-DOS 7.x that comes with Win9x) to run them.

Since WinNT/2K/XP do not come with DOS, if you want to boot from the hard disk into pure DOS after installing these operating systems, you can only use dual boot. Many users know that when WinNT/2K/XP start up, a menu often appears from which you can choose which operating system to boot. However, sometimes there is no "DOS" option in this menu, and sometimes this boot menu does not appear at all when booting (if you choose to keep the original operating system when installing WinNT/2K/XP, then the boot menu of WinNT/2K/XP will include the original operating system as an option). So what should be done? Below is an introduction to the method of installing DOS after WinNT/2K/XP have already been installed.

Booting DOS requires the DOS system boot sector and startup files. And the key to installing DOS after WinNT/2K/XP have been installed is to create them. Some of you may ask: after WinNT/2K/XP are installed, hasn't the content in the master boot sector already been replaced with non-DOS code? Why can DOS still be started through the boot menu mentioned above? This is because if DOS (including the MS-DOS 7.x that comes with Win9x) was once installed on the system, WinNT/2K/XP will automatically create a BOOTSECT.DOS file in the primary boot partition (usually drive C), and this file preserves the DOS boot information. After choosing to boot DOS in the boot menu, WinNT/2K/XP use this file to make DOS start. Therefore, if the BOOTSECT.DOS file already exists in C:\( (that is, the primary boot partition), there is no need to create it manually. You can directly copy DOS files such as IO.SYS, MSDOS.SYS, and COMMAND.COM (for example from MS-DOS 7.10) to C:\ (it is best not to transfer the system with the SYS command; see the next paragraph for details), and then modify the BOOT.INI file as described below.

As for DOS system startup files, everyone knows that the SYS command that comes with DOS can be used to transfer them. However, if you do this directly, then only DOS will boot, and the boot information of WinNT/2K/XP will be overwritten, making them unable to boot. In order to make both DOS and WinNT/2K/XP boot, there are several methods. You can use a very practical tool called BOOTPART, which can be found in this site's "system tools." Its functions are very powerful; for example, it can write information for a specified system into the boot sector, including DOS6, DOS7 (Win9x), and WinNT (/2K/XP). For example, if you want to write the boot information of MS-DOS 7.10 (Win98) into drive C, you can use the command BOOTPART WIN98 BOOT:C:. Therefore, the specific method is: first use the SYS command (such as SYS C to transfer the DOS system files to drive C, then save the information in the primary boot sector at that time (that is, the DOS boot information) into the file C:\BOOTSECT.DOS. This can easily be done with a small tool called SRC Tools in this site's "disk tools." SRCBOOT, SRCMBR, and SRCFAT are commands for saving, backing up, and comparing the BOOT, MBR, and FAT respectively. The specific usage of the SRCTools collection can be seen in a special article under the "DOS articles" section. For example, SRCBOOT C: C:\BOOTSECT.DOS /S can save the boot sector of drive C into the file C:\BOOTSECT.DOS. At this point the BOOTSECT.DOS file has been successfully created. Next is restoring the boot information of WinNT/2K/XP, which can be done with the BOOTPART tool mentioned above, such as BOOTPART WINNT BOOT:C:. After that, just perform the BOOT.INI modification described below.

Another method is to first save the boot information of WinNT/2K/XP into a file, then create the DOS system startup files and boot information separately, then use the SRC Tools mentioned above to save the DOS boot information into the file C:\BOOTSECT.DOS, and finally restore the WinNT/2K/XP boot information saved in the file back into the boot sector. The specific process for creating the DOS system startup files and boot information can be seen in the method above, while saving and restoring the WinNT/2K/XP boot sector can both be done with SRC Tools commands. For example, you can execute SRCBOOT C: C:\NTBOOT.DAT /S and SRCBOOT C: C:\NTBOOT.DAT /R respectively to complete it (/S means save, /R means restore, and NTBOOT.DAT is only a temporary file used when saving and restoring the WinNT/2K/XP boot information, and can be deleted after completion), and then carry out the operation below.

Finally, you can start making the dual-boot menu. The boot menu of WinNT/2K/XP is stored in the BOOT.INI file under the root folder of the primary boot partition (usually C:\BOOT.INI). The method is to first remove the read-only, hidden, and system attributes of the C:\BOOT.INI file (for example with the ATTRIB command that comes with DOS, or an enhanced ATTRIB command, etc.), then open the C:\BOOT.INI file with a text editor (such as the EDIT that comes with DOS), and under the entry in the file add a line: C:\="MS-DOS". After finishing, save the file and restore its various attributes, then restart the system,

it should: show a boot menu, with an "MS-DOS" item in it.
Result.......... mine is C:\
Floor7 如是大师 Posted 2003-05-06 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
Did you edit the boot、ini file?
Floor8 newblood Posted 2003-05-06 00:00
初级用户 Posts 13 Credits 141
Yeah
I edited it.
Floor9 如是大师 Posted 2003-05-06 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
Then try using bootcfg in XP's Recovery Console to repair it.


Floor10 newblood Posted 2003-05-06 00:00
初级用户 Posts 13 Credits 141
Use bootcfg in XP's Recovery Console to repair it...... how?
.......Sorry to trouble you~
Floor11 如是大师 Posted 2003-05-06 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
If the Recovery Console is installed, choose that option to enter it and just execute it directly. If not, please run the XP installation disc, and when you get to the corresponding screen, press the R key, and that will start the Recovery Console. It's in Chinese, very simple... If anything is unclear, just type bootcfg /? to view the help for that command...
Floor12 newblood Posted 2003-05-06 00:00
初级用户 Posts 13 Credits 141
o
I'll give it a try then

Floor13 如是大师 Posted 2003-05-06 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
There's another question too; I mentioned it in the beginner section, go take a look....
Floor14 ko20010214 Posted 2003-05-27 00:00
版主 Posts 1,628 Credits 7,296
Why does nobody use that simple and effective method of mine?
It doesn't require you to use the console, and it doesn't require you to use any sector editing software either. You just need to do a "fake install" of winxp, and it takes less than half a minute...
http://www2.zzu.edu.cn/ie/newdos/dispbbs.asp?boardID=12&replyID=119&ID=46&skin=1

This is painful. Before asking questions, can't you use the search function first???
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023