From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265115AbUGCN7k (ORCPT ); Sat, 3 Jul 2004 09:59:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265117AbUGCN7k (ORCPT ); Sat, 3 Jul 2004 09:59:40 -0400 Received: from mail-ext.curl.com ([66.228.88.132]:42244 "HELO mail-ext.curl.com") by vger.kernel.org with SMTP id S265115AbUGCN7i (ORCPT ); Sat, 3 Jul 2004 09:59:38 -0400 To: Andries Brouwer Cc: Bartlomiej Zolnierkiewicz , Szakacsits Szabolcs , Anton Altaparmakov , bug-parted@gnu.org, "K.G." , Steffen Winterfeldt , Thomas Fehr , linux-kernel@vger.kernel.org, clausen@gnu.org, buytenh@gnu.org, msw@redhat.com Subject: Re: [RFC] Restoring HDIO_GETGEO semantics (was: Re: workaround for BIOS / CHS stuff) References: <200407030242.39075.bzolnier@elka.pw.edu.pl> <20040703005555.GA20808@apps.cwi.nl> From: "Patrick J. LoPresti" Message-ID: Date: 03 Jul 2004 09:59:38 -0400 In-Reply-To: <20040703005555.GA20808@apps.cwi.nl> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Andries Brouwer writes: > (ii) Various people talk about moving disks between machines. > Such people have not understood the main fact here: > the geometry is not a property of the disk but of the BIOS. Um... Yes, right, exactly, very good. So you *must* obtain the geometry from the BIOS and not from anything you happen to find on the disk. Which is sort of my entire point. > It is futile to hope for a construction that will work across > different machines with different BIOSes. Simply false. "modprobe edd.o" followed by an examination of the fields under /sys/firmware/edd will give you precisely the right values. - Pat