Subject: Re: disklabel cylinder off
To: netbsd alpha <netbsd_alpha@yahoo.com>
From: Todd Vierling <tv@pobox.com>
List: port-alpha
Date: 03/06/2000 13:03:36
On Mon, 6 Mar 2000, netbsd alpha wrote:
: total sectors: 17783112
* 512 = 9104953344 bytes.
: UNFORMATTED CAPACITY (MB) ________________11700
: FORMATTED CAPACITY (MB) __________________9100
(These are based on MB=1000000 bytes, not MB=1048576 bytes. Bugs me every
time.)
: AVERAGE SECTORS PER TRACK ________________168 rounded down
: ACTUATOR TYPE ____________________________ROTARY VOICE COIL
: TRACKS ___________________________________105,480
: CYLINDERS ________________________________5,274 user
: HEADS ______PHYSICAL______________________20
Hm, according to my math, 5274*168*20 = 17720640; 5274*169*20 =
17826120. The reported capacity by NetBSD, 17783112, is in that range (and
is what is reported by the disk's INQUIRE command).
NetBSD's reported broken-down geometry is 5268*168*20 = 17700480 sectors,
which is also coming from parameters in the INQUIRE command. However, your
disklabel actually uses space beyond that:
: h: 1024 17782088 18
All but one of my IDE drives report c*h*s numbers less than the actual
capacity (which is correct), and two of my SCSI drives as well. I just run
by the raw capacity numbers and ignore c*h*s where possible.
--
-- Todd Vierling (tv@pobox.com)