Subject: Re: disklabel
To: VALDIR B Santos <valdir@IQM.Unicamp.BR>
From: Paul Kranenburg <pk@cs.few.eur.nl>
List: port-sparc
Date: 02/03/1997 23:49:38
> in my previous message sent to netbsd-help@netbsd.org, I reported a
> problem on disklabeling a disk on a Sparc 1+:
Unfortunately, labeling disks is a bit less than straightforward
in NetBSD/sparc 1.2. Especially disklabel(8)'s `-r' option can be
confusing or produce inconsistent results.
>
> Disk:
>
> sd0 at scsibus0 targ 2 lun 0: <QUANTUM, XP34550S, LXQ1> SCSI2 0/direct fixed
> sd0: 4341MB, 5899 cyl, 10 head, 150 sec, 512 bytes/sec
>
> This is a fresh disk from vendor. It was put on a Sparc1+ running NetBSD-1.2
> and the following disktab was created by hand:
>
You didn;t say exactly how you got the label on the disk. I'm not really
sure if `disklabel -r -w' in 1.2 would actually write a label, but if it
did, it would certainly have been a `native' formatted NetBSD label.
This is not recognised by Sun's PROM in case you want to boot off it.
> 8 partitions:
> # size offset fstype [fsize bsize cpg]
> a: 40960 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 27*)
> b: 262144 40960 swap # (Cyl. 27*- 202*)
> c: 8848500 0 unknown # (Cyl. 0 - 5898)
> f: 409600 303104 4.2BSD 1024 8192 16 # (Cyl. 202*- 475*)
> g: 262144 712704 4.2BSD 1024 8192 16 # (Cyl. 475*- 649*)
> h: 7873651 974848 4.2BSD 1024 8192 16 # (Cyl. 649*- 5898*)
>
In case you want a bootable disk, you _need_ a SunOS-style label, which
also forces you all partitions to begin and end on cylinder boundaries
(which your partitions above aren't).
I suggest you re-label the disk using `disklabel -e sd0', eg. after
net-booting NetBSD or, alternatively, use SunOS to get an initial
label on it.
-pk