Subject: Re: Need help with partitioning an HDD
To: Peter G. Osenev <osenev@sitek.net>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: port-i386
Date: 05/12/2000 12:29:58
On Tue, May 02, 2000 at 09:15:49PM +0400, Peter G. Osenev wrote:
...
> 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?)

What does fdisk wd0 give you? From that you should be able to read off
(start,offset) pairs for the partitions you want to add to the disklabel,
then if you want to make say the h partition mountable on /dev/wd0h, the
number after ph is the size, and oh the offset. th=MSDOS would be
appropriate.

eg:

0: sysid 6 (Primary 'big' DOS, 16-bit FAT (> 32MB))
    start 32, size 1535968 (749 MB), flag 0x80
        beg: cylinder    0, head   1, sector  1
        end: cylinder  749, head  63, sector 32


        :ph#1535968:oh#32:th=MSDOS:

Cheers,

Patrick