Subject: Re: Problem with edlabel / HOWTO ??
To: Nathan J. Williams <nathanw@MIT.EDU>
From: Ralph Meyer <rmeyer@mathematik.tu-chemnitz.de>
List: port-sun3
Date: 05/31/2000 00:41:22
On 30 May 2000, Nathan J. Williams wrote:
> <rmeyer@mathematik.tu-chemnitz.de> (Ralph Meyer) writes:
>
> >i set up a sun 3/80 (sun3x) with netboot, the ramdisk kernel doesnt run, I
> >installed as diskless and want to configure my harddisk
>
> I just noticed this recently; apparantly nobody's tried installing a
> 3/80 or 3/470 lately. I'll try to have it fixed for the next snapshot.
it warns about /dev/console and stops
>
> What version or snapshot are you trying to install?
netbsd 1.4.2 normal dist. no snapshot
>
> > /sd0 at scsibus0 targ 1 lun0 /Maxtor LXT200S 3.10 SCSI1/0 direct..
> > with 191mb, 1320 cyl 7 head 512 sec. 392056 sectors.
>
> This is incomplete.. Can you post the actual kernel probe output for
> the disk? In particular, the sectors per track number is missing. You
> should have something like (from my 3/80):
all kernel /disklabel messages at the end of this mail....
Another Problem the SUN Bootrom says: Device not found...
if I try to boot
from the miniroot with
b sd(0,1,2) -s
(/dev/sd0c I hope)
but I think the disk is only misconfigured / partitioned
>
> sd0 at scsibus0 targ 0 lun 0: <FUJUTSU, M2266S-512, 002C> SCSI1 0/direct fixed
> sd0: 1029 MB, 1658 cyl, 15 head, 84 sec, 512 bytes/sect x 2107704 sectors
>
> > but i dont know hot to use edlabel, if I configure it und run disklabel
> > disklabel says part. out of range..
>
> Edlabel isn't terribly intuitive, but it's not very complicated,
> either. After running "edlabel /dev/rsd0c", the menu displays your
> four options: print, modify, write, and quit. You should print the
> current label, modify the label to match your desired partitioning
> (20M for root (partition a), 32M for swap (partition b), and about
> 140M for /usr (any remaining partition, traditionally g), would be a
> decent way to start). The partition sizes have to be entered in units
> of cylinders for the firmware to be really happy about booting from
> the disk.
>
> For the sizes above, 140 cylinders for root, 220 cylinders for swap,
> and 960 cylinders for /usr would work.
>
> > the swap part (sd0b) ist not configured
> > I can write to rsd0c and mount from it the miniroot image, but accessing
> > produces errors.
>
> Partition c conventionally represents the whole disk; you don't want
> to be mounting it, in all liklihood. But what errors do you see?
>
> > here the edlabel printout
> > typ_num =4
> > sub_typ =0
> > type_name lxt200s
> > pck_name
>
> > b/s=512
> > s/t=64
> > t/c=16
> > cy=20
> > sec/cy=1024
>
> These last four numbers look very wrong. Are they really what edlabel
> prints? Does disklabel print the same thing? Complete output from the
> programs would be helpful here.
>
> - Nathan
>
Here the orig. messages --> not typed screen to screen :-]
#################
#################
DMESG / SUN 3/80 8 MB /ROM V3.0
NetBSD 1.4.2 (INSTALL3X) #0: Mon Mar 6 07:50:36 PST 2000
toddpw@dagobah.toddpw.net:/usr/src/sys/arch/sun3/compile/INSTALL3X
Model: sun3x 80
fpu: mc68882
real mem = 8192K (0x800000)
avail mem = 6504K (0x65a000)
using 64 buffers containing 524288 bytes of memory
mainbus0 (root)
obio0 at mainbus0
iommu0 at obio0 addr 0x60000000
memerr0 at obio0 addr 0x61001000 ipl 7: (Parity memory)
intreg0 at obio0 addr 0x61001400
zsc0 at obio0 addr 0x62000000 ipl 6: (softpri 3)
kbd0 at zsc0 channel 0 (console)
zsc0: channel 1 not configured
zsc1 at obio0 addr 0x62002000 ipl 6: (softpri 3)
zstty0 at zsc1 channel 0
zstty1 at zsc1 channel 1
eeprom0 at obio0 addr 0x64000000
clock0 at obio0 addr 0x640007f8 ipl 5
le0 at obio0 addr 0x65002000 ipl 3: address 08:00:20:c0:ff:ee
le0: 8 receive buffers, 2 transmit buffers
dma0 at obio0 addr 0x66001000 ipl 2: rev 0
esp0 at obio0 addr 0x66000000 ipl 2: ESP100, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
sd0 at scsibus0 targ 1 lun 0: <MAXTOR, LXT-200S, 3.10> SCSI1 0/direct fixed
sd0: 191MB, 1320 cyl, 7 head, 42 sec, 512 bytes/sect x 392056 sectors
fdc0 at obio0 addr 0x6e000000 ipl 6 vect 0x40: (softpri 2) chip 82072
enabling interrupts
boot device: le0
nfs_boot: trying RARP (and RPC/bootparam)
nfs_boot: client_addr=0xc0a80b04 (RARP from 0xc0a80bf7)
nfs_boot: server_addr=0xc0a80bf7
nfs_boot: hostname=sun3x
root on 192.168.11.247:/var/tmp/sun3/root
WARNING: clock lost 4822 days -- CHECK AND RESET THE DATE!
##################################################
DISKLABEL
#################################
root file system type: nfs
# /dev/rsd0c:
type: SCSI
disk: LXT-200S
label:
flags:
bytes/sector: 512
sectors/track: 64
tracks/cylinder: 16
sectors/cylinder: 1024
cylinders: 20
total sectors: 20480
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg]
a: 300000 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 292*)
c: 20480 0 unknown # (Cyl. 0 - 19)
#################################
#####################################
EDLABEL
edlabel menu:
print - display the current disk label
modify - prompt for changes to the label
write - write the new label to disk
quit - terminate program
edlabel> type_num: 4
sub_type: 0
type_name: LXT-200S
pack_name:
bytes/sector: 512
sectors/track: 64
tracks/cylinder: 16
cylinders: 20
sectors/cylinder: 1024
partition start (c/t/s) nblks (c/t/s) type
a (root) 0 (0/00/00) 300000 (292/15/32)* 4.2BSD
b (swap) 0 (0/00/00) 0 (0/00/00) unused
c (disk) 0 (0/00/00) 20480 (20/00/00) unknown
d (user) 0 (0/00/00) 0 (0/00/00) unused
e (user) 0 (0/00/00) 0 (0/00/00) unused
f (user) 0 (0/00/00) 0 (0/00/00) unused
g (user) 0 (0/00/00) 0 (0/00/00) unused
h (user) 0 (0/00/00) 0 (0/00/00) unused
edlabel>
Thanks for your help
Ralph