From: Phillip Susi <psusi@cfl.rr.com>
To: "linux-os (Dick Johnson)" <linux-os@analogic.com>
Cc: "Jeff V. Merkey" <jmerkey@wolfmountaingroup.com>,
Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: C/H/S from user space
Date: Fri, 17 Feb 2006 17:20:31 -0500 [thread overview]
Message-ID: <43F64C2F.7040200@cfl.rr.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0602171609480.4549@chaos.analogic.com>
linux-os (Dick Johnson) wrote:
> Who is YOU??? I would certainly be requesting the right sectors
> if I (or anybody else who knows what they are doing), wrote
> the boot code. The boot loader knows about OFFSETS into the
> device where it's going to get its data, which eventually
> becomes a whole operating system. It doesn't give a *uck about
> anything else. There is a table of OFFSETS, obtained from
> the file-system, of the correct pieces of files (since there
> will not be a file-system until the machine is booted). This
> table of offsets needs to be read somewhere in the first 63
> sectors (32256 bytes). These offsets contain the junk to
> be loaded into memory.
>
We weren't talking about a boot loader you would write, or lilo even, we
were talking about windows's boot loader, which, to the best of my
knowledge, directly passes the CHS address of the starting sector of the
partition stored in the MBR to int 13. That CHS address is calculated
by fdisk based on the geometry it believes the disk has and is written
to the MBR when you partition the disk. The last time I checked a dos
MBR, the boot code there didn't recompute the CHS address at runtime
based on the LBA and current geometry according to the bios, so it has
to be written correctly in the first place by fdisk, which requires that
fdisk know the bios geometry.
> The boot-code, the code that executes in the 16-bit environment,
> converts those offsets (after getting data from the DPB) into
> the respective junk to put into the registers as I explained
> over and over and over again.
Maybe I'm just dense, but that's not what I heard you explaining. Is it
your position then, that the MS DOS/WIN MBR does actually recompute the
CHS address at boot time based on the geometry the bios currently
reports, and the LBA in the partition table, rather than use the CHS
address stored in the partition table and precomputed by fdisk?
If that is the case, then fdisk can use whatever geometry it chooses and
everything will be fine, so why does the kernel have to carry around
some geometry instead of just letting fdisk make one up when it is run?
>
> You refuse to learn. Please go away.
>
That is uncalled for. I don't understand why you have shown a bad
attitude this whole time.
next prev parent reply other threads:[~2006-02-17 22:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-17 17:01 C/H/S from user space linux-os (Dick Johnson)
2006-02-17 18:37 ` Jeff V. Merkey
2006-02-17 19:59 ` Phillip Susi
2006-02-17 20:04 ` linux-os (Dick Johnson)
2006-02-17 20:24 ` Nick Warne
2006-02-17 20:39 ` linux-os (Dick Johnson)
2006-02-17 21:04 ` Phillip Susi
2006-02-17 21:22 ` linux-os (Dick Johnson)
2006-02-17 22:20 ` Phillip Susi [this message]
2006-02-18 3:42 ` Marcin Dalecki
2006-02-18 16:20 ` Phillip Susi
2006-02-17 22:24 ` Jeff V. Merkey
2006-02-17 22:22 ` Jeff V. Merkey
-- strict thread matches above, loose matches on Subject: below --
2006-02-17 20:30 Seewer Philippe
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=43F64C2F.7040200@cfl.rr.com \
--to=psusi@cfl.rr.com \
--cc=jmerkey@wolfmountaingroup.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
/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