Subject: disklabel, newfs problems.
To: None <port-alpha@NetBSD.ORG>
From: Feico Dillema <dillema@terje.pegasus.esprit.ec.org>
List: port-alpha
Date: 12/10/1996 17:04:11
Hello,

For some time now, I have been struggling with disklabels and such. Because
I've migrated from NetBSD-amiga, I knew little of disklabel-stuff and 
blamed my problems/difficulties on that. By now, however, I do believe
something is wrong. Anyway I hope you can clarify this one for me.

I've been trying to add a small 52MB Quantum LPS52 disk as additional
swap drive. I first used `disklabel -e -r sd1' to write a disklabel. 
I never got it right, disklabel kept complaining about things like
`partition name c: wrong'.  Then I tried copying a disklabel from 
my other disk using `dd if=/dev/rsd2c of=/dev/rsd1c count=2'. This
did give a disklabel on sd1, which I could even edit using `disklabel'.
(see below for current disklabel). Then I add a filesystem to the disk
using `newfs /dev/rsd1c'. Finally I try to turn on swap, using 
`swapon /dev/sd1b', which then gives me: 

swapon: /dev/sd1b: device not configured

I tried several other approaches, but this was the one I thought should work.
I'm running btw NetBSD-current of 2 Dec. I've had other problems getting
new disklabels on new disks, so I hope you can help me out...

Feico.

disklabel sd1
# /dev/rsd1c:
type: SCSI
disk: QLPS52
label: 
flags:
bytes/sector: 512
sectors/track: 41
tracks/cylinder: 2
sectors/cylinder: 82
cylinders: 1219
total sectors: 99958
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

4 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    49200        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 599)
  b:    50676    49200      swap                        # (Cyl.  600 - 1217)
  c:    99958        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 1218)



{ Feico Dillema,                                                        }
{ University of Twente, P.O. Box 217, 7500 AE Enschede, The Netherlands }
{ I'm a Natural Blond; Please Speak Slowly...                           }