Subject: disklabel and regular Apple_partition_map
To: None <port-macppc@netbsd.org>
From: Edouard G. Parmelan <egp@free.fr>
List: port-macppc
Date: 07/10/2001 02:36:03
--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
I have create my partitions with Mac OS 9.1 Disk Utils. Latter I use
mac-fdisk on Debian GNU/Linux and I dump them again with Mac OS X pdisk
utility. Results of mac-fdisk and pdisk match but NetBSD-1.5.1
disklabel suck :-(
Please note that I have follow latest INSTALL.html, I jump to /bin/sh from
sysinst to run disklabel.
This is my kernel:
NetBSD adam 1.5.1 NetBSD 1.5.1 (GENERIC) #9: Mon Jul 2 08:58:45 PDT 2001 matt@duel.local:/u1/kobj/GENERIC macppc
This is the ouput of Mac OS X pdisk:
/dev/disk0 map block size=512
#: type name length base ( size )
1: Apple_partition_map Apple 63 @ 1
2: Apple_Driver43*Macintosh 54 @ 64
3: Apple_Driver43*Macintosh 74 @ 118
4: Apple_Driver_ATA*Macintosh 54 @ 192
5: Apple_Driver_ATA*Macintosh 74 @ 246
6: Apple_FWDriver Macintosh 200 @ 320
7: Apple_Driver_IOKit Macintosh 512 @ 520
8: Apple_Patches Patch Partition 512 @ 1032
9: Apple_HFS untitled 8388608 @ 1544 ( 4.0G)
10: Apple_Bootstrap bootstrap 1600 @ 8390152
11: Apple_UNIX_SVR2 NetBSD 1572864 @ 8391752 (768.0M)
12: Apple_UNIX_SVR2 GNU/Linux 1572864 @ 9964616 (768.0M)
13: Apple_UNIX_SVR2 swap 983040 @ 11537480 (480.0M)
14: Apple_UNIX_SVR2 Home 7120360 @ 12520520 ( 3.4G)
Device block size=512, Number of Blocks=19640880
DeviceType=0x0, DeviceId=0x0
Drivers-
1: @ 64 for 23, type=0x1
2: @ 118 for 36, type=0xffff
3: @ 192 for 21, type=0x701
4: @ 246 for 34, type=0xf8ff
Partition 11 will be my NetBSD root and I will share partition 14 with
GNU/Linux as ext2 /home.
But unfortunary, disklabel reports:
# /dev/rwd0c:
type: ESDI
disk: IBM-DJSA-210
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 19640880
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 200 320 unknown # (Cyl. 0*- 0*)
b: 8388608 1544 HFS # (Cyl. 1*- 8323*)
c: 19640880 0 unused 0 0 # (Cyl. 0 - 19484)
d: 1600 8390152 unknown # (Cyl. 8323*- 8325*)
It will boot thru Apple_FWDriver, swap into my Mac OS 9.1/X and see my
yaboot/ybin bootstrap partition.
Note that when I run "disklabel -e", I get the following error:
disklabel: ioctl DIOCWDINFO: Label magic number or checksum is wrong!
(disklabel or kernel is out of date?)
I attach the gziped-result of "dd if=/dev/wd0c bs=16k count=1". I think
it could be useful to find what's wrong with NetBSD kernel.
--
Edouard G. Parmelan
http://egp.free.fr
--1yeeQ81UyVL57Vl7
Content-Type: application/x-gzip
Content-Disposition: attachment; filename="wd0c.raw.gz"
Content-Transfer-Encoding: base64
H4sIAAQdSjsCA+2YTU/iUBSGTxGRRDOuJmMyG2NcaaKNTog7i6LiFxLwa8cgNkMz0DblCu5k
4Y8wce3eGPey5Kf4C4wLk3pbhEHTFplRAed9ksNtOSeXpE/PbS9LCR8Jk1ci1fHzkOgbCXws
0rhp8rFCXwes8zsauzcJfCLim/bwhYdleD6s6znZo97Op/S0wRSmaGoqn9adyuZxZTuHaZrm
X/iXeIQ20xlFZVoh6+k/YihF2fgx6zptiGjgpHY45ZAOnobmRFFs+kZnkQTMddR/kcfaG/lf
I+p78h91SC/+fOmfhEDj6NkAPsp/pd3+T4W3w637f8IhnX9A/3ed/7t2+9/Df1P/RxzS4vlL
/yXlt4L+76R/wXr+V1/nf3mvdge4Tltt+btaSTbii5DVNf59QR7UVv+vbq0rzKnKBwk9599v
+4+nWSY7Gq/v71z821VywXVWV/9Y1LvWfyBIZaIjlYvPyYfe+//octJr0rK1mbSe/9+rNCiR
UHmSX+m/brzvWeu/numZa/pL01T/Z/Zf5v4pIB1oGisww/lfnYb/hRZVAetdYhad2P388T8U
pRGimMwWkhH3+pr/ndjqfiq5m5hxLhqxP+G/l/yf1fyvxHamNxT16Bj+/y//l9z/MFGh5Lqo
v97/MPz3nP8b7j93cRvV8vI/++fzwD8AAAAAAAAAAAAAAAAAAAAAAAAAAADvzyORS3g8AEAA
AA==
--1yeeQ81UyVL57Vl7--