Subject: disklabel/IDE clarification needed
To: None <port-sparc64@netbsd.org>
From: Aditya <aditya@mighty.grot.org>
List: port-sparc64
Date: 05/08/2002 13:05:35
Hi, I'm trying to disklabel a second IDE disk and running into a few problems
and could do with a few hints. The IDE drive was in a FreeBSD/i386 system with
a single partition. Needless to say, disklabel isn't able to read it and so
I'm trying to start from scratch however the instructions in the Handbook look
to be for the i386 port.

I've tried writing the following label and disklabel complains about the
following line not having enough entries, ie.:

#        size    offset     fstype  [fsize bsize cpg/sgs]
  c:        *         0     4.2BSD

coming from the FreeBSD world where it's as simple as:

  disklabel -w -r ad2 auto

it's a bit more challenging under NetBSD ;-) FWIW, the system is a Netra X1
with uname -a giving:

  NetBSD some 1.5ZC NetBSD 1.5ZC (GENERIC) #0: Wed Mar 27 18:27:55 UTC 2002     root@u2:/usr/obj/sparc64/obj/sys/arch/sparc64/compile/GENERIC sparc64

here's the drive info:

wd1 at pciide0 channel 1 drive 1: <WDC AC310200R>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 9787 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 20044080 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)

and my attempted label:

type: unknown
disk: foo
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 20044080
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

8 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
  c:        *         0     4.2BSD

Thanks,
Adi