From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NuT7j-00074v-PY for mharc-grub-devel@gnu.org; Wed, 24 Mar 2010 12:08:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuT7f-00073Z-Ly for grub-devel@gnu.org; Wed, 24 Mar 2010 12:07:59 -0400 Received: from [140.186.70.92] (port=33566 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuT7c-00071l-HD for grub-devel@gnu.org; Wed, 24 Mar 2010 12:07:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuT7W-0000RA-JQ for grub-devel@gnu.org; Wed, 24 Mar 2010 12:07:52 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:54883) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuT7W-0000R6-GH for grub-devel@gnu.org; Wed, 24 Mar 2010 12:07:50 -0400 Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id 73244EA351 for ; Wed, 24 Mar 2010 12:07:50 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 24 Mar 2010 12:07:50 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=subject:from:to:content-type:date:message-id:mime-version:content-transfer-encoding; s=smtpout; bh=4FvX9cu0NHXd7CXdpoKleAVMY7Q=; b=J/fgakVUcOA54bukUfNVkaUbzPocQVmhjBeWYrioG0ePfHYfeV45nlqTZQxXr6Nqla1SVqGEF9bGJSY4Lfw1qplMf9S7vZes2vmgYgdgYQ0uGOdbBeO9kkB1KjnWLfKAxK967m68y/a5ZlM25a4In7ApC2/H55RQsMB1xMZD1aQ= X-Sasl-enc: pb/XeqJWxDkxCq6syGTOQErS7ThsrHUFucb+/px/opvM 1269446870 Received: from [192.171.192.188] (wllt1465.nerc-wallingford.ac.uk [192.171.192.188]) by mail.messagingengine.com (Postfix) with ESMTPSA id 058AA486E3 for ; Wed, 24 Mar 2010 12:07:49 -0400 (EDT) From: Tim Booth To: "grub-devel@gnu.org" X-MS-Has-Attach: X-MS-TNEF-Correlator: x-sasl-enc: ZfbtIL9DQ422jBqrqRy402CObuxyzgRfYlUPNNO6eIIE 1269365734 x-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Content-Type: text/plain Date: Wed, 24 Mar 2010 16:08:33 +0000 Message-Id: <1269446913.8288.384.camel@barsukas> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Subject: Chainloading GRUB2 from Lilo X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2010 16:08:00 -0000 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!