Newsgroups: linux.kernel
From: "Patrick J. LoPresti" <p...@users.sourceforge.net>
Date: Fri, 02 Apr 2004 01:00:12 +0200
Local: Thurs, Apr 1 2004 6:00 pm
Subject: Re: 2.6 kernels misdetect harddisk geometry, 2.4 kernels are fine
Carl-Daniel Hailfinger <c-d.hailfinger.kernel.2...@gmx.net> writes: [snip] > Hi, > the harddisk geometry recognized by 2.6 kernels differs from the geometry > Especially interesting are the lines: Hard to say. The whole notion of "geometry" is a little confused > -hda: 60036480 sectors (30739 MB) w/1916KiB Cache, CHS=3737/255/63, UDMA(100) > +hda: 60036480 sectors (30738 MB) w/1916KiB Cache, CHS=59560/16/63, UDMA(100) > You can see that both share the same sector count, but differing > Is this change intentional or a bug? these days. The geometry shown by the 2.6 kernel is consistent with that reported by the "extended INT13" BIOS interface, which allows 16 bits for each of C/H/S. This is, in some sense, the "real" geometry. The other geometry, which happens to be the one you need if you plan The 2.6 behavior was causing a headache for me, so I fixed it. First, I wrote a patch for the Linux EDD module and sent it to the So begin by updating to a 2.6.5-rc* or -mm* kernel. Load the EDD This will create entries under /sys/firmware/edd/int13_dev80. The Ignore the cylinder count. Read the head count (H) and sector count Read /sys/block/hda/size, and divide that by S and then by H to Finally, run a command like this: echo "bios_cyl:C bios_head:H bios_sect:S" > /proc/ide/hda/settings ...where C, H, and S are as computed. This will reset the values Works for me; see <http://unattended.sourceforge.net/>. Note that simply assuming H and S are 255 and 63, respectively, will - Pat You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||