Subject: Re: Reading Mac Disklabel?
To: Adam Lebsack <lebsack@mac.com>
From: Bill Studenmund <wrstuden@zembu.com>
List: port-macppc
Date: 02/23/2001 08:31:22
On Thu, 22 Feb 2001, Adam Lebsack wrote:
> Here is my pdisk output in linux, so this is correct:
>
> Partition map (with 512 byte blocks) on '/dev/hda'
> #: type name length base ( size )
> 1: Apple_partition_map Apple 63 @ 1
> 2: Apple_UNIX_SVR2 swap 524288 @ 64 (256.0M)
> 3: Apple_UNIX_SVR2 / 5767168 @ 524352 ( 2.8G)
> 4: Apple_UNIX_SVR2 /home 73749728 @ 6291520 ( 35.2G)
>
> Device block size=512, Number of Blocks=80041248 (38.2G)
> DeviceType=0x0, DeviceId=0x0
>
> Here is my disklabel output in NetBSD (incorrect):
>
> bash-2.04# disklabel wd0
>
> 3 partitions:
> # size offset fstype [fsize bsize cpg]
> a: 27686112 31383616 unknown # (Cyl.
> 31134*- 58600*)
> c: 80041248 0 unused 0 0 # (Cyl. 0 - 79405)
> disklabel: boot block size 0
> disklabel: super block size 0
That's bad. The one thing which may do this is if you've gotten a bad
disklabel in block 0. NetBSD/macppc will look at that before it looks at
the Apple Partition Map.
Can you send me the outpt from
"dd if=/dev/rwd0c count=1 bs=512 | hexdump -C" please?
Thanks.
Take care,
Bill