Subject: Need help with partitioning an HDD
To: None <port-i386@netbsd.org>
From: Peter G. Osenev <osenev@sitek.net>
List: port-i386
Date: 05/02/2000 21:15:49
Hi everyone!

This is my first installation of NetBSD (1-4-2).I try to partition my 6.4GB
IDE drive while installing NetBSD from a boot floppy.

There are two partitions on the drive: PRIMARY DOS, FAT 16 > 32MB ( 2047MB)
and EXTENDED (4102MB).

On my PRIMARY partition I've got MS Windows 98SE with all my stuff
(including a NetBDS ditstibutive).On the EXTENDED I want to install
NetBSD-1.4.2.

I make four BSD partitions in the EXTENDED.They are:



/ (64MB)

/usr (~3800MB)

/tmp (400MB)

/var (128MB)



So, the disklabel is ready to rewrite an MBR of the HDD (it makes a DISKTAB
file in /etc with partition tables).

The content of my /etc/disktab is shown below:

# $NetBSD: disktab.preinstall,v 1.1 1997/06/14 18:56:07 perry Exp $
#
# Disk geometry and partition layout tables.
# Key:
# dt     controller type
# ty    type of disk (fixed, removeable, simulated)
# d[    0-4] drive-type-dependent parameters
# ns     #sectors/track
# nt     #tracks/cylinder
# nc    #cylinders/disk
# sc    sectors/cylinder, nc*nt default
# su    #sectors/unit, sc*nc default
# se    sector size, DEV_BSIZE default
# rm    rpm, 3600 default
# sf     supports bad144-style bad sector forwarding
# sk    sector skew per track, default 0
# cs    sector skew per cylinder, default 0
# hs    headswitch time, default 0
# ts    one-cylinder seek time, default 0
# il     sector interleave (n:1), 1 default
# bs   boot block size, default BBSIZE
# sb   superblock size, default SBSIZE
# o[a-h]   partition offsets in sectors
# p[a-h]   partition sizes in sectors
# b[a-h]   partition block sizes in bytes
# f[a-h]    partition fragment sizes in bytes
# t[a-h]   partition types (filesystem, swap, etc)
#
# All partition sizes reserve space for bad sector tables.
# (5 cylinders needed for maintenance + replacement sectors)
#
SEAL|NetBSD installation generated:\
 :dt=(null):ty=winchester:\
 :nc#13328:nt#15:ns#63:\
 :sc#945:su#12594960:\
 :se#512:\
 :pa#130410:oa#4192965:ta=4.2BSD:ba#8192:fa#1024\
 :pb#264600:ob#4323375:tb=swap:\
 :pc#8401995:oc#4192965:tc=unused:\
 :pd#12594960:od#0:td=unused:\
 :pe#261765:oe#4587975:te=4.2BSD:be#8192:fe#1024\
 :pf#819315:of#4849740:tf=4.2BSD:bf#8192:ff#1024\
 :pg#6925905:og#5669055:tg=4.2BSD:bg#8192:fg#1024\
 :ph#0:oh#0:th=unused:



Where's my 2,047GB of the msdos FAT 16 partition ?

It looks like the entry must be in the line.. :ph#.... but it doesn't

I know that the disktab can be edited manually.

How can I add my lost msdos partition to the disktab? (I mean how the line
with :ph#... for the 2047MB FAT 16 partition will look like?)

Also, I see in the thread that there's an issue with  dual booting of

Windows 98/NetBSD

Thanks to all!





Peter G. Osenev

Technical support engineer,

Sitek ISP , Moscow

P.S. Sorry for my poor english.