From owner-freebsd-questions@FreeBSD.ORG Tue Jun 1 03:37:40 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62F7816A4CE for ; Tue, 1 Jun 2004 03:37:40 -0700 (PDT) Received: from legolas.inter.net.il (legolas.inter.net.il [192.114.186.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 011ED43D41 for ; Tue, 1 Jun 2004 03:37:39 -0700 (PDT) (envelope-from rcher@inter.net.il) Received: from [213.8.252.85] (diup-252-85.inter.net.il [213.8.252.85]) by legolas.inter.net.il (MOS 3.4.6-GR) with ESMTP id BVW82140 (AUTH rcher); Tue, 1 Jun 2004 13:37:28 +0300 (IDT) Message-ID: <40BC6A8D.10403@inter.net.il> Date: Tue, 01 Jun 2004 13:37:49 +0200 From: roman User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Disk geometry salad... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 10:37:40 -0000 Hi, I would like to try FreeBSD but recently I've encountered several problems with the detection of my hard drives' geometry, so I have a few questions. I hope this is the right place to ask... First I would like to say that my understanding of this issue is minor, so if my questions seem stupid, I apologize in advance. I have two Western Digital hard drives, (1) WD400BB (40GB) and (2) WD300BB (30GB) and an Asus CUS-L2C motherboard (Intel 815EP chipset). The manufacturer website doesn't provide the CHS geometry for the drives, but lists the number of LBA sectors for each drive. For (1) it's 78,165,360 sectors * 512 bytes resulting in about 40.02 GB. For (2) it's 58,633,344 sectors * 512 bytes resulting in about 30.02 GB. On the first drive I currently have Windows XP, the second drive is empty. Western Digital's diagnostic utility for Windows detects the CHS geometry of the drives as (1) 4865/255/63 and (2) 3649/255/63 and confirms that the number of LBA sectors is identical to the manufacturer specification. FreeBSD 5.2.1 detects the CHS geometry (When it boots, there's a listing of the hard drives and the CHS geometry, but no LBA sectors) as (1) 77545/16/63 and (2) 58168/16/63. I have several questions regarding this. 1) What is the difference between a geometry of 58168/16/63 and 3649/255/63, why did the diagnostic utility detect the latter form, while FreeBSD detected the former (Also, Linux 2.4 detects the geometry as 3649/255/63)? 2) When installing FreeBSD, sysinstall warns that a geometry of the first drive (1) as it detects it (77545/16/63) is incorrect and can't be used. It automatically replaces the values with 4865/255/63. The problem is that after replacing the geometry with 4865/255/63 the number of LBA sectors (as listed in the Disk Slice editor) becomes lower than the manufacturer spec (78,156,225 instead of 78,165,360). What does this mean? 3) I tried installing FreeBSD on the second drive. Sysinstall didn't complain about the geometry of 58168/16/63 and I was able to install. The interesting thing is that when I started the installation program of Fedora Core Linux (Had to check something, and it was FC1 which means 2.4 kernel) it complained about an incorrect partition table that was generated by a tool that didn't have the right BIOS geometry. When I reinstalled FreeBSD on the same drive, but changed the geometry from 58168/16/63 to 3649/255/63, and launched the Fedora Core setup again - it didn't complain! Why is that?