Subject: disklabel
To: None <port-sparc@NetBSD.ORG>
From: VALDIR B Santos <valdir@IQM.Unicamp.BR>
List: port-sparc
Date: 02/03/1997 17:47:54
Hello,
   in my previous message sent to netbsd-help@netbsd.org, I reported a 
problem on disklabeling  a disk on a Sparc 1+:

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:

# /dev/rsd0c:
type: SCSI
disk: SCSI disk 
label: XP34550S cyl5899
flags:
bytes/sector: 512
sectors/track: 150
tracks/cylinder: 10
sectors/cylinder: 1500
cylinders: 5899
total sectors: 8848500
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:    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*)

then newfs was run on all 4.2bsd partitions, these were mounted on
/mnt as:

sd1a /mnt
sd1f /mnt/usr
sd1g /mnt/var
sd1h /mnt/home

after that the NetBSD-1.2 distribution was extracted on it, the kernel
was copied from the running system, the system rebooted to single
user and installboot used to record the boot blocks.

This new system is up and running now but we're getting the following
message each time we do a reboot or cold start:

Bad magic number in disk label!
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Can anybody help?

Thanks,


Valdir Santos
valdir@iqm.unicamp.br