Subject: Re: handling NetBSD partitions in the Apple Partition Map [was Re: write-label changes]
To: Neil Ludban <nludban@columbus.rr.com>
From: None <itojun@iijlab.net>
List: port-macppc
Date: 10/08/2002 14:00:01
another option (when coexistence with apple filesystem is not needed)
is to use DOS fdisk partitioning, and put ofwboot into the first MS-DOS
partition. not sure how widely it is supported by open firmware
revisions, but this is one of the choices for openbsd.
itojun
tojun[tapioca:~/OpenBSD/src] sudo disklabel wd0
# using MBR partition 3: type A9 off 3024 (0xbd0) size 16511040 (0xfbf040)
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: IC25N040ATCS04-
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 78140160
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 2048000 3024 4.2BSD 1024 8192 16 # (Cyl. 3 - 2034*)
b: 2048000 2051024 swap # (Cyl. 2034*- 4066*)
c: 78140160 0 unused 0 0 # (Cyl. 0 - 77519)
e: 12415040 4099024 4.2BSD 1024 8192 16 # (Cyl. 4066*- 16382)
f: 2048000 16514064 4.2BSD 1024 8192 16 # (Cyl. 16383 - 18414*)
g: 59578096 18562064 4.2BSD 1024 8192 16 # (Cyl. 18414*- 77519)
i: 2048 1 MSDOS # (Cyl. 0*- 2*)
itojun[tapioca:~/OpenBSD/src] sudo fdisk wd0
Disk: wd0 geometry: 16383/16/63 [78140160 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
*0: 06 0 0 2 - 2 0 33 [ 1: 2048 ] DOS > 32MB
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: A9 3 0 1 - 16382 15 63 [ 3024: 16511040 ] NetBSD
itojun[tapioca:~/OpenBSD/src] uname -a
OpenBSD tapioca.itojun.org 3.2 GENERIC#59 macppc