All of lore.kernel.org
 help / color / mirror / Atom feed
From: Colin Watson <cjwatson@ubuntu.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: boot.S vs diskboot.S
Date: Mon, 21 Feb 2011 16:44:48 +0000	[thread overview]
Message-ID: <20110221164448.GQ29629@riva.ucam.org> (raw)
In-Reply-To: <4D62927F.3020709@cfl.rr.com>

On Mon, Feb 21, 2011 at 11:27:43AM -0500, Phillip Susi wrote:
> What is the difference between these two files?  It looks like boot.S
> contains a BPB and is meant to be used when installing grub to the
> partition boot sector of a FAT or NTFS partition, and diskboot.S does
> not, and is meant to be used as the MBR.  It looks like boot.S is used
> in the MBR anyway though.

boot.S is the thing you put in your boot sector, whether that's the
master boot sector or a partition boot sector.  diskboot.S is prepended
to core.img when it's being booted from a hard disk, so when GRUB is
installed to the MBR it would reside in the second sector.  boot.S jumps
to diskboot.S which in turn jumps to the GRUB kernel proper.

Whether FAT or NTFS is in use is not relevant here.

-- 
Colin Watson                                       [cjwatson@ubuntu.com]


      reply	other threads:[~2011-02-21 16:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-21 16:27 boot.S vs diskboot.S Phillip Susi
2011-02-21 16:44 ` Colin Watson [this message]

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=20110221164448.GQ29629@riva.ucam.org \
    --to=cjwatson@ubuntu.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.