Subject: Re: Reading NetBSD/sparc disks on i386?
To: Christopher Chen <muffaleta@gmail.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-i386
Date: 08/24/2005 21:21:58
On Wed, Aug 24, 2005 at 11:51:45AM -0700, Christopher Chen wrote:
> Hello All:
> 
> I have a scsi disk here from a sun4m running NetBSD/sparc, that I want
> to mount on a i386 machine running -current. I've enabled the FFS_EI
> kernel config option, and it works--I can mount the "a" partition. But
> there are 5 partitions on the disk, a-e, and most of my data is on
> "e". Problem is, disklabel gives me bogus data, and only shows "a" and
> "d" covering the entire disk. Is there something I need to do to make
> the true disklabel readable on this machine?

I don't know of a way to do this yet. However, you probably have a
backup disklabel of this drive in its a partition (in /var/backup/work). You
should be able to change the in-core disklabel without
touching the disk with:
disklabel -N sd1
disklabel -R sd1 /mnt/var/backup/work/disklabel.sd0

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--