From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NanTN-0003kU-Iy for mharc-grub-devel@gnu.org; Fri, 29 Jan 2010 04:49:05 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NanTL-0003hv-GS for grub-devel@gnu.org; Fri, 29 Jan 2010 04:49:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NanTK-0003hO-H2 for grub-devel@gnu.org; Fri, 29 Jan 2010 04:49:03 -0500 Received: from [199.232.76.173] (port=55320 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NanTK-0003hI-8A for grub-devel@gnu.org; Fri, 29 Jan 2010 04:49:02 -0500 Received: from ey-out-1920.google.com ([74.125.78.148]:14562) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NanTJ-0006vn-Mf for grub-devel@gnu.org; Fri, 29 Jan 2010 04:49:01 -0500 Received: by ey-out-1920.google.com with SMTP id 26so407570eyw.34 for ; Fri, 29 Jan 2010 01:49:00 -0800 (PST) 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 :content-type:content-transfer-encoding; bh=nQp6OS5CkJICwCAJ6CIDv4C1h5hDD4z7rVBQBOvCRsY=; b=HcvooLeVMLV4SgCyr9/30AVtkeTigT1DMbbS9sv4V8eiAAB55Ksu6tV2C/FPjDhD7Q 88fIhI8v+BPLr9ozyh9syhgNNKgQFLuR1KGo5a+22IVMkxfQXD2DmQUaryYYnMn9o401 azmtyFHqBFHbq/M7JSzsfgqt959+Q943LkHic= 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:content-type:content-transfer-encoding; b=RzeVCd8ZI1VKD2vbB6WMpz8yz3W0/0CHIZsCVooBxD6Mzn1Rhgf5FMHVgsj1uMpifM EmI3X8uCRUJZSttBLIIrZerU4KsLa6cps5QqCl3cehEzQJrv6ztnsTFBBiioHY2zv0gQ UCzy4Bao9G8G9LxE0Q6lzLXVDFJgLv/aEanic= Received: by 10.213.58.138 with SMTP id g10mr517609ebh.85.1264758539936; Fri, 29 Jan 2010 01:48:59 -0800 (PST) Received: from ?192.168.1.50? (c2433-1-88-160-112-182.fbx.proxad.net [88.160.112.182]) by mx.google.com with ESMTPS id 7sm3526784eyb.26.2010.01.29.01.48.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 29 Jan 2010 01:48:59 -0800 (PST) Message-ID: <4B62AF0A.3000305@gmail.com> Date: Fri, 29 Jan 2010 10:48:58 +0100 From: =?ISO-8859-1?Q?Gr=E9goire_Sutre?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: The development of GNU GRUB References: <20100128114547.GI4409@riva.ucam.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Is it possible to have grub2's boot.img as my MBR, but have it look in a separate partition for core.img? 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, 29 Jan 2010 09:49:03 -0000 Wesley Smith wrote: > Thanks for your help, but no, it appears you cannot do this by simply using > "grub-install /dev/sdx". I tried this, and yes, it did make the target > partition bootable (it contained a Grub loader in its PBR). However, to ensure > the disk MBR had also been updated and was now getting its core.img file from > the /boot partition and not from the sectors immediately following it, I built > a dummy track containing just the MBR post-"grub-install" and nothing but zeros > after, and then I copied it to /dev/sda: > > dd if=/dev/zero of=/track.image bs=512 count=63 > dd if=/dev/sda of=/track.image bs=512 count=1 conv=notrunc > dd if=/track.image of=/dev/sda bs=512 count=63 I believe that you should replace the GRUB MBR code with an ``MS-DOS like'' MBR that looks for the first active partition and boots it. Here you keep the old GRUB MBR code that will try to load core.img from the first track. I guess that you can get such an MBR boot code from many places (I personally use the NetBSD boot selector) and then you simply: dd if= of=/dev/sda bs=446 count=1 Well, I'm no expert, but that always worked for me. Grégoire