Subject: [NetBSD-1.6, pdisk, newfs] install problem
To: None <port-macppc@netbsd.org>
From: Anselm Garbe <anselmg@t-online.de>
List: port-macppc
Date: 04/26/2003 14:24:59
Hi there,

   I tried to install NetBSD 1.6 on a hd prepared with current pdisk as
   follows:

---snip---
Partition map (with 512 byte blocks) on '/dev/rwd0c'
 #:                type name              length   base     ( size )
 1: Apple_partition_map Apple                 63 @ 1       
 2:      Apple_Driver43*Macintosh             56 @ 64      
 3:      Apple_Driver43*Macintosh             56 @ 120     
 4:    Apple_Driver_ATA*Macintosh             56 @ 176     
 5:    Apple_Driver_ATA*Macintosh             56 @ 232     
 6:      Apple_FWDriver Macintosh            512 @ 288     
 7:  Apple_Driver_IOKit Macintosh            512 @ 800     
 8:       Apple_Patches Patch Partition      512 @ 1312    
 9:           Apple_HFS boot              102400 @ 1824     ( 50.0M)
10:     Apple_UNIX_SVR2 root             4194304 @ 104224   (  2.0G) S0 RUFS k0  /
11:     Apple_UNIX_SVR2 swap             1572864 @ 4298528  (768.0M) S1  SFS k0  (swap)
12:     Apple_UNIX_SVR2 usr             33198688 @ 5871392  ( 15.8G) S2  UFS k0  /usr

Device block size=512, Number of Blocks=39070080 (18.6G)
DeviceType=0x0, DeviceId=0x0
Drivers-
1:  23 @ 64, type=0x1
2:  36 @ 120, type=0xffff
3:  21 @ 176, type=0x701
4:  34 @ 232, type=0xf8ff
---snip---

Here's what disklabel wd0 says:
---snip---
# /dev/rwd0c:
type: ESDI
disk: IBM-IC25N020ATCS
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 39070080
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:   4194304    104224     4.2BSD      0     0     0   # (Cyl.  103*- 4264*)
 b:   1572864   4298528       swap                      # (Cyl. 4264*- 5824*)
 c:  39070080         0     unused      0     0         # (Cyl.    0 - 38759)
 d:    102400      1824        HFS                      # (Cyl.    1*- 103*)
 g:  33198688   5871392     4.2BSD      0     0     0   # (Cyl. 5824*- 38759)
---snip---

So I tried to format /dev/rwd0a and /dev/rwd0g with:

newfs /dev/rwd0a
newfs /dev/rwd0g

But newfs of netbsd 1.6 Installation iso wasn't able to update the
disklabel info. I thought this could be ignored, but when I tried to
mount /dev/rwd0a /mnt I got following error:

---snip---
mount /dev/rwd0a /mnt
mount_ffs: /dev/rwd0a on /mnt: Block device required
---snip---

Which seems to me, that newfs hasn't finished it's job correctly.
Grrr.

How should I going further?
Do I need to use a -current snapshot to format and installing NetBSD
correctly?

Regards,
   Anselm
-- 
Anselm R. Garbe  ()  ascii ribbon campaign - against html mail 
 www.ebrag.de    /\                        - against microsoft attachments