linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Clausen <clausen@gnu.org>
To: Andries Brouwer <aebr@win.tue.nl>
Cc: Szakacsits Szabolcs <szaka@sienet.hu>,
	Apurva Mehta <apurva@gmx.net>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	bug-parted@gnu.org
Subject: Re: Disk Geometries reported incorrectly on 2.6.0-testX
Date: Sun, 30 Nov 2003 09:27:22 +1100	[thread overview]
Message-ID: <20031129222722.GA505@gnu.org> (raw)
In-Reply-To: <20031129123451.GA5372@win.tue.nl>

On Sat, Nov 29, 2003 at 01:34:51PM +0100, Andries Brouwer wrote:
> On Sat, Nov 29, 2003 at 07:16:31AM +0200, Szakacsits Szabolcs wrote:
> 
> > 	http://mlf.linux.rulez.org/mlf/ezaz/ntfsresize.html#troubleshoot
> > 
> > Some users, having problems, did mention the usage of 2.6 kernel. If the
> > geometry changed during the fdisk, etc process then it could result also
> > booting problem?
> 
> Let me continue to stress: geometry does not exist.

Let me continue to stress: geometry DOES exist.

It is an abstract construct that is stored in your BIOS that some
configurations use and need for booting.

> Consequently, it cannot change.

The geometry can be changed in many BIOSes.

> fdisk does not set any geometry, it writes a partition table.

But the way it writes the partition table is affected by what it
believes the geometry to be.  If its beliefs don't match the BIOS,
there can be trouble.  However, since fdisk isn't typically used to
resize Windows partitions, you don't see problems so much.

> Start and size of each partition are given twice: in absolute sector
> units (LBA) and in CHS units. The former uses 32 bits, and with 512-byte
> sectors this works up to 2TB. People are starting to hit that boundary now.
> The latter uses 24 bits, which works up to 8GB. Modern systems no longer
> use it (but the details are complicated).

You mean "modern software".  I'm not sure how true this is.  Have you
got any evidence?

(i.e. have you got any evidence that, say, that 99.x% of Windows XP
installations use LBA to bootstrap?)

> Usually booting goes like this: the BIOS reads sector 0 (the MBR)
> from the first disk, and starts the code found there. What happens
> afterwards is up to that code. If that code uses CHS units to find
> a partition, and if the program that wrote the table has different
> ideas about those units than the BIOS, booting may fail.

Exactly.

Moreover, booting can fail while reading the file system.  I reverse
engineered several of the Microsoft boot loaders (Windows
95/9x/ME/2000/NT).  The boot sector understands FAT, and depending
on the configuration, may use CHS to load in info.

I wrote about this in the doc/FAT file in the Parted tarball.

Cheers,
Andrew


  parent reply	other threads:[~2003-11-29 22:23 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-28  4:58 Disk Geometries reported incorrectly on 2.6.0-testX Apurva Mehta
2003-11-28 14:24 ` Andries Brouwer
2003-11-29  2:22   ` Andrew Clausen
2003-11-29  5:16     ` Szakacsits Szabolcs
2003-11-29  9:18       ` Sven Luther
2003-11-29 12:41         ` Andries Brouwer
2003-11-30 11:44           ` Szakacsits Szabolcs
2003-11-30 15:19             ` Andries Brouwer
2003-11-29 12:34       ` Andries Brouwer
2003-11-29 13:50         ` John Bradford
2003-11-29 14:04           ` Stefan Smietanowski
2003-11-29 17:01           ` Sven Luther
2003-11-29 22:14             ` Andries Brouwer
2003-11-29 22:44               ` Sven Luther
2003-11-30  0:39                 ` Andries Brouwer
2003-11-30  9:35               ` Sergey Vlasov
2003-11-29 22:31           ` Andrew Clausen
2003-11-30  8:57             ` Arjan van de Ven
2003-11-30  7:38               ` Szakacsits Szabolcs
2003-11-30 10:40               ` John Bradford
2003-11-30 11:24                 ` Sven Luther
2003-11-30 13:48                   ` John Bradford
2003-11-30 17:22                     ` Sven Luther
2003-11-30 23:51                 ` Andrew Clausen
2003-11-30 22:54               ` Andrew Clausen
2003-11-29 22:27         ` Andrew Clausen [this message]
2003-11-30  0:34           ` Andries Brouwer
2003-11-30 11:10             ` Szakacsits Szabolcs
2003-11-30 13:26               ` Andries Brouwer
2003-11-30 12:34                 ` Szakacsits Szabolcs
2003-11-30 15:46                   ` Andries Brouwer
2003-11-29 22:33       ` Andrew Clausen
2003-11-30  9:16         ` Szakacsits Szabolcs
2003-12-03 11:05           ` Andrew Clausen
2003-12-03 11:28             ` Szakacsits Szabolcs
2003-12-03 11:54               ` Andrew Clausen
2003-12-03 13:07                 ` Szakacsits Szabolcs
2003-12-03 23:27                   ` Andrew Clausen
2003-12-03 21:55                     ` Szakacsits Szabolcs
2003-12-03 23:47                     ` bill davidsen
     [not found] <200311300220.hAU2K0dr019280@sunrise.pg.gda.pl>
2003-11-30  2:22 ` Andrzej Krzysztofowicz
2003-11-30 13:13   ` Andries Brouwer
2003-11-30 13:58     ` John Bradford
2003-11-30  7:08 Norman Diamond
2003-11-30  7:08 Norman Diamond
2003-11-30 12:49 ` Andries Brouwer
2003-12-03 11:06   ` Andrew Clausen
2003-12-03 14:42     ` Andries Brouwer
2003-12-03 23:11       ` Andrew Clausen

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=20031129222722.GA505@gnu.org \
    --to=clausen@gnu.org \
    --cc=aebr@win.tue.nl \
    --cc=apurva@gmx.net \
    --cc=bug-parted@gnu.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=szaka@sienet.hu \
    /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;
as well as URLs for NNTP newsgroup(s).