From: "Patrick J. LoPresti" <patl@users.sourceforge.net>
To: Anton Altaparmakov <aia21@cam.ac.uk>
Cc: Szakacsits Szabolcs <szaka@sienet.hu>,
Andries Brouwer <Andries.Brouwer@cwi.nl>,
bug-parted@gnu.org, "K.G." <k_guillaume@libertysurf.fr>,
Steffen Winterfeldt <snwint@suse.de>, Thomas Fehr <fehr@suse.de>,
linux-kernel@vger.kernel.org
Subject: Re: [RFC] Restoring HDIO_GETGEO semantics (was: Re: workaround for BIOS / CHS stuff)
Date: 02 Jul 2004 15:57:59 -0400 [thread overview]
Message-ID: <s5gvfh6xklo.fsf@patl=users.sf.net> (raw)
In-Reply-To: <Pine.LNX.4.60.0407022025200.28638@hermes-1.csi.cam.ac.uk>
Anton Altaparmakov <aia21@cam.ac.uk> writes:
> On Fri, 2 Jul 2004, Patrick J. LoPresti wrote:
>
> > Values used by the controller itself. Also the values you will get
> > from the "extended INT13" BIOS interface. As good a geometry as any,
> > unless you plan to dual-boot Windows.
>
> That is not true AFAIK. EDD reports what the bios reports.
There is more than one BIOS interface. I call them the "legacy INT13"
interface (INT13/AH=08h) and the "extended INT13" interface
(INT13/AH=48h). Suggest better terminology if you have any.
The extended interface is also called the "EDD interface". The Linux
edd.o module queries both this interace and the legacy interface,
leading to some confusion about what "EDD" means in this context.
Try this on a Linux 2.6.7 system. Do "modprobe edd". Look in
/sys/firmware/edd/int13_dev80. In particular compare the contents of
the files named "default_*" with those named "legacy_*".
You will find that the default_* files (i.e., the geometry from the
extended INT13 interface) match the values returned by HDIO_GETGEO.
Which is what I said.
> The HDIO_GETGEO reports crap and certainly not what EDD reports or
> at least not on any(!) PCs I have tried it.
Then you have not tried a SCSI or RAID system. But this is beside the
point.
> > Right now, HDIO_GETGEO is the only way some applications (e.g., mine)
> > can convince Parted to use the right geometry. So, fix Parted to
> > allow the user (i.e., the higher-level partitioning machinery) to
> > specify the geometry. This is the first and last necessary task
> > before eliminating Parted's use of HDIO_GETGEO.
>
> What? HDIO_GETGEO does not convince parted to use the right
> geometry! In 2.6 kernels it convinces parted to use the WRONG
> geometry and screw your data. That is the whole point!
I keep forgetting that every time I write about this topic, I need to
repeat everything I have said before.
I use a command like this:
echo bios_cyl:XXX bios_head:YYY bios_sect:ZZZ > /proc/ide/hda/settings
...to fix the values returned by HDIO_GETGEO. I do this because I
need to partition a blank drive on which I intend to install Windows
(http://unattended.sourceforge.net/). As I said, this is currently
the only way I can convince Parted to use the correct geometry.
> > Why does this stupid idea keep coming up? Inferring the geometry from
> > the existing partition table is just plain wrong. It is even more
> > wrong than the old 2.4 behavior, because it is still a guess, just a
> > worse guess.
>
> It is not only not wrong but completely correct. The geometry is
> really something completely made up nowadays. Nothing really needs
> it at the low level.
Wrong. The Windows boot loader still reads sectors using the legacy
BIOS interface. If not for this unfortunate fact, this entire issue
would be moot.
My point, for the 20th time, is that *there is no existing partition
table.* Why people are suggesting replacing a bad guess with a worse
guess is beyond me.
- Pat
next prev parent reply other threads:[~2004-07-02 19:58 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <s5gwu1mwpus.fsf@patl=users.sf.net>
2004-07-02 16:17 ` Szakacsits Szabolcs
2004-07-02 16:50 ` Andries Brouwer
2004-07-02 18:28 ` dwm
2004-07-02 21:12 ` parted maintainership Andries Brouwer
2004-07-02 17:04 ` [RFC] Restoring HDIO_GETGEO semantics (was: Re: workaround for BIOS / CHS stuff) Andries Brouwer
2004-07-02 18:12 ` Szakacsits Szabolcs
2004-07-02 18:45 ` Patrick J. LoPresti
[not found] ` <Pine.LNX.4.60.0407022025200.28638@hermes-1.csi.cam.ac.uk>
2004-07-02 19:57 ` Patrick J. LoPresti [this message]
2004-07-03 0:17 ` Szakacsits Szabolcs
2004-07-03 0:42 ` Bartlomiej Zolnierkiewicz
2004-07-03 0:56 ` Andries Brouwer
2004-07-03 1:57 ` Szakacsits Szabolcs
2004-07-03 13:59 ` Patrick J. LoPresti
2004-07-05 12:14 ` Restoring HDIO_GETGEO semantics for 2.6 (was: Re: [RFC] Restoring HDIO_GETGEO semantics) Szakacsits Szabolcs
2004-07-05 13:10 ` Steffen Winterfeldt
2004-07-05 13:12 ` Andries Brouwer
2004-07-05 13:13 ` Bartlomiej Zolnierkiewicz
2004-07-05 14:00 ` Andries Brouwer
2004-07-05 19:05 ` Bartlomiej Zolnierkiewicz
2004-07-05 21:08 ` Andries Brouwer
2004-07-05 21:52 ` Bartlomiej Zolnierkiewicz
2004-07-06 0:17 ` Szakacsits Szabolcs
2004-07-06 1:56 ` Andries Brouwer
2004-07-06 18:56 ` Szakacsits Szabolcs
2004-07-07 1:28 ` Andries Brouwer
2004-07-07 11:14 ` Roman Zippel
2004-07-07 11:51 ` Szakacsits Szabolcs
2004-07-06 8:33 ` Steffen Winterfeldt
2004-07-05 18:09 ` Szakacsits Szabolcs
2004-07-05 18:58 ` Bartlomiej Zolnierkiewicz
2004-07-03 3:00 ` [RFC] Restoring HDIO_GETGEO semantics (was: Re: workaround for BIOS / CHS stuff) Andrew Clausen
2004-07-02 23:55 ` Szakacsits Szabolcs
2004-07-03 13:56 ` Patrick J. LoPresti
2004-07-03 2:54 ` Andrew Clausen
[not found] ` <Pine.LNX.4.60.0407030843400.2415@hermes-1.csi.cam.ac.uk>
2004-07-03 12:44 ` Andrew Clausen
[not found] ` <Pine.LNX.4.60.0407031535230.6149@hermes-1.csi.cam.ac.uk>
2004-07-03 15:02 ` Andrew Clausen
2004-07-03 14:42 ` Patrick J. LoPresti
2004-07-03 1:35 ` Andrew Clausen
2004-07-03 12:33 ` Andries Brouwer
2004-07-03 14:15 ` Patrick J. LoPresti
2004-07-03 14:45 ` Andrew Clausen
2004-07-03 15:00 ` Patrick J. LoPresti
2004-07-03 20:12 ` Andries Brouwer
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='s5gvfh6xklo.fsf@patl=users.sf.net' \
--to=patl@users.sourceforge.net \
--cc=Andries.Brouwer@cwi.nl \
--cc=aia21@cam.ac.uk \
--cc=bug-parted@gnu.org \
--cc=fehr@suse.de \
--cc=k_guillaume@libertysurf.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=snwint@suse.de \
--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
all inboxes | Powered by JetHome®