From owner-freebsd-hackers Mon Apr 7 22:35:43 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA17970 for hackers-outgoing; Mon, 7 Apr 1997 22:35:43 -0700 (PDT) Received: from almond.elite.net (root@almond.elite.net [205.199.220.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA17964 for ; Mon, 7 Apr 1997 22:35:40 -0700 (PDT) Received: (from jpm@localhost) by almond.elite.net (8.8.3/ELITE) id WAA20719 for freebsd-hackers@freebsd.org; Mon, 7 Apr 1997 22:35:40 -0700 (PDT) From: Jon Moldenhauer Message-Id: <199704080535.WAA20719@almond.elite.net> Subject: BIOS reports geometry wrong, help. To: freebsd-hackers@freebsd.org Date: Mon, 7 Apr 1997 22:35:40 -0700 (PDT) X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk A machine I have has a 'strange' problem: the BIOS is reporting totally incorrect geometry to the bootloader and the result is the bootloader crashes on a divide by zero error. This applies only to the hard disk drives in the machine. After tinkering with the boot block code and trying various things out, I narrowed down the problem to be an invalid geometry returned from interrupt 0x13, subfunction 0x8 in the bios.S function get_diskinfo() (the geometry being returned is 1023 cylinders, 256 heads, 0 sectors). If anyone else has seen this, I would be interested in any suggestions you might have for fixing it. It is possible to hardwire the drive's geometry into the boot block, but I would like to stay away from that alternative. Thanks, Jonathon jpm@elite.net