[comp.sys.ibm.pc] Switching between Xenix and DOS

brandon@tdi2.UUCP (Brandon Allbery) (11/30/86)

Quoted from <2255@sdcsvax.UCSD.EDU> ["DOS --> XENIX --> DOS"], by osbook@sdcsvax.UCSD.EDU (osbook)...
+---------------
| To build FDISK.XEN you need to know what responses FDISK expects to change the 
| active partition from #4 to #2. These responses are (check it yourself on your 
| own system):
| 
|      2 <enter>
|      2 <enter>
|      <escape> <escape>
| 
| Note that there are no <return>'s after the <escape>'s.
| Note: When you execute XENIX.BAT and FDISK works automatically, you will hear 
| two beeps.  Don't worry, it's okay.
+---------------

I use this technique to switch from DOS to Concurrent CP/M for a real-time
application we have.  The spurious beeps are caused by the fact that <enter>
is stored as <cr> <lf>, while FDISK expects only <cr>.  Create a file contai-
ning only the characters:

			2 <cr> 2 <cr> <esc> <esc>

This will *silently* cause FDISK to change the boot partition.  I created our
batch file by typing 2 ALT-013 2 ALT-013 ALT-027 ALT-027 at PC-WRITE (a great
shareware screen editor).

++Brandon
-- 
``for is he not of the Children of Luthien?  Never shall that line fail, though
the years may lengthen beyond count.''  --J. R. R. Tolkien

 /-----------//***/  Brandon S. Allbery: cbatt!cwruecmp!ncoast!tdi2!brandon
/---  ------//***/   Tridelta Industries, Inc.
  /  //---, /---/    7350 Corporate Blvd.	+1 216 255 1080
 /--//---~ /---/     Mentor, Ohio 44060		HOME: +1 216 974 9210