Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750708AbWBQRBk (ORCPT ); Fri, 17 Feb 2006 12:01:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750718AbWBQRBk (ORCPT ); Fri, 17 Feb 2006 12:01:40 -0500 Received: from odyssey.analogic.com ([204.178.40.5]:14599 "EHLO odyssey.analogic.com") by vger.kernel.org with ESMTP id S1750708AbWBQRBj (ORCPT ); Fri, 17 Feb 2006 12:01:39 -0500 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C633E3.D02F6E80" X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 X-OriginalArrivalTime: 17 Feb 2006 17:01:37.0916 (UTC) FILETIME=[D0BB33C0:01C633E3] Content-class: urn:content-classes:message Subject: C/H/S from user space Date: Fri, 17 Feb 2006 12:01:37 -0500 Message-ID: X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: C/H/S from user space thread-index: AcYz49DEou1ety6OQZ2MxK9JT0ZQZg== From: "linux-os \(Dick Johnson\)" To: "Linux kernel" Reply-To: "linux-os \(Dick Johnson\)" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 8003 Lines: 158 This is a multi-part message in MIME format. ------_=_NextPart_001_01C633E3.D02F6E80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable For those who think that C/H/S translation is useful, attached is a simple program that gets whatever the BIOS used from user-space. If you have large media (most do), you will descover that C/H/S is useless because it is always set to "MAX" like this: Disk parameter table(s) at vector 0x41 Disk0 Cylinders =3D 1024 Sectors =3D 63 Heads =3D 255 Write precomp =3D 0 Landing zone =3D 65296 Reserved bit 0 set Reserved bit 1 set Reserved bit 2 set More than 8 heads Reserved bit 4 set Defect map present Disable retries Disable retries Disk1 Cylinders =3D 306 Sectors =3D 1 Heads =3D 4 Write precomp =3D 0 Landing zone =3D 12544 Disk parameter table(s) at vector 0x46 Disk0 Cylinders =3D 306 Sectors =3D 1 Heads =3D 4 Write precomp =3D 0 Landing zone =3D 12544 Disk1 Cylinders =3D 306 Sectors =3D 1 Heads =3D 4 Write precomp =3D 0 Landing zone =3D 12544 Cheers, Dick Johnson Penguin : Linux version 2.6.15.4 on an i686 machine (5589.55 BogoMips). Warning : 98.36% of all statistics are fiction. _ =1A=04 **************************************************************** The information transmitted in this message is confidential and may be= privileged. Any review, retransmission, dissemination, or other use of= this information by persons or entities other than the intended recipient= is prohibited. If you are not the intended recipient, please notify= Analogic Corporation immediately - by replying to this message or by= sending an email to DeliveryErrors@analogic.com - and destroy all copies= of this information, including any attachments, without reading or= disclosing them. Thank you. ------_=_NextPart_001_01C633E3.D02F6E80 Content-Type: APPLICATION/x-gzip; name="CHS.tar.gz" Content-Transfer-Encoding: base64 Content-Description: CHS.tar.gz Content-Disposition: attachment; filename="CHS.tar.gz" H4sIAEIA9kMAA+1afWxUV3Z/YxuwBxI7LO0mbVXdBZydgfF4xjbmw5hi8Bh714B3DIHEwOR55o3f MzPzJu+98Uc2LGSdbPCyVKhdqdHuqpuoX1KllVaN2rSqWhGBQqn6B9o/2j+6fyTqJhoKbVGKaNqy TH/n3vs8b8YDyUZhoypzzJ337rnn6557z7kfj73D453KQ4ZIpCeydcsWPDlUP/l7NNK9dUsPvUaV SDQS7e1W2JaHbRhBwXZUizHFMk3nQXQf1f7/FPZi/JO6/VB1YDwfMP7RSG+0p3r8e3u3KCzyUK2S 8Dkf/9Ox0SGfz7dUb1AaFap956Wm5h48X3hE4HsUpqxSAsqvKU8oK3kd5QxoUN7BO5UVKE0ojSjr IGTdi03NVL6A+hdkm08WDuCl8rhfUagQv9Im2jnue2hD0YHIo6yU7Q14hNAeQhuVv0Odykqpg0oA 9AHopsJQZ562r73npGr5wuXvzBiTnZlUR8bIFebCthnuEvg2afu+A4elr0RZIfvcivIoymqUNVWy GySN64OVko+gBaUZBV2CjxXlkRq2/bZ8PoeyFmWvrG+Q9bCs/0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MRumKTdzrJi0gS0OF+CMpPdh00rYi7zqRYepZ82KoaEQhpWKAgxAuLRgzkidZIU/7 I2xEkcSEOs6LUSPTiadjFw1+i+AZNWc1BO6siS2gIXYzYoBdjWUuinfJNYxdezUbmunK2jumgcDh 0SDJ2MRX9iDbzAjDhH6RH7H3dmjfRIuYKmyleQZuLuTJ8irv9lKd0tgk34RLvwiDyxzfqGY5KAgw NGJ/locId66I/xtCM8YzS4Kf3uyiznz82bV8crlNmD7eyKOQL08FngD4TOCNaWwwjP5IHzN2si78 bt4sNJaTsRu44ksjD0pDxqO3md4rP0ByUspVQVLasQvr4334Kj9SVvNh6bovn/dDZjUfFvkafMs/ dlbzYXmvpW/ZB9FqPqzCHj4kXlCJjrs52HX4NCWxPjaNzLQND9fnlX6XU4jkPEkpLxqsaPLadsxp t7k17nI6fdxjiWvNrl39LFpGn1p6g5GbN8v1+RPOdb4jDvL/5YRUDOWnPu3jDK1w9P+p+OKnWlN0 p8i3EHifmTjuLoSeVZKOdtINldheicV6W7ByGIlP39rP+hamDnWoQx3qUIc61KEOdahDHepQhzrU oQ51qEMd6lCHOtShDnWoQx3qUIc61KEOdfhk8H8n/jHbAFAAAA== ------_=_NextPart_001_01C633E3.D02F6E80-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/