All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Grégoire Sutre" <gregoire.sutre@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: How to debug 'out of disk' error.
Date: Fri, 18 Mar 2011 15:56:27 +0100	[thread overview]
Message-ID: <4D83729B.9060504@gmail.com> (raw)
In-Reply-To: <20110318142253.GO343@caffeine.csclub.uwaterloo.ca>

On 03/18/2011 15:22, Lennart Sorensen wrote:
> On Fri, Mar 18, 2011 at 10:04:42AM +0100, Grégoire Sutre wrote:
>> I didn't look at the code, but this is probably the ATA geometry of
>> the disk, which is returned by the INT-13h (Extended) function 48h
>> (Read Drive Parameters).  If I remember correctly, this geometry is
>> always 16383/16/63 for disks larger than 8.4GB.
>
> That does match what is returned.
>
> Grub later assumes H=255 if it falls back to CHS as far as I can tell.

If the standard (non-extended) INT-13h interface is used, then addressing
is performed via CHS, and w.r.t. to the BIOS geometry (which need not be
the same as the ATA geometry reported by the disk itself, due to potential
address translation by the BIOS).  I guess that H=255 is the from the BIOS
geometry of the disk (as returned by the INT-13h function 08h).

> H=255 S=63 would be really bad for alignment on SSDs and such (not that
> H=16 is a whole lot better, but it is better).

The geometry just says how to interpret CHS addresses, it does not imply
any partition alignment.  You can have 1MiB-aligned partitions even with
a n/255/63 BIOS geometry.

Grégoire


  reply	other threads:[~2011-03-18 14:57 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-16 15:13 How to debug 'out of disk' error Lennart Sorensen
2011-03-16 15:29 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-03-16 16:58   ` Lennart Sorensen
2011-03-16 17:21     ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-03-16 17:32   ` Lennart Sorensen
2011-03-16 17:58     ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-03-16 18:14       ` Lennart Sorensen
2011-03-16 19:19     ` Phillip Susi
2011-03-16 19:23       ` Lennart Sorensen
2011-03-16 20:09         ` Lennart Sorensen
2011-03-16 20:19           ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-03-16 22:00             ` Lennart Sorensen
2011-03-16 22:16               ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-03-17 14:06                 ` Lennart Sorensen
2011-03-17 14:18                   ` Lennart Sorensen
2011-03-17 16:09                 ` Lennart Sorensen
2011-03-17 16:29                   ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-03-17 18:40                     ` Lennart Sorensen
2011-03-17 19:01                       ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-03-17 19:22                         ` Lennart Sorensen
2011-03-18  9:04       ` Grégoire Sutre
2011-03-18 14:22         ` Lennart Sorensen
2011-03-18 14:56           ` Grégoire Sutre [this message]
2011-03-18 15:26             ` Lennart Sorensen
2011-03-16 19:51     ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-06 12:50 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-06 14:38   ` Lennart Sorensen

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=4D83729B.9060504@gmail.com \
    --to=gregoire.sutre@gmail.com \
    --cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.