*BSD News Article 9899


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA6758 ; Tue, 12 Jan 93 19:04:09 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!haven.umd.edu!darwin.sura.net!udel!apache.dtcc.edu!apache.dtcc.edu!not-for-mail
From: joe@apache.dtcc.edu (Joe Brown)
Newsgroups: comp.unix.bsd
Subject: booting 386bsd from dos
Date: 15 Jan 1993 02:24:18 -0500
Organization: Delaware Technical & Community College
Lines: 55
Message-ID: <1j5or2INNp6c@apache.dtcc.edu>
References: <727017058.5418@minster.york.ac.uk>
NNTP-Posting-Host: apache.dtcc.edu
Summary: quick and easy boot?
Keywords: dos-fdisk boot 386bsd

I don't know how many of you have thought of this...  It is, however the
path I choose.

A brief background check:
I do a lot of work in DOS.  Not necessiarly by choice, just a faq. :-/
DOS in my world is a necessity.  386bsd, however, is a luxury I find
enjoyable to work with (in my case this us unfortunate, because I'd rather
spend my time in 386bsd, than dos).

Please excuse the lack of nettiquette, this is my third posting to the net.

TO THE POINT!

DOS supports simple piping.  So, "fdisk < 386bsd.dat" is a valid command.

Therefore, if you have a file called 386bsd.dat which contains all the
keystrokes you type to set the active partition to 386bsd (in dos's fdisk),
you can have a down and dirty quick boot to 386bsd. 

386bsd resides on the second partition of my hard drive, so I have a
386bsd.dat file which contains --

2^M     -- Set active partition (in dos's fdisk)
2^M     -- to the second partition (386bsd is my second partition)
ESC     -- ascii value for esc goes here.  Note, you'll need a good text
	   editor in dos, to insert this character value into your .dat 
	   file.  I used an emacs port for dos and typed ^q ESC

Then I created a file called 386.bat which has this single line in it:

fdisk < 386bsd.dat

I type 386 <enter>, and I have 386bsd booting!

Fortunatly, I have two drives, and my dos partition on drive 0 (c:) is
>=30MB (only 20MB), so I can issue:

/usr/distbin/shutdown -todos

to get right back to dos.

Lastly:

To avoid conflict of dos software looking for itself on c:, I have

ASSIGN D: C:

in my autoexec.bat file.  (Just the software needed for booting is on the
20MB dos c: partition of drive 0).

Hope this helps some of you dos-die-hards.
-- 
(: JB :)                				joe@apache.dtcc.edu

				    Hey, think we could recycle this place?