*BSD News Article 15848


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!goanna!escargot!minyos.xx.rmit.OZ.AU!s902113
From: s902113@minyos.xx.rmit.OZ.AU (Luke Mewburn)
Newsgroups: comp.os.386bsd.questions
Subject: SOLUTION TO 'NetBSD co-exist with DOS?'
Keywords: solution, netbsd, dos
Message-ID: <1skkbcINNnft@escargot.xx.rmit.OZ.AU>
Date: 10 May 93 04:06:04 GMT
References: <match.19.736464917@civil.utah.edu> <1993May6.090828.25077@news.arc.nasa.gov>
Reply-To: zak@rmit.edu.au
Organization: Not RMIT (this is an implicit disclaimer :)
Lines: 68
NNTP-Posting-Host: minyos.xx.rmit.oz.au

calabres@noc.arc.nasa.gov (Angelo D. Calabrese) writes:

> In article <match.19.736464917@civil.utah.edu>, match@civil.utah.edu (Marvin Match) writes:
>> The problem:
>>   Made a 110-Meg dos partition, leaving 300-Meg for NetBSD.
>>   Loaded DOS fine. Loaded NetBSD fine. NetBSD boots fine. Can't find DOS!!
>> 
>> The question:
>>   Whence Dos?
>>   When I boot DOS from a floppy, fdisk finds only one non-DOS partition
>>   of 24-Megs on this 410-Meg drive. OS-BS only finds one 24-meg non-DOS
>>   partition. fdisk /mbr is no help. pfdisk is no help.
>> 
>> I've gone through this again and again. I've tried creating the partitions
>> manually with pfdisk. I've tried installing 386-bsd and then overwriting it.
>> I've tried low-level formatting the entire disk.
>> 
>> I'm convinced that you simply "can't get there from here".
>> 
>> Somebody want to prove me wrong?
>> 
>> Marvin Match
>> match@sky.civil.utah.edu
>
> I am having the same problem. I have a 486DX-33, AMI bios, aha1742, LXT535S,
> SVGA with 16Megs of Mem. 
>
> Thanks,
> Angelo


OK, use fdisk (or pfdisk if you're adventurous) and partition up the
disk how you want, with the 1 large 'non-dos' partition (in my case my
125MB drive had a 32MB dos and 93MB non-dos partition). Then, grab
pfdisk and recreate the non-dos partition with the same start and end
cylinders but with a type of 165 (the version of pfdisk I got doesn't
know about 386bsd partitions, but I intend to compile up a version
that does).

So, the method I went about getting DOS to co-exist was this:
- low-level format the drive (why not? :)
- boot of a floppy with fdisk
- fdisk it with a 32MB dos partition and the rest (93) as 'extended'.
- ran pfdisk 0, and the partition that I wanted for netbsd was something
  like the following (when I did 'L' for list):

num id  start size    type
2   99  65535 200000  unknown

  (This is an approximation) Then I'd type in:
    2 165 65535 200000
  to set the type to 165.

  Do 'W' to write changes. (Note that if you wanna do D:, do pfdisk 1
  to run it).

- formatted c: and put dos & telix back in (incase I needed to log in)
- installed netbsd..


Hopefully that helps someone... I'll whip up some more accurate notes
(with 'real-world' data :)

Luke.

--
Luke Mewburn [Zak], <zak@rmit.edu.au>
"Lawyers - the only group for which ignorance of the law is not a crime" - anon