*BSD News Article 26139


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!news.kei.com!eff!news.umbc.edu!europa.eng.gtefsd.com!uunet!imagen!imagen!klee
From: klee@imagen.com (Kanghoon Lee)
Subject: Re: Installing NetBSD 0.9 after MS-DOS
Message-ID: <klee.758836945@imagen>
Sender: usenet@aqm.com
Nntp-Posting-Host: imagen
Organization: imagen
References: <a09878.758791211@giant>
Date: 17 Jan 94 20:02:25 GMT
Lines: 53

a09878@giant.rsoft.bc.ca (Curt Sampson) writes:

>I'm trying to install NetBSD on a system that already has a small DOS
>partition. I want DOS to boot by default; I'll boot NetBSD by loading
>the bootstrap programs from floppy disk and then loading the kernel
>from the hard drive.  Unfortunately, I'm not having much success.

>My procedure is this: install a 25 MB DOS 6.0 partition on my 100 MB
>disk. Then use the Linux fdisk program to set up a partition on the
>remainder of the disk and set the type to 0xa5 (as described in the
>NetBSD install document). Then boot NetBSD, give it the disk size,
>calculate the size of the NetBSD partition, give it that number as
>the partition size, and calculate the size of the DOS partition and
>give it that number as the offset into the disk.

>Then the install script does the disklabel, which asks me if I want to
>overwrite a disk with DOS partition information on it. Here things
>seem to get a bit wierd.

>If I'm using my disk in untranslated mode (1282 cylinders, 4 heads, 40
>sectors) and I say 'no', it seems to write the disklabel just fine and
>I set things up normally. DOS still boots fine, but I can't use the
>bootblocks from a floppy to boot the kernel on my hard drive because
>the boot program claims the disk label is bad. (I can still mount the
>disk and fsck it if I boot the kernel from a floppy, though.)

>If I'm using my disk in translated mode (1024 cylinders, 5 heads, 40
>sectors) and I say 'no', the label never gets written and I can't
>continue.

>If I say 'yes' in either mode, my partition table gets trashed and I
>loose the DOS partition.

>Has anyone any advice?

>cjs
>--
>Curt Sampson  a09878@giant.rsoft.bc.ca  
>Fluor Daniel		  604 691 5458	
>1444 Alberni Street			
>Vanouver, B.C., V6G 2Z4			"Do not expect fairings."

I think you should use tinyBSD to format and label the NetBSD partition.  In
the FAQ file, it tells you how to setup multiple operating systems on a single
disk.  I think you should use the pfdisk and os-bs.exe.  It worked just fine
for me and saved me a lot of headache.  You can find these programs in
freebsd.cdrom.com. 

Kang

Kang. H. Lee.   	| e-mail:klee@aqm.com
Systems Engineer
QMS Inc., Mobile Alabama.