Subject: loosing the firewire drive's disklabel on reboot
To: None <port-macppc@netbsd.org>
From: Joel CARNAT <joel@carnat.net>
List: port-macppc
Date: 08/03/2007 22:48:50
Hi,

I have plugged a minipartner on my mini/G4 using firewire.
----
ieee1394if0: New S400 device ID:00063a27000852fa
sbp0 at ieee1394if0: SBP-2/SCSI over IEEE1394
scsibus0 at sbp0: 1 target, 0 luns per target
sbp0:0:1 login failed
sd0 at scsibus0 target 0 lun 0: <DMI, 0KLAT80, 0306> disk fixed
sd0: fabricating a geometry
sd0: 372 GB, 381554 cyl, 64 head, 32 sec, 512 bytes/sect x 781422768 sectors
----
I have created the partition using pdisk like that:
----
Partition map (with 512 byte blocks) on '/dev/sd0c'
 #:                type name       length   base      ( size )
 1: Apple_partition_map Apple          63 @ 1
 2:     Apple_UNIX_SVR2 partner 781422704 @ 64        (372.6G)
----
Then created a disklabel like that:
----
3 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 781422704        64     4.2BSD      0     0     0  # (Cyl.      0*-
381554*)
 c: 781422768         0     unused      0     0        # (Cyl.      0 -
381554*)
----
And finally did a newfs on /dev/sd0a.

Each time I reboot the mini, the mounting process stops saying it can't
find "sd0a". I have run /bin/sh in single user mode, and rewrite the
disklabel. Then exit the single user mode, and the mini finishes booting.

fsck says the partition is OK.

Any idea on what's happening ?
Thanks,
   Jo