From: Mark Bellon <mbellon@mvista.com>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
Andre Hedrick <andre@linux-ide.org>,
linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: [PATCH] IDE disks show invalid geometries in /proc/ide/hd*/geometry
Date: Thu, 04 Aug 2005 09:44:47 -0700 [thread overview]
Message-ID: <42F245FF.1050006@mvista.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0508040800130.22272@yvahk01.tjqt.qr>
Jan Engelhardt wrote:
>>Simple: do not use BIOS values.
>>[ Yes, there should be some warning from kernel. ]
>>
>>
>
>On that matter, I get a warning from LILO wrt cyls and stuff:
>
>07:47 spectre:~ # cat /proc/ide/hda/geometry
>physical 16383/16/63
>logical 65535/16/63
>07:58 spectre:~ # lilo
>Warning: Kernel & BIOS return differing head/sector geometries for device 0x80
> Kernel: 65535 cylinders, 16 heads, 63 sectors
> BIOS: 1023 cylinders, 255 heads, 63 sectors
>Added linux *
>07:59 spectre:~ # fdisk -l
>
>Disk /dev/hda: 40.9 GB, 40982151168 bytes
>255 heads, 63 sectors/track, 4982 cylinders
>
>
>All of these numbers are virtual, since CHS is not really used anymore, as
>we know. But, which of these fake CHS values (16383/16/63 | 65535/16/63 |
>1023/255/63) is the right one? 255/63/4982 is another matter, since it
>[almost] matches the actual size of the disk while the other three are just
>"for the bios".
>
>
This is exactly the case that my patch was attempting to fix (and
apparently didn't get quite right).
Certain drive returns cause strange numbers to slip through often when
LBA 28 is involved.
mark
next prev parent reply other threads:[~2005-08-04 16:49 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-29 0:03 [PATCH] disk quotas fail when /etc/mtab is symlinked to /proc/mounts Mark Bellon
2005-07-29 0:13 ` Nathan Scott
2005-07-29 0:15 ` Mark Bellon
2005-07-29 0:19 ` Mark Bellon
2005-07-29 0:23 ` Andrew Morton
2005-07-29 0:29 ` Mark Bellon
2005-07-29 0:46 ` Mark Bellon
2005-07-29 13:46 ` Jan Kara
2005-07-29 15:47 ` Mark Bellon
2005-07-29 17:21 ` [PATCH] (REPOST/REVISION) " Mark Bellon
2005-07-29 22:03 ` [PATCH] (TAKE 3) " Mark Bellon
2005-08-02 21:27 ` [PATCH] IDE disks show invalid geometries in /proc/ide/hd*/geometry Mark Bellon
2005-08-03 7:19 ` Andre Hedrick
2005-08-03 16:54 ` Mark Bellon
2005-08-03 17:19 ` Bartlomiej Zolnierkiewicz
2005-08-03 17:37 ` Mark Bellon
2005-08-03 18:05 ` Bartlomiej Zolnierkiewicz
2005-08-03 18:32 ` Mark Bellon
2005-08-03 18:51 ` Bartlomiej Zolnierkiewicz
2005-08-04 6:03 ` Jan Engelhardt
2005-08-04 16:44 ` Mark Bellon [this message]
2005-08-04 23:45 ` Eric D. Mudama
2005-08-08 16:02 ` [PATCH] (TAKE 3) disk quotas fail when /etc/mtab is symlinked to /proc/mounts Jan Kara
2005-08-08 17:55 ` [PATCH] PPC64: large INITRD causes kernel not to boot Mark Bellon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42F245FF.1050006@mvista.com \
--to=mbellon@mvista.com \
--cc=akpm@osdl.org \
--cc=andre@linux-ide.org \
--cc=bzolnier@gmail.com \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox