Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows XP / Setup and Deployment / May 2008

Tip: Looking for answers? Try searching our database.

How can i install and boot to MS-DOS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
olicaca - 19 Mar 2008 23:40 GMT
Hello
I have a Pc,WinXP was setup on the first partition,formated NTFS.I have some
program run in MS-DOS and i have already install MS-DOS at the second
partition,formated FAT32.But i dont know how to config my windows so that
when the PC boot,there 2 choices for me,boot to Win and boot to DOS.Former
time,when i have already bought the PC,they do that for me but i dont know
how they do.Pleasy help me.Thanks so much!
--------
jinajinajinana
Carey Frisch  [MVP] - 19 Mar 2008 23:56 GMT
How to create a multiple-boot system in Windows XP
http://support.microsoft.com/kb/306559/en-us

Install the operating systems in the following order:

1.  MS-DOS
2.  Windows XP

Signature

Carey Frisch
Microsoft MVP
Windows Shell/User

---------------------------------------------------------------

Hello
I have a Pc,WinXP was setup on the first partition,formated NTFS.I have some
program run in MS-DOS and i have already install MS-DOS at the second
partition,formated FAT32.But i dont know how to config my windows so that
when the PC boot,there 2 choices for me,boot to Win and boot to DOS.Former
time,when i have already bought the PC,they do that for me but i dont know
how they do.Pleasy help me.Thanks so much!
--------
jinajinajinana
Olicaca - 26 Mar 2008 02:01 GMT
Hi Carey,i try it before but with that way i get problem.In this
case,my Windows partition lettered H "WINXP(H)".I use partition magic
resize my disk and maybe the master boot have problem.
---------------------------------------------
> How to create a multiple-boot system in Windows XPhttp://support.microsoft.com/kb/306559/en-us
>
[quoted text clipped - 7 lines]
> Microsoft MVP
> Windows Shell/User
John John - 20 Mar 2008 01:43 GMT
After you installed MS-DOS on the second partition were you able to boot
to it?  To do so the second partition (where MS-DOS is installed) would
have to be marked as active, you can check or do that with FDISK.

Which partition are you you booting with now, which operating system
starts when the computer boots?

John

> Hello
> I have a Pc,WinXP was setup on the first partition,formated NTFS.I have some
[quoted text clipped - 5 lines]
> --------
> jinajinajinana
Olicaca - 26 Mar 2008 01:57 GMT
***Sorry every body because the late.I forgot my account and so
diffecult to search my thread again..***
John,after i install MS-DOS,i can boot to it if i set its partition
active.
The operation system i boot now is Windows,sure.The operating system
start when my computer boot up is Windows.I just want add the MS-DOS
into boot choices,if you can help me boot to MS-DOS then please help
me setup NTFSDOS 5.0 sothat i can access ntfs partition from DOS.Thank
John!

------------------------------------------------------------------------------------------------
> After you installed MS-DOS on the second partition were you able to boot
> to it?  To do so the second partition (where MS-DOS is installed) would
[quoted text clipped - 4 lines]
>
> John

> - Hiển thị văn bản được để trong dấu trích dẫn -
John John - 27 Mar 2008 00:37 GMT
Ok, this should be easy to fix.

Boot to your Windows XP installation and from the command prompt run the
Debug command to create a boot sector file for the DOS installation on
the second partition.  You can run these commands at the debug screen,
but an even easier way is to just copy them to a file and have debug run
them automatically.  Copy the stuff *between* the === lines and save it
in a notepad file as READ.SCR, save the file in an easy to find and
navigate to directory, the root folder of the XP installation drive
(C:\) is as good a place as any other:

READ.SCR

============================================
L 100 3 0 1
N C:\BOOTSECT.DOS
R BX
0
R CX
200
W
Q
============================================

Now, start a command prompt session and navigate to the folder where the
READ.SCR file is located and issue the following command:

debug <read.scr

This will create a C:\BOOTSECT.DOS file from the boot sector of the DOS
installation on partition 2.  For this file to work Windows XP must be
installed on the first partition and DOS must be installed on the second
(D:\)  partition of the same disk.  Verify in the root folder (C:\) of
the XP NTFS drive to make sure that the newly created bootsect.dos file
is present, it will be in the root folder along with the hidden system
files ntldr, boot.ini and NTDETECT.COM.

Now edit the boot.ini file and under the [operating systems] section add
an extra line for the DOS installation:

c:\="DOS"

The boot.ini file will now look something like this:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP
Professional" /fastdetect
c:\="DOS"

You should now be able to boot the DOS installation on the second
partition.  If it doesn't work post again and we can try another
slightly different method of arriving at the same goal.

John

> ***Sorry every body because the late.I forgot my account and so
> diffecult to search my thread again..***
[quoted text clipped - 18 lines]
>
>>- Hiển thị văn bản được để trong dấu trích dẫn -
Olicaca - 27 Mar 2008 18:35 GMT
John,it is error with me coz it is partition H: not partition D: i
install DOS.Really i install MS-DOS on the second partition of the
hardisk(follow partition magic) but when i settup windows on the first
partition,the DOS installed partition then letter H( i format  C then
new install from the begin).So what do i do now?Please help me fix
this soon ya.Thanks!Wait ur reply now.
The picture:
[IMG]http://i287.photobucket.com/albums/ll137/olicaca/debug.jpg[/IMG]
--------------------------------------------------------------------------------------------------
Ok, this should be easy to fix.

Boot to your Windows XP installation and from the command prompt run
the
Debug command to create a boot sector file for the DOS installation
on
the second partition.  You can run these commands at the debug
screen,
but an even easier way is to just copy them to a file and have debug
run
them automatically.  Copy the stuff *between* the === lines and save
it
in a notepad file as READ.SCR, save the file in an easy to find and
navigate to directory, the root folder of the XP installation drive
(C:\) is as good a place as any other:

READ.SCR

============================================
L 100 3 0 1
N C:\BOOTSECT.DOS
R BX
0
R CX
200
W
Q
============================================

Now, start a command prompt session and navigate to the folder where
the
READ.SCR file is located and issue the following command:

debug <read.scr

This will create a C:\BOOTSECT.DOS file from the boot sector of the
DOS
installation on partition 2.  For this file to work Windows XP must
be
installed on the first partition and DOS must be installed on the
second
(D:\)  partition of the same disk.  Verify in the root folder (C:\)
of
the XP NTFS drive to make sure that the newly created bootsect.dos
file
is present, it will be in the root folder along with the hidden
system
files ntldr, boot.ini and NTDETECT.COM.

Now edit the boot.ini file and under the [operating systems] section
add
an extra line for the DOS installation:

c:\="DOS"

The boot.ini file will now look something like this:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP
Professional" /fastdetect
c:\="DOS"

You should now be able to boot the DOS installation on the second
partition.  If it doesn't work post again and we can try another
slightly different method of arriving at the same goal.

John
John John - 27 Mar 2008 20:19 GMT
The link to your error message is invalid.

Try this one for the Read.scr file:

=========================================
L 100 7 0 1
N C:\BOOTSECT.DOS
R BX
0
R CX
200
W
Q
=========================================

John

> John,it is error with me coz it is partition H: not partition D: i
> install DOS.Really i install MS-DOS on the second partition of the
[quoted text clipped - 75 lines]
>
>  John
Olicaca - 28 Mar 2008 03:36 GMT
The link to your error message is invalid.

Try this one for the Read.scr file:

=========================================
L 100 7 0 1
N C:\BOOTSECT.DOS
R BX
0
R CX
200
W
Q
=========================================

John
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Hmm,i still able to acess that link,maybe ur browser block popup hight
level.
I followed, but it say these:
---------------------------
16 bit MS-DOS Subsystem
---------------------------
C:\WINDOWS\system32\cmd.exe - debug
An application has attempted to directly access the hard disk, which
cannot be supported. This may cause the application to function
incorrectly. Choose 'Close' to terminate the application.
---------------------------
Close  Ignore
---------------------------

I make ur file and put it in C: drive,then go to cmd type these:
----------------------------------
cd\
debug <read.scr
----------------------------------

Did i do rightly bro?I do that and it display a dialog that content.I
try use just "debug read.scr" but the the cursor just go down and
blink,nothing happen.Could u tell me what i was wrong?(Sorry,i try to
express clearly but my English so bad)
John John - 28 Mar 2008 13:49 GMT
> I followed, but it say these:
> ---------------------------
[quoted text clipped - 7 lines]
> Close  Ignore
> ---------------------------

Ok, lets make the bootsect.dos file with the MS-DOS installation and see
if we can use it on the NTFS active partition.

Toggle the active partition and boot to your MS-DOS installation and run
these debug commands to create the Bootsect.dos file:

L 100 2 0 1
N C:\BOOTSECT.DOS
R BX
0
R CX
200
W
Q

The file should be created in the C:\ root of the DOS installation.  Use
the debug command to verify that the file you just created is for the
MS-DOS installation:

At the DOS prompt enter the following debug command:

debug c:\bootsect.dos

Then at the debug prompt enter:

d 100 L 100

this will allow you to see the beginning of the bootsect.dos file.  The
first bytes should read MSDOS...

Then at the debug prompt enter:

d 200 L 100

you will now see the second half of the file, the last bytes should read
IO SYSMSDOS SYS.

Now, toggle the active partition again and boot to the Windows XP
installation.  Copy the bootsect.dos file that you created to the root
of the XP inatallation alongside the ntldr, NTDETECT.COM & boot.ini files.

Edit the Boot.ini file and under the [operating systems] section add a
line for the MS-DOS operating system:

c:\bootsect.dos="MS-DOS"

Now, with the Windows XP partition set as active try to boot to the DOS
installation.

If it doesn't work don't despair, we can transfer the XP boot files to
the DOS partiton and change the boot sector to boot the operating
systems from that partition instead of the XP partition.

John
Olicaca - 09 Apr 2008 16:46 GMT
Brother,are you still there?
Sorry that these time i didn't online because the IE have
problem,cannot logon(seemed there's a risk in my PC and it shutdown my
IE usually,so save..)
Come back with my MS-DOS problem,i followed ur way,boot to MS-DOS
partition and use that command but cannot run.It say bad command
line.So,can i use MS-DOS beside Windows in these case?Is it able or
not able.....?
Hope you come back and help me soon,thank alot!

---------------------------------------------------------------------------------------------
> > I followed, but it say these:
> > ---------------------------
[quoted text clipped - 62 lines]
>
> John
John John (MVP) - 09 Apr 2008 19:34 GMT
While booted to DOS did you run this from the Debug Prompt?

At the command prompt you have to start Debug first then issue the
commands at the debug prompt.

If this doesn't work our option list is becoming shorter, a bootsect.dos
file must be generated for ntldr to use to boot the DOS installation.
But there are still other options available...

John

> Brother,are you still there?
> Sorry that these time i didn't online because the IE have
[quoted text clipped - 74 lines]
>>
>>John
Olicaca - 10 Apr 2008 10:54 GMT
Really i dont understand deeply ur saying.I just mark DOS partition
active,then boot to it,then run ur command (debug <read.scr) but
seemed the command "debug" is not being in MS-DOS then it say bad
command line.
If i mark DOS partition active then setup windows after then i will be
able to do this thing(choose boot to win or to dos) but in that,the
windows partition lettered F:(the end partition) and i don't want this
thing.
Ok John,brother,can u teach me understand the structure of bootsec.dos
file ok? I feel so curious about bootsec.dos ja.Thank John,i hope will
complete my problem soon.

> While booted to DOS did you run this from the Debug Prompt?
>
[quoted text clipped - 87 lines]
>
> - Show quoted text -
John John (MVP) - 10 Apr 2008 18:28 GMT
Debug is an ancient command that is included in almost all versions of
MS-DOS, is it part of your DOS installation?

If you can't create the Bootsect.dos file you will have to use a third
party boot manager.

Another way of creating the multi-boot is to start a Windows XP
installation from the up and booted MS-DOS installation and then
aborting the installation before the first reboot.  When the computer
reboots after the aborted setup select to boot to the MS-DOS
installation from the boot menu and then clean up the aborted
installation files and add a line to the newly created boot.ini file on
the C: drive to point it to the XP installation on the other drive.  To
launch the XP setup from DOS insert the CD in the drive and navigate to
the i386 directory and launch the Winnt command.

John

> Really i dont understand deeply ur saying.I just mark DOS partition
> active,then boot to it,then run ur command (debug <read.scr) but
[quoted text clipped - 99 lines]
>>
>>- Show quoted text -
Olicaca - 11 Apr 2008 05:09 GMT
> Debug is an ancient command that is included in almost all versions of
> MS-DOS, is it part of your DOS installation?
[quoted text clipped - 119 lines]
>
> - Show quoted text -

Ok,thank you!
John John (MVP) - 11 Apr 2008 15:03 GMT
> Ok,thank you!

You're welcome.

There is another way that might/should also work.

1-  Create a boot floppy for the XP installation:

Boot to the Windows XP installation and format a floppy diskette.  The
diskette *must* be formatted with Widnows XP, if it is formatted with
Windows 9x/MS-DOS the boot diskette will fail to boot Windows XP.

After the diskette is formatted copy the file ntldr, NTDETECT.COM &
boot.ini from the root of the XP drive onto the diskette.

2-  Try to boot to Windows XP with the diskette.  Shutdown the computer,
go in the BIOS and change the boot order so that the diskette is set as
the first boot device.  Insert the diskette in the computer and boot to
Windows XP with it.

3-  If you can successfully boot to Windows XP with the diskette, shut
down the computer and change the Active partition to the MS-DOS partition.

4-  Boot with to Windows XP with the floppy boot diskette.  Even if the
MS-DOS partition is the Active partition, (which it must for this
method) you will still be able to boot XP with the floppy diskette.
After the XP installation is booted you can use the Disk Management tool
to verify the active status of the partitions, the MS-DOS must be the
active partition.

5-  Install the Recovery Console.  While booted to the XP installation
insert your Windows XP cd in the drive and in the Start Menu-> Run box
issue the following command:

d:\i386\winnt32.exe /cmdcons

where d is the drive letter for the CD-ROM drive.

This will launch the install routine for the Recovery Console.  When the
installation sees the MS-DOS FAT partition as the Active partition it
will (should) create the necessary bootsect.dos file for the DOS
installation and it should copy the necessary system boot files to the
partition, create a proper boot.ini file for the operating systems and
write the proper boot sector to the partition to allow it to boot the XP
installation.

John
Olicaca - 11 Apr 2008 19:11 GMT
> > Ok,thank you!
>
[quoted text clipped - 43 lines]
>
> John

Hmm,sorry John because i not have enought the time to go far to buy a
floppy disk,so i will use my USB,my mainboard allow me boot from USB.I
will tell you tomorrow.Now i go to bed and take a sleep.So sleep and
felt Thank you.God bless you!
Olicaca - 12 Apr 2008 16:47 GMT
> > > Ok,thank you!
>
[quoted text clipped - 50 lines]
>
> - Show quoted text -

Sorry brother,today so many work then i till haven't try your
instructions yet.Maybe when i complete i will tell you.Hope you still
care.Thanks.
John John (MVP) - 12 Apr 2008 16:58 GMT
>>>>Ok,thank you!
>>
[quoted text clipped - 54 lines]
> instructions yet.Maybe when i complete i will tell you.Hope you still
> care.Thanks.

Keep me posted, I'm interested to know how you make out with this.

John
Olicaca - 22 Apr 2008 15:11 GMT
> >>>>Ok,thank you!
>
[quoted text clipped - 58 lines]
>
> John

Thanks John.Everything ok now.Thank alot for your support.God bless
you!
John John (MVP) - 03 May 2008 23:22 GMT
> Thanks John.Everything ok now.Thank alot for your support.God bless
> you!

You're welcome Olicaca, thanks for letting me know the outcome of your
efforts!

John
Ed Covney - 20 Mar 2008 19:35 GMT
> 2 choices for me,boot to Win and boot to DOS.

Just curious as to why you need to boot to DOS and/or
a FAT32 partition. What do you need there that couldn't
be achieved in a DOS shell? (Which I personally find way
better than MS- or IBM- DOS ever was.)

Also, I think IBM DOS v7 supports NTFS partitions.

Ed
Olicaca - 26 Mar 2008 02:04 GMT
I need use DOS for delete some files when i cant access it from
Windows.I dont really understand your recommen aswell,sorry my English
not well.Anyway thanks for the care.
------------------------------------------------------------
On 21 Tháng Ba, 01:35, "Ed Covney" <ed(dot)covney(at)gmail(dot)com>
wrote:
> > 2 choices for me,boot to Win and boot to DOS.
>
[quoted text clipped - 6 lines]
>
> Ed
Ed Covney - 26 Mar 2008 06:32 GMT
> I need use DOS for delete some files when i cant access it from
> Windows

You do not need DOS, you need to boot to anything but
the windows drive you are targetting.

If you can afford a 2nd hard drive, install Windows on it
as well. Now you'll have 2 copies of windows on two
drives on one system.  (Hint un-cable drive #1, while
installing windows on drive #2)

Change the BIOS to boot from drive #1 or drive #2.
While booted to drive #2, you can make any changes
you want to any file or directory or drive #1 (and visa-
versa).

There are many other benefits to being able to boot to
either drive 1 or 2.

By the way, your English is fine

Ed
Olicaca - 27 Mar 2008 02:38 GMT
On 26 Tháng Ba, 12:32, "Ed Covney" <ed(dot)covney(at)gmail(dot)com>
wrote:

You do not need DOS, you need to boot to anything but
the windows drive you are targetting.

If you can afford a 2nd hard drive, install Windows on it
as well. Now you'll have 2 copies of windows on two
drives on one system.  (Hint un-cable drive #1, while
installing windows on drive #2)

> Ed

Ermm,you'r right,but i have many things that can't waste the space of
disk in that way,my hardisk just 75 GB and do not wan't install one
windows more.And really i need DOS for many things rather then the
access files.Maybe i'm a man of the ancient.Sill not yet helpful...:)
Olicaca - 27 Mar 2008 04:42 GMT
On 26 Tháng Ba, 12:32, "Ed Covney" <ed(dot)covney(at)gmail(dot)com>
wrote:

You do not need DOS, you need to boot to anything but
the windows drive you are targetting.

If you can afford a 2nd hard drive, install Windows on it
as well. Now you'll have 2 copies of windows on two
drives on one system.  (Hint un-cable drive #1, while
installing windows on drive #2)

> Ed

Ermm,you'r right,but i have many things that can't waste the space of
disk in that way,my hardisk just 75 GB and do not wan't install one
windows more.And really i need DOS for many things rather then the
access files.Maybe i'm a man of the ancient.Still not yet helpful...:)
smlunatick - 26 Mar 2008 15:05 GMT
> I need use DOS for delete some files when i cant access it from
> Windows.I dont really understand your recommen aswell,sorry my English
[quoted text clipped - 15 lines]
>
> - Show quoted text -

Please not that in Xp, it can only create 32GB FAT32 partitions and
each file must not be greater than 4GB.  Any hard driver bigger that
32Gb will more than likely be set to NTFS, which can not be accessed
directly with most versions of DOS.

All is not lost, there exists several "boot" CDs which will let you
access all XP NTFS partitions so that you can manage the XP.
Olicaca - 27 Mar 2008 02:48 GMT
I have a hiren't CD but it scratched all,cannot use and very tiresome
that eachtime i need DOS will have to insert CD,not including that i
live in the country, the way to the software shops far alittle .Anyway
i want DOS on my harddisk aswell,must be have DOS,not discussion any
reason.. :-C
----------------------------------------------------------------------

All is not lost, there exists several "boot" CDs which will let you
access all XP NTFS partitions so that you can manage the XP.- Ẩn nội
dung trích dẫn -
smlunatick - 27 Mar 2008 21:36 GMT
> I have a hiren't CD but it scratched all,cannot use and very tiresome
> that eachtime i need DOS will have to insert CD,not including that i
[quoted text clipped - 10 lines]
>
> - Show quoted text -

XP does not have a full dos.

If you have an Internet connection and a CD/DVD burner, you can locate
a XP emergency boot CD image and create a CD.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.