From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Nxmvf-0001az-Vj for mharc-grub-devel@gnu.org; Fri, 02 Apr 2010 15:53:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nxmve-0001aM-9v for grub-devel@gnu.org; Fri, 02 Apr 2010 15:53:18 -0400 Received: from [140.186.70.92] (port=53329 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nxmvd-0001Zi-2G for grub-devel@gnu.org; Fri, 02 Apr 2010 15:53:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nxmva-0001e0-W5 for grub-devel@gnu.org; Fri, 02 Apr 2010 15:53:16 -0400 Received: from mail-bw0-f217.google.com ([209.85.218.217]:62183) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nxmva-0001dm-MZ for grub-devel@gnu.org; Fri, 02 Apr 2010 15:53:14 -0400 Received: by bwz9 with SMTP id 9so1668094bwz.9 for ; Fri, 02 Apr 2010 12:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=H/kD0wIEXJ/PgTpZf2NAIdp9MeGiFnQiC1fOuBCdKIA=; b=WJ36z0G6GQg1EgyZuFC0rOsaiv1oHDMZWWsW9M/K005nh7WgcyiiiyQDjyDvqeMqZU aSFtLFHXFCfvqagFDkrrlFn6UsvZr50B/bdRpxOtWM+LE2QKbeu2BnN21XyVfIb7CEch oiogwlsf8HcGSkCAVq3XwuJ6sMa8F5+DcIwbM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=vEOGNPRsOci4A2qfXVqehQX76ynb0Q8hYDXkKxB8byOd6QxAkLRP/Q1vjjmaKPaj0G Pk0TI0/3ovx/kFH2m+yXK6rX1Hb2O9Es3Z5jcPghuijNnvaHrSE6GyY/g1X35MY/BmFr 5HH/DFvz/uaipx14vHLsupZniseeEYCg9Tmfo= Received: by 10.204.85.73 with SMTP id n9mr3375179bkl.71.1270237992555; Fri, 02 Apr 2010 12:53:12 -0700 (PDT) Received: from debian.bg45.phnet (222-14.77-83.cust.bluewin.ch [83.77.14.222]) by mx.google.com with ESMTPS id 13sm4642699bwz.3.2010.04.02.12.53.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 02 Apr 2010 12:53:11 -0700 (PDT) Message-ID: <4BB64B1F.7010307@gmail.com> Date: Fri, 02 Apr 2010 21:53:03 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GNU GRUB References: <1269446913.8288.384.camel@barsukas> In-Reply-To: <1269446913.8288.384.camel@barsukas> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigCD1877824082C3A2E655CD73" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: 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: Fri, 02 Apr 2010 19:53:18 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCD1877824082C3A2E655CD73 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Tim Booth wrote: > 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=3D= 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. > =20 Asking such a lilo question on GRUB list is annoying, especially that it's not a real solution. Could you try installing grub to mbr, then dump the MBR gap with dd if=3D/dev/sda of=3Dbefore.bin count=3D64 dd if=3D/dev/sda of=3Dafter.bin count=3D64 Then send both files to me? Or just say which sectors are modified. It was reported that only sectore number 32 is modified. If it's confirmed we can avoid using it unless we need the whole MBR gap (very uncommon) > Now I could install Grub into the (Ubuntu) Linux partition, but it seem= s > 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 =3D /dev/sda > lba32 > default =3D chainload_grub2 > timeout =3D 0 > > image =3D /boot/grub/lnxboot.img=20 > append =3D "prefix=3D(hd0,5)/boot/grub" > root=3D/dev/hda5 > initrd =3D /boot/grub/core.img > label =3D 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=3D(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 > > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigCD1877824082C3A2E655CD73 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAku2SyUACgkQNak7dOguQgnVLQD/dqKBbb/192sApNGtz02MAX28 +01JXbn+zQA5Rjq7uHUBAJnMhWqt/dfunpr5blNxG9gHlTddbhxxJtj+php38+C+ =ewtg -----END PGP SIGNATURE----- --------------enigCD1877824082C3A2E655CD73--