From owner-freebsd-questions Sat Oct 12 13:51:48 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA00103 for questions-outgoing; Sat, 12 Oct 1996 13:51:48 -0700 (PDT) Received: from panix4.panix.com (panix4.panix.com [198.7.0.5]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA29996 for ; Sat, 12 Oct 1996 13:51:43 -0700 (PDT) Received: from jbarrm.dialup.access.net (jbarrm@jbarrm.dialup.access.net [166.84.200.169]) by panix4.panix.com (8.7.6/8.7/PanixU1.3) with SMTP id QAA06980 for ; Sat, 12 Oct 1996 16:50:50 -0400 (EDT) Date: Sat, 12 Oct 1996 16:47:21 -0400 (EDT) From: Barry Masterson X-Sender: jbarrm@jbarrm.dialup.access.net To: Freebsd-questions Subject: Cylinders & heads: dmesg VS fdisk Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk When I run 'dmesg' & 'fdisk', the values for heads & cylinders are different for the same disk: [dmesg] wdc0: unit 0 (wd0): wd0: 1039MB (2128896 sectors), 2112 cyls, 16 heads, 63 S/T, 512 B/S ^^^^^^^^^ ^^^^^^^^ [fdisk] ******* Working on device /dev/rwd0 ******* parameters extracted from in-core disklabel are: cylinders=528 heads=64 sectors/track=63 (4032 blks/cyl) ^^^^^^^^^^^^^ ^^^^^^^^ My question is; Why is there a difference in cylinders, & heads on wd0 ; why would dmesg & fdisk show different values? I'm adding a second disk. dmesg reports the following, which corresponds with the manufacturers specs: [dmesg] wdc1: unit 0 (wd2): wd2: 516MB (1057280 sectors), 1120 cyls, 16 heads, 59 S/T, 512 B/S I ran 'fdisk -i' on the second disk, and entered what I believe are the correct values, which fdisk reports as follows: [fdisk] ******* Working on device /dev/rwd2 ******* parameters extracted from in-core disklabel are: cylinders=1120 heads=16 sectors/track=59 (944 blks/cyl) Here the cylinder & head values are the same. Is there some calculation I'm missing when I'm in fdisk? Or, is this how it should look; dmesg and fdisk agree in cylinder & head values? Thank you Barry Masterson jbarrm@panix.com >--->--->--->--->---> FreeBSD 2.1.5-R <---<---<---<---<---<