*BSD News Article 15187


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!usenet-feed.umr.edu!yting
From: yting@cs.umr.edu (Yu-Han Ting)
Subject: [SOLUTION] NetBSD + DOS5 + OS/2 2.1 March beta...
Date: Mon, 26 Apr 1993 22:50:15 GMT
Nntp-Posting-Host: next10.cs.umr.edu
Organization: University of Missouri - Rolla, Rolla, MO
Sender: cnews@umr.edu (UMR Usenet News Post)
Message-ID: <1993Apr26.225015.11952@umr.edu>
Lines: 77


Ok! folks,

   After spending one day fighting with the nasty partition table, finally
I had NetBSD, DOS 5 (Sorry, I don't use DOS 6), and OS/2 2.1 March
beta co-existing on my hard drive.  Here is the answer:

   Since that my original hard disk setup was corrupted by NetBSD's
installation program, I decided to rebuild it.  I would like my partition
table looks like this:

	Partition 0: OS/2 2.1 beta (Primiary, HPFS, C:)
	Partition 1: MS-DOS 5.0 (Primiary, C:)
	Partition 2: MS-DOS 5.0 (Extended, D: & E:)
	Partition 3: NetBSD

   You will need the following tools before you can setup a similar environ-
ment:

	1. Mr. wolfRAM's OS-BS.  (It's an excellent boot selector, much
	   better than OS/2's boot manager, IMHO)
	2. PFDISK.EXE.  (It's available from wuarchive.wustl.edu:mirrors/
	   linux/dos_utils/pfdisktc.zip.)
	3. A binary editor.  I use Norton Utilities' DiskEdit.
	4. 386BSD's 'tinyBSD' distribution disk.

    After you have the necessary tools handy,

	1) Use OS/2 'fdisk' to create partition 0.  Make it installable and
	   install the system as usual.
	2) Use OS/2 'fdisk' to create partition 1.  Assign drive C: to the
	   partition.  Then reboot from DOS.
	3) Use DOS 'fdisk' to create the extended partition.  Assign logical
	   drive D and E to the partition.
	4) Reboot from DOS again.  Format drive C: (for DOS), D:, and E:.
	5) Use 'tinyBSD', NOT 'NetBSD', to boot the machine. Create a genuine
	   386BSD partition.  Once the 386BSD partition has been made,
	   boot DOS from floppy and execute PFDISK.EXE.  For example, issue
	   the following commands once you get into DOS:

		C>pfdisk 0 <enter>
		pfdisk> L <enter>  ("pfdisk>" is the command prompt and "L"
				    is the actual command.)

	   The second line, i.e., command 'L', will tell you the starting
	   address and the length of each partition you have.  Record the
	   information for step 6.
	6) Reboot NetBSD from floppy.  Install NetBSD over the original
	   386BSD partition.  Fill out the information you get from step
	   5 to the installation program.  'halt' the system after you
	   have installed 'install2.fs'.
	7) Boot OS/2 from floppy.  Use fdisk to assign drive C: to the OS/2
	   partition.  In my case, partition 0.  Note that fdisk will
	   change the ID of partition 1 from '0x06' to '0x16'.  '0x06'
	   stands for 16-bit DOS FAT; while '0x16' stands for non-DOS
	   partition.  In the next step, we have to change '0x16' back to
	   '0x06' manually.  You can get the ID information by issuing "I"
	   under PFDISK.  It will tell you what the IDs represent.
	8) Boot DOS from floppy.  Use the binary editor to change the
	   partition type as stated in step 7.
	9) Install OS-BS under DOS.  Remeber to enable "Modify startup ID
	   before booting".
	10) Now you can boot any partition w/o floppy diskettes during
	    startup. :)

   The above procedures may not be optimized.  But it works for me.  I won't
spend anytime to deal with tedious work again :)

   You might feel strange why we need 'tinyBSD'.  Simply trust me.  By
using 'tinyBSD' to create a partition for NetBSD, it will make your life
a lot easier.  Hope this helps.

Yu-Han Ting

PS %%%%% REMEMBER TO BACKUP YOUR SYSTEM BEFORE YOU CONDUCT THE EXPERIMENT !!!
   I don't want to hear if anybody lost his/her data by following the above
   procedures :)