Subject: Re: iBook multiboot swap
To: None <port-macppc@netbsd.org>
From: David Friggens <david@mcs.vuw.ac.nz>
List: port-macppc
Date: 04/12/2003 11:53:01
> What does disklabel say?
# disklabel wd0
# /dev/rwd0c:
type: ESDI
disk: IBM-IC25N030ATCS
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 58605120
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
7 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 9936944 64 Apple UFS 0 0 0 # (Cyl. 0*- 9858*)
b: 1048576 9937008 Apple UFS 0 0 0 # (Cyl. 9858*- 10898*)
c: 58605120 0 unused 0 0 # (Cyl. 0 - 58139)
d: 16799704 41805408 HFS # (Cyl. 41473*- 58139*)
e: 20966496 10985584 Apple UFS 0 0 0 # (Cyl. 10898*- 31698*)
f: 1600 41803808 unknown # (Cyl. 41472*- 41473*)
g: 8 58605112 unknown # (Cyl. 58139*- 58139)
disklabel: boot block size 0
disklabel: super block size 0
#
(I repartitioned and reinstalled, putting the Linux bootstrap partition
after the others so that the root and swap for NetBSD would come up as
wd0a and wd0b.)
These translate in the Apple partition table (as shown in Linux) below as:
wd0a <-> hda2 (NetBSD /)
wd0b <-> hda3 (UFS swap)
wd0d <-> hda7 (OSX)
wd0e <-> hda4 (shared /home partition)
wd0f <-> hda6 (Linux boot)
wd0g <-> hda8 (free space from OS X partitioner :-)
root # mac-fdisk /dev/hda
/dev/hda
Command (? for help): p
/dev/hda
# type name length base ( size ) system
dump: name /dev/hda len 8
/dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hda2 Apple_UFS NetBSD 9936944 @ 64 ( 4.7G) Unknown
/dev/hda3 Apple_UFS swap 1048576 @ 9937008 (512.0M) Unknown
/dev/hda4 Apple_UFS Home 20966496 @ 10985584 ( 10.0G) Unknown
/dev/hda5 Apple_UNIX_SVR2 Linux 9851728 @ 31952080 ( 4.7G) Linux native
/dev/hda6 Apple_Bootstrap bootstrap 1600 @ 41803808 (800.0k) NewWorld bootblock
/dev/hda7 Apple_HFS Mac OS X 16799704 @ 41805408 ( 8.0G) HFS
/dev/hda8 Apple_Free 8 @ 58605112 ( 4.0k) Free space
Block size=512, Number of Blocks=58605120
DeviceType=0x0, DeviceId=0x0
Command (? for help): q
root #