Subject: disklabel
To: 'port-hpcmips@netbsd.org' <port-hpcmips@netbsd.org>
From: Schlegelmilch, Elliot <eschlegelmilch@rightnow.com>
List: port-hpcmips
Date: 07/08/2001 15:52:16
sorry this isn't completely on topic.

i'm a freebsd user, where we don't have to deal with fdisk/disklabel
directly as often. could someone take a look at this?  nec mobile pro 770,
192meg cf card.  i'm trying to mount (as freebsd users would call it) wd0s1
or the first partition.  according to
http://www.mclink.it/personal/MG2508/nbsdeng/chap-2boot.html#AEN1099 i'm
doing this right, but for the slice size for e, i cant get it for the life
of me. i've tried the starting positions of 0c and 63s, and the end
positions of 10208s, 19c and 20c. 
should i be using wd0f instead of e?

hpc $ fdisk
NetBSD disklabel disk geometry:
cylinders: 734 heads: 16 sectors/track: 32 (512 sectors/cylinder)

BIOS disk geometry:
cylinders: 734 heads: 16 sectors/track: 32 (512 sectors/cylinder)

Partition table:
0: sysid 4 (Primary DOS with 16 bit FAT <32M)
    start 32, size 10208 (4 MB), flag 0x0
        beg: cylinder    0, head   1, sector  1
        end: cylinder   19, head  15, sector 32
1: <UNUSED>
2: <UNUSED>
3: sysid 169 (NetBSD)
    start 12288, size 363520 (177 MB), flag 0x80
        beg: cylinder   24, head   0, sector  1
        end: cylinder  733, head  15, sector 32

hpc $ disklabel wd0
# /dev/rwd0d:
type: unknown
disk: mydisk
label: 
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 16
sectors/cylinder: 512
cylinders: 734
total sectors: 375808
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

8 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  a:   342016    12288     4.2BSD     1024  8192    16   # (Cyl.   24 - 691)
  b:    21504   354304       swap                        # (Cyl.  692 - 733)
  c:   363520    12288     unused        0     0         # (Cyl.   24 - 733)
  d:   375808        0     unused        0     0         # (Cyl.    0 - 733)
  e:     9728        0      MSDOS                        # (Cyl.    0 - 18)