*BSD News Article 16676


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!uunet!mnemosyne.cs.du.edu!nyx!smace
From: smace@nyx.cs.du.edu (Scott Mace)
Subject: Re: [NetBSD] installing with DOS
Message-ID: <1993May31.172952.19773@mnemosyne.cs.du.edu>
X-Disclaimer: Nyx is a public access Unix system run by the University
	of Denver for the Denver community.  The University has neither
	control over nor responsibility for the opinions of users.
Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
References: <C7vu5z.EtM@cvt.stuba.cs>
Date: Mon, 31 May 93 17:29:52 GMT
Lines: 71


In article <C7vu5z.EtM@cvt.stuba.cs> valo@cvtstu.cvt.stuba.cs (Valo Roman) writes:
>Hi, all !
>
>I have problem installing NetBSD on one partition of my fixed disk.
>My disk geometry is
>17 sect/track, 8 tracks/cyl, 512 bytes/sect, 642 cylinders.
>
>First I create DOS 5 primary partition (10MB) using fdisk. There isn't any 
>chance to create nondos partition. Fdisk also didn't give me any usable
>information about length of partition or offset in sectors. When I used
>Norton disk editor, it gave me these results :
>Partition 1: start at cyl 0 head 0 sect 1
>                     end at cyl 150 head 7 sect 17
>Partition 2 : none
>
>This means, for the NetBSD partition there is 642151 (491) cylinders free,
>which is 491*8*17 (66776) 512bytes sectors, it's
>the length of the NetBSD partition, which I told to install program.
>When I was asked about the offset of the NetBSD partition, I 
>gave it the value 20537 (151 cyls for dos, it's 151*8*17=20536 512bytes sectors).
>Is this correct ?
>Because when I finished the base installation, my dos partition gone away !!!
>Running fdisk again didn't help, it told me that there isn't enough space to
>create dos partition.
>
>Any suggestions ?
>
>PS: sorry if this is a FAQ.
>
>Roman Valo			Email: valo@cvt.stuba.cs
>Slovak Technivcal University
>Computer Centre
>Bratislava
>Slovak Republic

You should read the INSTALL_NOTES for NetBSD.

Here is what I did for netbsd and when I installed 386bsd

You need to get a program called pfdisk.exe It is a simply little
partition editor and works quite well.

decide how you want to lay out your partition tatble
netbsd likes for partitions to be on cylinder boundaries
also all to calcuations should be in 512byte blocks.


On your system 1 cyl = 17 sec/track * 8 tracks/cyl = 136 blocks
136 * 512 = 69632 bytes.  

1024 *1024 * 10 = 10485760 bytes on first partition. divide that
by 512 to get number of blocks.  20480 blocks 

pfdisk will ask for # of cyl for each for each partition.
for your first partition you would use 147 cyl even though it doesn't
divide out evenly you round down.

Use the remaining cyl for the netbsd partition.  be sure to use type 165
for that partition.  write down all the offset and other partition info.
better yet screen print it.

The NetBSD installation program should be able to currectly setup the
rest.  You'll need some kind of boot manager progrm to select which
os you want to boot from.  I use os-bs132.exe there is a os-bs134.exe
also.
--
*********************************************************************
*    Scott Mace                internet:    smace@nyx.cs.du.edu     *
*                                           emace@tenet.edu         *
*********************************************************************