From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: root seems to be incorrectly set after install
Date: Sun, 3 Feb 2008 17:53:23 +0100 [thread overview]
Message-ID: <200802031753.23905.okuji@enbug.org> (raw)
In-Reply-To: <20080203151843.GA1863@thorin>
On Sunday 03 February 2008 16:18, Robert Millan wrote:
> On Sun, Feb 03, 2008 at 09:47:17AM -0500, George Lengel wrote:
> > Dear Robert,
> >
> > I now get a 0x80 at the top of the screen just before the rescue mode
> > line. This indicates I am using my compiled version and also confirms
> > your suspicion about the BIOS, right?
> >
> > >What version of GRUB Legacy did you install in that system? Did you
> > > modify GRUB Legacy when you installed it, or something like that?
> >
> > I use Grub legacy from Debian which is 0.97. It has worked for years and
> > years without any problem and I never did anything past a simple apt-get
> > and accept the defaults when configuring it.
>
> Can you check if you can override the root device by invoking grub-setup
> manually with --root-device parameter?
I have looked at this problem deeply, and I think the following changes would
be required:
- A variable to specify where grub.cfg and modules are present. Currently, we
have it only for a prefix without a drive. So grub_root_drive or something
must be added. It could be added to kern/i386/pc/startup.S, but
boot/i386/pc/boot.S might be more appropriate (if there is space large
enough).
- grub-setup must handle a root drive independently, of a boot drive or an
embedding drive.
- kern/i386/pc/init.c must be modified accordingly.
The scinarii would be the following:
- If a core image is embedded, and a grub directory is in the same drive, all
drives should be set to -1, thus a boot drive passed by BIOS or another boot
loader will be used.
- If a core image is embedded, and a grub directory is in a different drive, a
root drive must be explicitly set by grub-setup. The other drives will be set
by BIOS or another boot loader.
- If a core image is not embedded, and it is in the same drive, the same as
the first example.
- If a core image is not embedded, and it is in a different drive, an
embedding drive is identical to a root drive, and must be set explicitly by
grub-setup.
I am planning to fix it myself, but if I look too slow, please feel free to
fix it instead of me.
Okuji
next prev parent reply other threads:[~2008-02-03 16:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-02 21:41 root seems to be incorrectly set after install George Lengel
2008-02-02 22:39 ` Robert Millan
2008-02-03 3:44 ` George Lengel
2008-02-03 11:00 ` Robert Millan
2008-02-03 14:47 ` George Lengel
2008-02-03 15:18 ` Robert Millan
2008-02-03 16:53 ` Yoshinori K. Okuji [this message]
2008-02-03 21:55 ` Yoshinori K. Okuji
2008-02-09 4:15 ` root seems to be incorrectly set after install (patch works) George Lengel
2008-02-09 10:26 ` screen corruption Robert Millan
2008-02-09 19:33 ` George Lengel
2008-02-09 20:26 ` Vesa Jääskeläinen
2008-02-09 23:27 ` George Lengel
2008-02-09 22:10 ` Robert Millan
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=200802031753.23905.okuji@enbug.org \
--to=okuji@enbug.org \
--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.