From: Tim Booth <avarus@fastmail.fm>
To: "grub-devel@gnu.org" <grub-devel@gnu.org>
Subject: Chainloading GRUB2 from Lilo
Date: Wed, 24 Mar 2010 16:08:33 +0000 [thread overview]
Message-ID: <1269446913.8288.384.camel@barsukas> (raw)
Hi All,
Sorry to clog up the developer list with my questions but I've scoured
the documentation and not found an answer.
I've hit this known problem:
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Windows_Writes_To_MBR
Where broken software on Windows is clobbering GRUB2. Modifying the
corporate Windows installation is not an option, so I'm trying to use
Lilo in the MBR and immediately chainload Grub.
Now I could install Grub into the (Ubuntu) Linux partition, but it seems
rather simpler to just ask Lilo to chainload core.img. As far as I can
tell, the only way to do this is to use lnxboot.img, telling lilo that
core.img is an initrd. - ie. like this:
---my /etc/lilo.conf---
# Very basic LILO chainloader config
boot = /dev/sda
lba32
default = chainload_grub2
timeout = 0
image = /boot/grub/lnxboot.img
append = "prefix=(hd0,5)/boot/grub"
root=/dev/hda5
initrd = /boot/grub/core.img
label = chainload_grub2
---end---
But when Grub loads the prefix is set to (hd0,1)/boot/grub and I just
get a recovery prompt and have to do:
set prefix=(hd0,5)/boot/grub
insmod normal
normal
So, is there any way to get the correct prefix passed through? I know
there are other ways to attack this problem, but as the fix needs to be
maintained on many machines I'm looking for something as simple as
possible, and this is the simplest I can come up with, so I thought I'd
ask this list before abandoning the idea completely.
Cheers,
TIM
--
To Err is human.
To Arrr is Pirate!
next reply other threads:[~2010-03-24 16:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-24 16:08 Tim Booth [this message]
2010-04-02 19:53 ` Chainloading GRUB2 from Lilo Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-08 10:57 ` Grub data clobbered by Novell ZENworks (was: Chainloading GRUB2 from Lilo) Tim Booth
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=1269446913.8288.384.camel@barsukas \
--to=avarus@fastmail.fm \
--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.