Subject: Re: Reading Mac Disklabel?
To: None <port-macppc@netbsd.org>
From: Adam Lebsack <lebsack@mac.com>
List: port-macppc
Date: 02/22/2001 19:32:05
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
# /dev/rwd0c:
type: ESDI
disk: Maxtor 54098U8
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 80041248
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
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
Thanks,
Adam
>On Thu, 22 Feb 2001, Adam Lebsack wrote:
>
>> I have a linuxppc box which I would like to convert to NetBSD. I
>> have already used a spare drive to install NetBSD, using the
>> partitioning in the installer. I am not familiar with how the
>> installer partitions my drive. Back in linux, I tried a pdisk on the
>> drive to see what it did, and it can't read anything!
>
>I guess we need to make the warning text larger. Using the installer at
>present DESTROYS all Apple Partition Map partitions. Specifically when
>installboot runs the Apple Partition Map gets blasted.
>
>Oh, you installed NetBSD on the space disk. That's fine.
>
>> Anyhow, my main problem is that I have a 30 gig ext2 filesystem I
>> would like to mount from my linux drive. The drive has a MacOS
>> disklabel, and NetBSD can't seem to read it.
>
>What does NetBSD see? Also, what does pdisk say?
>
>> So I have two questions: Can I run NetBSD with a regular MacOS
>> disklabel (with all netbsd partitions in a regular MacOS disklabel
>> format)? Also, I need to access the other linux ext2 partition
>> (hda4). How do I do this?
>
>Yes, you can. Though using an Apple Partition Map is different from using
>disklabel.
>
>For the ext2 partition, we'd need to know what pdisk says about it.
>
>Take care,
>
>Bill